gty Posted April 4, 2006 Share Posted April 4, 2006 I got the sql inserted but am having a difficult time getting it displayed. I set the configuration in admin to 10. The instructions say to insert this <?php if ( DISPLAY_SCROLLING_HEADER_PRODUCTS > 0 ) { ?> <table border="0" width="770" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="middle"><script type="text/javascript"> //Specify the slider's width (in pixels) var sliderwidth="760"; //Specify the slider's height var sliderheight="<?php echo SMALL_IMAGE_HEIGHT; ?>"; //Specify the slider's slide speed (larger is faster 1-10) var slidespeed=2; //configure background color: slidebgcolor="#e9f7f8"; //Specify the slider's images var leftrightslide=new Array(); var finalslide=''; <?php $union = array(); $union[] = "SELECT p2c.products_id FROM ".TABLE_PRODUCTS_TO_CATEGORIES." p2c WHERE p2c.categories_id='".$current_category_id."'"; # Get the subcategory ID's # $sub_cats parameter will be populated with subcategory ID's tep_get_subcategories($sub_cats, $current_category_id); # Loop the $sub_cats array and start compiling the UNION query if (!empty($sub_cats)) { foreach ($sub_cats as $index => $cat_id){ $union[] = "SELECT p2c.products_id FROM ".TABLE_PRODUCTS_TO_CATEGORIES." p2c WHERE p2c.categories_id='".$cat_id."'"; } } # implode the UNION query to get the final string $union_str = implode(" UNION ", $union) . " ORDER BY products_id desc"; # unset some stuff...clean as we go unset($sub_cats, $union); # execute the query $products_id_query = tep_db_query($union_str); # Loop the array and populate the $prod_array with product ID's while($prods = tep_db_fetch_array($products_id_query)){ $prod_array[] = $prods['products_id']; } # free the result...clean as we go tep_db_free_result($products_id_query); $header_products_query = tep_db_query("select p.products_id, p.products_image, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id in ('" . implode("', '", $prod_array) . "') and p.products_id = pd.products_id order by rand() limit " . DISPLAY_SCROLLING_HEADER_PRODUCTS); $x = 0; $height = SMALL_IMAGE_HEIGHT; $totalwidth = 0; while ( $header_products = tep_db_fetch_array($header_products_query) ) { $width = SMALL_IMAGE_WIDTH; // Get the image's information: if ($image_size = @getimagesize(DIR_WS_IMAGES . $header_products['products_image'])) { $ratio = $image_size[1] / $image_size[0]; // Scale the image if larger than the set width or height: if ($image_size[0] > $width || $image_size[1] > $height) { $rx = $image_size[0] / $width; $ry = $image_size[1] / $height; if ($rx < $ry) { $width = intval($height / $ratio); } } $totalwidth += $width; } $alt = str_replace("'","\'",$header_products['products_name']); echo ' leftrightslide[' . $x++ . ']=\'<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $header_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $header_products['products_image'], $alt, $width, $height, 'valign="middle"') . '</a>\';' . "\n"; } ?> if (sliderwidth > <?php echo $totalwidth; ?>) sliderwidth = <?php echo $totalwidth; ?>; //Specify gap between each image (use HTML) var imagegap="?"; //Specify pixels gap between each slideshow rotation (use integer): var slideshowgap=0; var copyspeed=slidespeed; leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'; var iedom=document.all||document.getElementById; if (iedom) document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>'); var actualwidth=''; var cross_slide, ns_slide; function fillup() { if (iedom) { cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2; cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3; cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide; actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth; cross_slide2.style.left=actualwidth+slideshowgap+"px"; } else if (document.layers) { ns_slide=document.ns_slidemenu.document.ns_slidemenu2; ns_slide2=document.ns_slidemenu.document.ns_slidemenu3; ns_slide.document.write(leftrightslide); ns_slide.document.close(); actualwidth=ns_slide.document.width; ns_slide2.left=actualwidth+slideshowgap; ns_slide2.document.write(leftrightslide); ns_slide2.document.close(); } lefttime=setInterval("slideleft()",30); } window.onload=fillup; function slideleft() { if (iedom) { if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8)) cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"; else cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowga p+"px"; if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8)) cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"; else cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowga p+"px"; } else if (document.layers) { if (ns_slide.left>(actualwidth*(-1)+8)) ns_slide.left-=copyspeed; else ns_slide.left=ns_slide2.left+actualwidth+slideshowgap; if (ns_slide2.left>(actualwidth*(-1)+8)) ns_slide2.left-=copyspeed; else ns_slide2.left=ns_slide.left+actualwidth+slideshowgap; } } if (iedom||document.layers) { with (document) { write('<table border="0" cellspacing="0" cellpadding="0"><td>'); if (iedom) { write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">'); write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">'); write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>'); write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>'); write('</div></div>'); } else if (document.layers) { write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>'); write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('</ilayer>'); } document.write('</td></table>'); } } </script></td></center> </tr> </table> <?php } ?> before <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation">??<?php echo $breadcrumb->trail(' ? '); ?></td> In my header.php shows the following <table border="0" width="770" cellspacing="0" cellpadding="0"> <tr class="headerNavigation"> <td class="headerNavigation"><?php echo tep_image(DIR_WS_IMAGES . 'nav_left.gif', '') ?></td> <td class="headerNavigation">??<?php echo $breadcrumb->trail(' ? '); ?></td> I have tried placing the code in several places before and after and in the middle of the code above..The closest I can get is my header gets all messed up having the banner all the way to the left and the buttons for my account and stuff to the right and no scrolling images. I have centered shop installed with down for maintence and pwa.Not sure if that's causing the issue or not..any help is much appreciated! Quote Link to comment Share on other sites More sharing options...
Irin Posted April 4, 2006 Share Posted April 4, 2006 I got the sql inserted but am having a difficult time getting it displayed. I set the configuration in admin to 10.The instructions say to insert this before In my header.php shows the following I have tried placing the code in several places before and after and in the middle of the code above..The closest I can get is my header gets all messed up having the banner all the way to the left and the buttons for my account and stuff to the right and no scrolling images. I have centered shop installed with down for maintence and pwa.Not sure if that's causing the issue or not..any help is much appreciated! Here is how my includes/header.php looks like beginning at line 74. I got some additional contributions added to the code, so just copying won't do you any good. Try to compare mine with yours. Hope, it can help you somehow. Mine works fine so far. I'm just trying to figure our how to prevent it from displaying non active products. May be somebody can come up with an idea. I don't really see any support thread started specifically for this contribution. <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation">??<?php echo $breadcrumb->trail(' ? '); ?></td> <?php // Guest account start ?> <?php if ($guest_account == false) { // Not a Guest Account ?> <!-- Steel Shadow's Check Order Status Contribution Start --> <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> ?|? <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> ?|? <a href="<?php echo tep_href_link(FILENAME_ACCOUNT_HISTORY); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECK_STATUS; ?></a> ?|? <a href="<?php echo tep_href_link(FILENAME_WISHLIST); ?>" class="headerNavigation"><?php echo BOX_HEADING_CUSTOMER_WISHLIST; ?></a> ?|? <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> ?|? <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> ??</td> <?php } else { // Its a guest account ?> <!-- Steel Shadow's Check Order Status Contribution End --> <td align="right" class="headerNavigation"> <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> ?|? <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> ??</td> <?php } // Guest account end ?> </tr> </table> <?php if ( DISPLAY_SCROLLING_HEADER_PRODUCTS > 0 ) { ?> <table border="1" width="100%" cellspacing="2" cellpadding="2"> <tr> <td align="center" valign="middle"><script type="text/javascript"> //Specify the slider's width (in pixels) var sliderwidth="880"; //Specify the slider's height var sliderheight="<?php echo SMALL_IMAGE_HEIGHT; ?>"; //Specify the slider's slide speed (larger is faster 1-10) var slidespeed=2; //configure background color: slidebgcolor="#e9f7f8"; //Specify the slider's images var leftrightslide=new Array(); var finalslide=''; <?php $union = array(); $union[] = "SELECT p2c.products_id FROM ".TABLE_PRODUCTS_TO_CATEGORIES." p2c WHERE p2c.categories_id='".$current_category_id."'"; # Get the subcategory ID's # $sub_cats parameter will be populated with subcategory ID's tep_get_subcategories($sub_cats, $current_category_id); # Loop the $sub_cats array and start compiling the UNION query if (!empty($sub_cats)) { foreach ($sub_cats as $index => $cat_id){ $union[] = "SELECT p2c.products_id FROM ".TABLE_PRODUCTS_TO_CATEGORIES." p2c WHERE p2c.categories_id='".$cat_id."'"; } } # implode the UNION query to get the final string $union_str = implode(" UNION ", $union) . " ORDER BY products_id desc"; # unset some stuff...clean as we go unset($sub_cats, $union); # execute the query $products_id_query = tep_db_query($union_str); # Loop the array and populate the $prod_array with product ID's while($prods = tep_db_fetch_array($products_id_query)){ $prod_array[] = $prods['products_id']; } # free the result...clean as we go tep_db_free_result($products_id_query); $header_products_query = tep_db_query("select p.products_id, p.products_image, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id in ('" . implode("', '", $prod_array) . "') and p.products_id = pd.products_id order by rand() limit " . DISPLAY_SCROLLING_HEADER_PRODUCTS); $x = 0; $height = SMALL_IMAGE_HEIGHT; $totalwidth = 0; while ( $header_products = tep_db_fetch_array($header_products_query) ) { $width = SMALL_IMAGE_WIDTH; // Get the image's information: if ($image_size = @getimagesize(DIR_WS_IMAGES . $header_products['products_image'])) { $ratio = $image_size[1] / $image_size[0]; // Scale the image if larger than the set width or height: if ($image_size[0] > $width || $image_size[1] > $height) { $rx = $image_size[0] / $width; $ry = $image_size[1] / $height; if ($rx < $ry) { $width = intval($height / $ratio); } } $totalwidth += $width; } $alt = str_replace("'","\'",$header_products['products_name']); echo ' leftrightslide[' . $x++ . ']=\'<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $header_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $header_products['products_image'], $alt, $width, $height, 'valign="middle"') . '</a>\';' . "\n"; } ?> if (sliderwidth > <?php echo $totalwidth; ?>) sliderwidth = <?php echo $totalwidth; ?>; //Specify gap between each image (use HTML) var imagegap="?"; //Specify pixels gap between each slideshow rotation (use integer): var slideshowgap=0; var copyspeed=slidespeed; leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'; var iedom=document.all||document.getElementById; if (iedom) document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>'); var actualwidth=''; var cross_slide, ns_slide; function fillup() { if (iedom) { cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2; cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3; cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide; actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth; cross_slide2.style.left=actualwidth+slideshowgap+"px"; } else if (document.layers) { ns_slide=document.ns_slidemenu.document.ns_slidemenu2; ns_slide2=document.ns_slidemenu.document.ns_slidemenu3; ns_slide.document.write(leftrightslide); ns_slide.document.close(); actualwidth=ns_slide.document.width; ns_slide2.left=actualwidth+slideshowgap; ns_slide2.document.write(leftrightslide); ns_slide2.document.close(); } lefttime=setInterval("slideleft()",30); } window.onload=fillup; function slideleft() { if (iedom) { if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8)) cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"; else cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowga p+"px"; if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8)) cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"; else cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowga p+"px"; } else if (document.layers) { if (ns_slide.left>(actualwidth*(-1)+8)) ns_slide.left-=copyspeed; else ns_slide.left=ns_slide2.left+actualwidth+slideshowgap; if (ns_slide2.left>(actualwidth*(-1)+8)) ns_slide2.left-=copyspeed; else ns_slide2.left=ns_slide.left+actualwidth+slideshowgap; } } if (iedom||document.layers) { with (document) { write('<table border="0" cellspacing="0" cellpadding="0"><td>'); if (iedom) { write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">'); write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">'); write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>'); write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>'); write('</div></div>'); } else if (document.layers) { write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>'); write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('</ilayer>'); } document.write('</td></table>'); } } </script></td></center> </tr> </table> <?php } ?> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td> </tr> </table> <?php } if (SCROLL_MARQUEE == 'true') { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><marquee scrollamount=5><?php echo TEXT_TO_DISPLAY; ?></marquee></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td> </tr> </table> <?php } ?> Quote Link to comment Share on other sites More sharing options...
gty Posted April 4, 2006 Author Share Posted April 4, 2006 Thanks for the reply..I did a search for HEADER_TITLE_CHECKOUT as that's right before the code that is inserted from the contrb that begins in your header.php...In my header file I have 2 locations were HEADER_TITLE_CHECKOUT is located.I tried placing the code in both places (and all around) and I am still getting the same results...can't figure out why this is not working..thought this was going to be an easy contribution to install lol. here's my header.php if anybody has any suggestions. <?php/* $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // give the visitors a message that the website will be down at ... time if ( (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE == 'false') ) { $messageStack->add('header', TEXT_BEFORE_DOWN_FOR_MAINTENANCE . PERIOD_BEFORE_DOWN_FOR_MAINTENANCE, 'warning'); } // this will let the admin know that the website is DOWN FOR MAINTENANCE to the public if ( (DOWN_FOR_MAINTENANCE == 'true') && (EXCLUDE_ADMIN_IP_FOR_MAINTENANCE == getenv('REMOTE_ADDR')) ) { $messageStack->add('header', TEXT_ADMIN_DOWN_FOR_MAINTENANCE, 'warning'); } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } /////////////////// /////////////////// // [0001] BOF: WebMakers.com Added: Center Shop // This goes before any other table of the shop // // Is center Shop ON/OFF ? /////////////////// if ( CENTER_SHOP_ON == 'on' ) { /////////////////// // [0001] Background Color ON/OFF and CellPadding for around the shop? /////////////////// if ( CENTER_SHOP_BACKGROUND_ON == 'on' ) { ?> <table width="100%" cellpadding="<?php echo CENTER_SHOP_PADDING; ?>" cellspacing="0" border="0" bgcolor="<?php echo CENTER_SHOP_BACKGROUND_COLOR_OUT; ?>"> <tr><td> <?php } /////////////////// // [0001] Shop Width Size and Shop Background Color /////////////////// ?> <table width="<?php echo CENTER_SHOP_WIDTH; ?>" align="center" BGCOLOR="<?php echo CENTER_SHOP_BACKGROUND_COLOR; ?>" BORDER="<?php echo CENTER_SHOP_BORDER; ?>" bordercolor="<?php echo CENTER_SHOP_BORDERCOLOR; ?>" CELLSPACING="<?php echo CENTER_SHOP_CELLSPACING; ?>" CELLPADDING="<?php echo CENTER_SHOP_CELLPADDING; ?>" > <tr><td BGColor="FFFFFF"> <?php /////////////////// // [0001] The rest of this <td> statement is located at the end of footer.php /////////////////// } ?> <table border="0" width="770" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'oscommerce') . '</a>'; ?></td> <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'myaccount_over.jpg', HEADER_TITLE_MY_ACCOUNT) . '</a>??<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'shoppingcart_over.jpg', HEADER_TITLE_CART_CONTENTS) . '</a>??<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'checkout_over.jpg', HEADER_TITLE_CHECKOUT) . '</a>'; ?>??</td> </tr> </table> <table border="0" width="770" cellspacing="0" cellpadding="0"> <tr class="headerNavigation"> <td class="headerNavigation"><?php echo tep_image(DIR_WS_IMAGES . 'nav_left.gif', '') ?></td> <td class="headerNavigation">??<?php echo $breadcrumb->trail(' ? '); ?></td> <td align="right" class="headerNavigation">?|? <?php if ((tep_session_is_registered('customer_id')) && (!tep_session_is_registered('noaccount'))) // DDB - PWA - 040622 - no display of logoff for PWA customers { ?> <a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?> </a> ?|? <?php } ?> <?php if (!tep_session_is_registered('noaccount')) // DDB - PWA - 040622 - no display of account for PWA customers { ?> <a href="<?php echo tep_href_link(FILENAME_ACCOUNT, 'my_account_f=1', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?> </a> ?|? <?php } ?> <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> ?|? <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?>?|?</a></td> </tr> </table> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="770" cellspacing="0" cellpadding="0"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="770" cellspacing="0" cellpadding="0"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td> </tr> </table> <?php } ?> Quote Link to comment Share on other sites More sharing options...
Guest Posted April 4, 2006 Share Posted April 4, 2006 Thanks for the reply..I did a search for HEADER_TITLE_CHECKOUT as that's right before the code that is inserted from the contrb that begins in your header.php...In my header file I have 2 locations were HEADER_TITLE_CHECKOUT is located.I tried placing the code in both places (and all around) and I am still getting the same results...can't figure out why this is not working..thought this was going to be an easy contribution to install lol. here's my header.php if anybody has any suggestions. Mine appears to embed the script does yours even get that far? It seems to preload the images but then doesnt show them for me? <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr> <td align="center" valign="middle"><script type="text/javascript"> //Specify the slider's width (in pixels) var sliderwidth="760"; //Specify the slider's height var sliderheight="100"; //Specify the slider's slide speed (larger is faster 1-10) var slidespeed=2; //configure background color: slidebgcolor="#e9f7f8"; //Specify the slider's images var leftrightslide=new Array(); var finalslide=''; leftrightslide[0]='<a href="http://www.xxxx.co.uk/catalog/blue-boy-p-3787.html"><img src="images/products/170089.jpg" width="100" height="100" valign="middle" border="0" alt="Blue Boy" title="Blue Boy"></a>'; leftrightslide[1]='<a href="http://www.xxxx.co.uk/catalog/finger-juice-junky-p-3465.html"><img src="images/products/170682.jpg" width="100" height="100" valign="middle" border="0" alt="Two Finger Juice Junky" title="Two Finger Juice Junky"></a>'; leftrightslide[2]='<a href="http://www.xxxx.co.uk/catalog/thigh-highs-with-p-1970.html"><img src="images/products/H010-WB.jpg" width="100" height="100" valign="middle" border="0" alt="Thigh highs with bow" title="Thigh highs with bow"></a>'; leftrightslide[3]='<a href="http://www.xxxx.co.uk/catalog/tickler-blue-p-3609.html"><img src="images/products/170504.jpg" width="100" height="100" valign="middle" border="0" alt="G Tickler Blue" title="G Tickler Blue"></a>'; if (sliderwidth > 0) sliderwidth = 0; //Specify gap between each image (use HTML) var imagegap=" "; //Specify pixels gap between each slideshow rotation (use integer): var slideshowgap=0; var copyspeed=slidespeed; leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'; var iedom=document.all||document.getElementById; if (iedom) document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>'); var actualwidth=''; var cross_slide, ns_slide; function fillup() { if (iedom) { cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2; cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3; cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide; actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth; cross_slide2.style.left=actualwidth+slideshowgap+"px"; } else if (document.layers) { ns_slide=document.ns_slidemenu.document.ns_slidemenu2; ns_slide2=document.ns_slidemenu.document.ns_slidemenu3; ns_slide.document.write(leftrightslide); ns_slide.document.close(); actualwidth=ns_slide.document.width; ns_slide2.left=actualwidth+slideshowgap; ns_slide2.document.write(leftrightslide); ns_slide2.document.close(); } lefttime=setInterval("slideleft()",30); } window.onload=fillup; function slideleft() { if (iedom) { if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8)) cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"; else cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"; if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8)) cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"; else cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"; } else if (document.layers) { if (ns_slide.left>(actualwidth*(-1)+8)) ns_slide.left-=copyspeed; else ns_slide.left=ns_slide2.left+actualwidth+slideshowgap; if (ns_slide2.left>(actualwidth*(-1)+8)) ns_slide2.left-=copyspeed; else ns_slide2.left=ns_slide.left+actualwidth+slideshowgap; } } if (iedom||document.layers) { with (document) { write('<table border="0" cellspacing="0" cellpadding="0"><td>'); if (iedom) { write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">'); write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">'); write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>'); write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>'); write('</div></div>'); } else if (document.layers) { write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>'); write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('</ilayer>'); } document.write('</td></table>'); } } </script></td></center> </tr> </table> Quote Link to comment Share on other sites More sharing options...
Guest Posted April 4, 2006 Share Posted April 4, 2006 (edited) Fixed mine sort of (Im having problems with the images not showing even though they are there..), but the slider shows one thing to check is: if (sliderwidth > <?php echo $totalwidth; ?>) sliderwidth = <?php echo $totalwidth; ?>; was setting total width to 0 because $totalwidth was 0 therefore I edited the script to: if (sliderwidth > 500) sliderwidth = 500; I am not sure why totalwidth is not calculating... EDIT: Mine works properly images not showing due to the way I frig the imaging system... Edited April 4, 2006 by cymonguk Quote Link to comment Share on other sites More sharing options...
gty Posted April 4, 2006 Author Share Posted April 4, 2006 Ok I was able to get the first version of the contribution installed and working (only downside is it's limited to how many products I manually link)..so there must be something out of wack with mysql that was inserted?? Irin was this part of the code you inserted from the contribution? or from a differnet contribution? if (SCROLL_MARQUEE == 'true') {?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><marquee scrollamount=5><?php echo TEXT_TO_DISPLAY; ?></marquee></td> </tr> </table> <?php the instructions I used have this located nowhere any of the versions? here's what I tried inserting from the last version. <?php if ( DISPLAY_SCROLLING_HEADER_PRODUCTS > 0 ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr> <td align="center" valign="middle"><script type="text/javascript"> //Specify the slider's width (in pixels) var sliderwidth="760"; //Specify the slider's height var sliderheight="<?php echo SMALL_IMAGE_HEIGHT; ?>"; //Specify the slider's slide speed (larger is faster 1-10) var slidespeed=2; //configure background color: slidebgcolor="#e9f7f8"; //Specify the slider's images var leftrightslide=new Array(); var finalslide=''; <?php $union = array(); $union[] = "SELECT p2c.products_id FROM ".TABLE_PRODUCTS_TO_CATEGORIES." p2c WHERE p2c.categories_id='".$current_category_id."'"; # Get the subcategory ID's # $sub_cats parameter will be populated with subcategory ID's tep_get_subcategories($sub_cats, $current_category_id); # Loop the $sub_cats array and start compiling the UNION query if (!empty($sub_cats)) { foreach ($sub_cats as $index => $cat_id){ $union[] = "SELECT p2c.products_id FROM ".TABLE_PRODUCTS_TO_CATEGORIES." p2c WHERE p2c.categories_id='".$cat_id."'"; } } # implode the UNION query to get the final string $union_str = implode(" UNION ", $union) . " ORDER BY products_id desc"; # unset some stuff...clean as we go unset($sub_cats, $union); # execute the query $products_id_query = tep_db_query($union_str); # Loop the array and populate the $prod_array with product ID's while($prods = tep_db_fetch_array($products_id_query)){ $prod_array[] = $prods['products_id']; } # free the result...clean as we go tep_db_free_result($products_id_query); $header_products_query = tep_db_query("select p.products_id, p.products_image, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id in ('" . implode("', '", $prod_array) . "') and p.products_id = pd.products_id order by rand() limit " . DISPLAY_SCROLLING_HEADER_PRODUCTS); $x = 0; $height = SMALL_IMAGE_HEIGHT; $totalwidth = 0; while ( $header_products = tep_db_fetch_array($header_products_query) ) { $width = SMALL_IMAGE_WIDTH; // Get the image's information: if ($image_size = @getimagesize(DIR_WS_IMAGES . $header_products['products_image'])) { $ratio = $image_size[1] / $image_size[0]; // Scale the image if larger than the set width or height: if ($image_size[0] > $width || $image_size[1] > $height) { $rx = $image_size[0] / $width; $ry = $image_size[1] / $height; if ($rx < $ry) { $width = intval($height / $ratio); } } $totalwidth += $width; } $alt = str_replace("'","\'",$header_products['products_name']); echo ' leftrightslide[' . $x++ . ']=\'<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $header_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $header_products['products_image'], $alt, $width, $height, 'valign="middle"') . '</a>\';' . "\n"; } ?> if (sliderwidth > <?php echo $totalwidth; ?>) sliderwidth = <?php echo $totalwidth; ?>; //Specify gap between each image (use HTML) var imagegap="?"; //Specify pixels gap between each slideshow rotation (use integer): var slideshowgap=0; var copyspeed=slidespeed; leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'; var iedom=document.all||document.getElementById; if (iedom) document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>'); var actualwidth=''; var cross_slide, ns_slide; function fillup() { if (iedom) { cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2; cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3; cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide; actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth; cross_slide2.style.left=actualwidth+slideshowgap+"px"; } else if (document.layers) { ns_slide=document.ns_slidemenu.document.ns_slidemenu2; ns_slide2=document.ns_slidemenu.document.ns_slidemenu3; ns_slide.document.write(leftrightslide); ns_slide.document.close(); actualwidth=ns_slide.document.width; ns_slide2.left=actualwidth+slideshowgap; ns_slide2.document.write(leftrightslide); ns_slide2.document.close(); } lefttime=setInterval("slideleft()",30); } window.onload=fillup; function slideleft() { if (iedom) { if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8)) cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"; else cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowga p+"px"; if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8)) cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"; else cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowga p+"px"; } else if (document.layers) { if (ns_slide.left>(actualwidth*(-1)+8)) ns_slide.left-=copyspeed; else ns_slide.left=ns_slide2.left+actualwidth+slideshowgap; if (ns_slide2.left>(actualwidth*(-1)+8)) ns_slide2.left-=copyspeed; else ns_slide2.left=ns_slide.left+actualwidth+slideshowgap; } } if (iedom||document.layers) { with (document) { write('<table border="0" cellspacing="0" cellpadding="0"><td>'); if (iedom) { write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">'); write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">'); write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>'); write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>'); write('</div></div>'); } else if (document.layers) { write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>'); write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('</ilayer>'); } document.write('</td></table>'); } } </script></td></center> </tr> </table> <?php } ?> Quote Link to comment Share on other sites More sharing options...
Guest Posted April 4, 2006 Share Posted April 4, 2006 can you view the source of your page when its created post here, and it should tell us what works.. Quote Link to comment Share on other sites More sharing options...
gty Posted April 4, 2006 Author Share Posted April 4, 2006 < !doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> < html dir="LTR" lang="en"> < head> <title>Adult - XXXXXX.com</title> <META NAME="Description" Content="Adult"> <META NAME="Keywords" CONTENT="Adult"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> < !-- EOF: Generated Meta Tags --> < base href="http://www.XXXXXX.com/catalog/"> < link rel="stylesheet" type="text/css" href="stylesheet.css"> < /head> < body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> < !-- header //--> <table width="770" align="center" BGCOLOR="FFFFFF" BORDER="0" bordercolor="a63535" CELLSPACING="0" CELLPADDING="5" > <tr><td BGColor="FFFFFF"> < table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr> <td align="center" valign="middle"><script type="text/javascript"> //Specify the slider's width (in pixels) var sliderwidth="760"; //Specify the slider's height var sliderheight=""; //Specify the slider's slide speed (larger is faster 1-10) var slidespeed=2; //configure background color: slidebgcolor="#e9f7f8"; //Specify the slider's images var leftrightslide=new Array(); var finalslide=''; < br /> < b>Warning</b>: Division by zero in <b>/home/XXXXXX2/public_html/catalog/includes/header.php</b> on line <b>153</b><br /> leftrightslide[0]='<a href="http://www.XXXXXX.com/catalog/cinnamon-cyberskin-solid-cyber-cock-p-237.html"><img src="images/imagecache/gwtlc0439-7a.jpg" border="0" alt="Cinnamon CyberSkin Solid Cyber " title=" Cinnamon CyberSkin Solid Cyber " width="70" height="144" valign="middle"></a>'; leftrightslide[1]='<a href="http://www.XXXXXX.com/catalog/camouflage-piece-p-698.html"><img src="images/imagecache/1492.jpg" border="0" alt="camouflage 2 Piece" title=" camouflage 2 Piece " width="70" height="108" valign="middle"></a>'; leftrightslide[2]='<a href="http://www.XXXXXX.com/catalog/piece-lace-p-689.html"><img src="images/imagecache/1452b.jpg" border="0" alt="3 Piece lace Set" title=" 3 Piece lace Set " width="70" height="146" valign="middle"></a>'; leftrightslide[3]='<a href="http://www.XXXXXX.com/catalog/lucid-dream-fuchsia-p-1593.html"><img src="images/imagecache/gwdj092502a.jpg" border="0" alt="LUCID DREAM #39 FUCHSIA" title=" LUCID DREAM #39 FUCHSIA " width="70" height="94" valign="middle"></a>'; leftrightslide[4]='<a href="http://www.XXXXXX.com/catalog/elite-ultimate-orgasm-p-1175.html"><img src="images/imagecache/gwse069114a.jpg" border="0" alt="Elite 7x WP Ultimate Orgasm" title=" Elite 7x WP Ultimate Orgasm " width="70" height="103" valign="middle"></a>'; leftrightslide[5]='<a href="http://www.XXXXXX.com/catalog/training-leash-p-1304.html"><img src="images/imagecache/gwpd500102.jpg" border="0" alt="TRAINING LEASH" title=" TRAINING LEASH " width="70" height="105" valign="middle"></a>'; leftrightslide[6]='<a href="http://www.XXXXXX.com/catalog/lace-underwire-vinyl-p-909.html"><img src="images/imagecache/v5119.jpg" border="0" alt="Lace up underwire vinyl bra" title=" Lace up underwire vinyl bra " width="70" height="108" valign="middle"></a>'; leftrightslide[7]='<a href="http://www.XXXXXX.com/catalog/rachels-cumfy-cuffs-p-1309.html"><img src="images/imagecache/gwjp501a.jpg" border="0" alt="RACHELS CUMFY CUFFS" title=" RACHELS CUMFY CUFFS " width="70" height="60" valign="middle"></a>'; leftrightslide[8]='<a href="http://www.XXXXXX.com/catalog/cleopatra-collection-nipple-jewelry-pearl-p-96.html"><img src="images/imagecache/gwse2603_00a.jpg" border="0" alt="Cleopatra Collection Nipple Jewelry - Pearl" title=" Cleopatra Collection Nipple Jewelry - Pearl " width="70" height="106" valign="middle"></a>'; leftrightslide[9]='<a href="http://www.XXXXXX.com/catalog/rear-entry-anal-lube-170z-p-541.html"><img src="images/imagecache/gwdj2180-02-a.jpg" border="0" alt="REAR ENTRY ANAL LUBE 1.70Z" title=" REAR ENTRY ANAL LUBE 1.70Z " width="70" height="188" valign="middle"></a>'; leftrightslide[10]='<a href="http://www.XXXXXX.com/catalog/slip-style-fishnet-mini-dress-p-716.html"><img src="images/imagecache/1425.jpg" border="0" alt="Slip style fishnet mini dress" title=" Slip style fishnet mini dress " width="70" height="108" valign="middle"></a>'; leftrightslide[11]='<a href="http://www.XXXXXX.com/catalog/leather-skirted-garter-belt-p-876.html"><img src="images/imagecache/l9253 .jpg" border="0" alt="Leather skirted garter belt" title=" Leather skirted garter belt " width="70" height="108" valign="middle"></a>'; leftrightslide[12]='<a href="http://www.XXXXXX.com/catalog/nipple-bull-ringssilver-p-1371.html"><img src="images/imagecache/gwpd360326a.jpg" border="0" alt="BULL RINGS-SILVER" title=" BULL RINGS-SILVER " width="70" height="140" valign="middle"></a>'; leftrightslide[13]='<a href="http://www.XXXXXX.com/catalog/ultra-harness-plug-20000-p-363.html"><img src="images/imagecache/gwdj1050-05-a.jpg" border="0" alt="ULTRA HARNESS 2 & W/8" (200-00), MS" title=" ULTRA HARNESS 2 & W/8" (200-00), MS " width="70" height="57" valign="middle"></a>'; leftrightslide[14]='<a href="http://www.XXXXXX.com/catalog/leather-booty-shorts-p-898.html"><img src="images/imagecache/l7109.jpg" border="0" alt="Leather booty shorts" title=" Leather booty shorts " width="70" height="108" valign="middle"></a>'; leftrightslide[15]='<a href="http://www.XXXXXX.com/catalog/nickel-plated-adornments-p-1364.html"><img src="images/imagecache/gwdj2125-02-a.jpg" border="0" alt="Nickel Plated Adornments, 1-1/2"" title=" Nickel Plated Adornments, 1-1/2" " width="70" height="65" valign="middle"></a>'; leftrightslide[16]='<a href="http://www.XXXXXX.com/catalog/ballsy-super--p-264.html"><img src="images/imagecache/gwdj0225-02-a.jpg" border="0" alt="Ballsy Super Cock, 7" X 1-3/4"" title=" Ballsy Super , 7" X 1-3/4" " width="70" height="125" valign="middle"></a>'; leftrightslide[17]='<a href="http://www.XXXXXX.com/catalog/cyberskin-passion-flower-mini-clit-climaxer-p-482.html"><img src="images/imagecache/gwtlc7370-7a.jpg" border="0" alt="CyberSkin Passion Flower Mini Clit Climaxer" title=" CyberSkin Passion Flower Mini Climaxer " width="70" height="93" valign="middle"></a>'; leftrightslide[18]='<a href="http://www.XXXXXX.com/catalog/leopard-boxer-shorts-elastic-waist-p-1749.html"><img src="images/imagecache/263.jpg" border="0" alt="Leopard boxer shorts w/ elastic waist" title=" Leopard boxer shorts w/ elastic waist " width="70" height="92" valign="middle"></a>'; leftrightslide[19]='<a href="http://www.XXXXXX.com/catalog/pleasure-plug-medium-p-146.html"><img src="images/imagecache/gwdj5007-00-a.jpg" border="0" alt="PLEASURE PLUG, MEDIUM" title=" PLEASURE PLUG, MEDIUM " width="70" height="105" valign="middle"></a>'; if (sliderwidth > 1400) sliderwidth = 1400; //Specify gap between each image (use HTML) var imagegap="?"; //Specify pixels gap between each slideshow rotation (use integer): var slideshowgap=0; var copyspeed=slidespeed; leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'; var iedom=document.all||document.getElementById; if (iedom) document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>'); var actualwidth=''; var cross_slide, ns_slide; function fillup() { if (iedom) { cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2; cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3; cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide; actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth; cross_slide2.style.left=actualwidth+slideshowgap+"px"; } else if (document.layers) { ns_slide=document.ns_slidemenu.document.ns_slidemenu2; ns_slide2=document.ns_slidemenu.document.ns_slidemenu3; ns_slide.document.write(leftrightslide); ns_slide.document.close(); actualwidth=ns_slide.document.width; ns_slide2.left=actualwidth+slideshowgap; ns_slide2.document.write(leftrightslide); ns_slide2.document.close(); } lefttime=setInterval("slideleft()",30); } window.onload=fillup; function slideleft() { if (iedom) { if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8)) cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"; else cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowga p+"px"; if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8)) cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"; else cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowga p+"px"; } else if (document.layers) { if (ns_slide.left>(actualwidth*(-1)+8)) ns_slide.left-=copyspeed; else ns_slide.left=ns_slide2.left+actualwidth+slideshowgap; if (ns_slide2.left>(actualwidth*(-1)+8)) ns_slide2.left-=copyspeed; else ns_slide2.left=ns_slide.left+actualwidth+slideshowgap; } } if (iedom||document.layers) { with (document) { write('<table border="0" cellspacing="0" cellpadding="0"><td>'); if (iedom) { write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">'); write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">'); write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>'); write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>'); write('</div></div>'); } else if (document.layers) { write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>'); write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('</ilayer>'); } document.write('</td></table>'); } } </script></td></center> </tr> < /table> < table border="0" width="770" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><a href="http://www.XXXXXX.com/catalog/index.php"><img'>http://www.XXXXXX.com/catalog/index.php"><img src="images/oscommerce.gif" border="0" alt="XXXXXX Adult Sex Toys" title=" XXXXXX Adult Sex Toys "></a></td> <td align="right" valign="bottom"><a href="https://www.XXXXXX.com/catalog/account.php"><img src="images/myaccount_over.jpg" border="0" alt="My Account" title=" My Account "></a>??<a href="http://www.XXXXXX.com/catalog/shopping_cart.php"><img'>http://www.XXXXXX.com/catalog/shopping_cart.php"><img src="images/shoppingcart_over.jpg" border="0" alt="Cart Contents" title=" Cart Contents "></a>??<a href="https://www.XXXXXX.com/catalog/checkout_shipping.php"><img'>https://www.XXXXXX.com/catalog/checkout_shipping.php"><img src="images/checkout_over.jpg" border="0" alt="Checkout" title=" Checkout "></a>??</td> </tr> < /table> < table border="0" width="770" cellspacing="0" cellpadding="0"> <tr class="headerNavigation"> <td class="headerNavigation"><img src="images/nav_left.gif" border="0" alt=""></td> <td class="headerNavigation">??<a href="http://www.XXXXXX.com/catalog/index.php" class="headerNavigation">Home</a></td> <td align="right" class="headerNavigation">?|? <a href="https://www.XXXXXX.com/catalog/account.php?my_account_f=1" class="headerNavigation">My Account </a> ?|? <a href="http://www.XXXXXX.com/catalog/shopping_cart.php" class="headerNavigation">Cart Contents</a> ?|? <a href="https://www.XXXXXX.com/catalog/checkout_shipping.php" class="headerNavigation">Checkout?|?</a></td> </tr> < /table> < !-- header_eof //--> <!-- body //--> <table border="0" width="770" cellspacing="0" cellpadding="0"> <tr> <td width="165" valign="top"><table id="columnleft" border="0" width="165" cellspacing="0" cellpadding="2"> < !-- left_navigation //--> < !-- categories //--> < tr> < td> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxHeading"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">Anal Play</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ><IMG height=7 src="images/dropshadow_topright.jpg" width=7></TD> </tr> </table> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><a href="http://www.XXXXXX.com/catalog/anal-beads-c-22.html?infoBox=0">Anal Beads</a><br><a href="http://www.XXXXXX.com/catalog/anal-kits-c-27.html?infoBox=0">Anal Kits</a><br><a href="http://www.XXXXXX.com/catalog/anal-probes-c-24.html?infoBox=0">Anal Probes</a><br><a href="http://www.XXXXXX.com/catalog/butt-plugs-c-21.html?infoBox=0">Butt Plugs</a><br><a href="http://www.XXXXXX.com/catalog/rubber-anal-toys-c-25.html?infoBox=0">Rubber Anal Toys</a><br><a href="http://www.XXXXXX.com/catalog/vibrating-anal-toys-c-26.html?infoBox=0">Vibrating Anal Toys</a><br></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> < /td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ></TD> </tr> <TR><TD height=7 background=images/dropshadow_bottom.jpg><IMG height=7 src="images/dropshadow_bottomleft.jpg" width=7></TD><TD><IMG height=7 src="images/dropshadow_bottomright.jpg" width=7></TD></TR> </table> </td> < /tr> < tr> < td> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxHeading"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">Lubricants</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ><IMG height=7 src="images/dropshadow_topright.jpg" width=7></TD> </tr> </table> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><a href="http://www.XXXXXX.com/catalog/potions-lotions-c-23.html?infoBox=1">Potions & Lotions</a><br></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> < /td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ></TD> </tr> <TR><TD height=7 background=images/dropshadow_bottom.jpg><IMG height=7 src="images/dropshadow_bottomleft.jpg" width=7></TD><TD><IMG height=7 src="images/dropshadow_bottomright.jpg" width=7></TD></TR> </table> </td> < /tr> < tr> < td> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxHeading"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">Vibrators & Stimulators</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ><IMG height=7 src="images/dropshadow_topright.jpg" width=7></TD> </tr> </table> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><a href="http://www.XXXXXX.com/catalog/balls-c-58.html?infoBox=2">Balls</a><br><a href="http://www.XXXXXX.com/catalog/bullets-c-60.html?infoBox=2">Bullets</a><br><a href="http://www.XXXXXX.com/catalog/cyberskin-vibrators-c-61.html?infoBox=2">CyberSkin Vibrators</a><br><a href="http://www.XXXXXX.com/catalog/finger-vibes-c-62.html?infoBox=2">Finger Vibes</a><br><a href="http://www.XXXXXX.com/catalog/rabbits-c-63.html?infoBox=2">Rabbits</a><br><a href="http://www.XXXXXX.com/catalog/vibrators-c-152.html?infoBox=2">Vibrators</a><br></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> < /td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ></TD> </tr> <TR><TD height=7 background=images/dropshadow_bottom.jpg><IMG height=7 src="images/dropshadow_bottomleft.jpg" width=7></TD><TD><IMG height=7 src="images/dropshadow_bottomright.jpg" width=7></TD></TR> </table> </td> < /tr> < tr> < td> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxHeading"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">Exotic & Erotic Clothing</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ><IMG height=7 src="images/dropshadow_topright.jpg" width=7></TD> </tr> </table> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><a href="http://www.XXXXXX.com/catalog/costumes-c-91.html?infoBox=3">Costumes</a><br><a href="http://www.XXXXXX.com/catalog/hosiery-c-84.html?infoBox=3">Hosiery</a><br><a href="http://www.XXXXXX.com/catalog/leather-vinyl-c-79.html?infoBox=3">Leather & Vinyl</a><br><a href="http://www.XXXXXX.com/catalog/lingerie-c-154.html?infoBox=3">Lingerie</a><br><a href="http://www.XXXXXX.com/catalog/mens-wear-c-73.html?infoBox=3">Mens Wear</a><br><a href="http://www.XXXXXX.com/catalog/elegant-moments-c-155.html?infoBox=3">Thongs & Boy Shorts</a><br><a href="http://www.XXXXXX.com/catalog/valentine-2006-c-139.html?infoBox=3">Valentine 2006</a><br></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> < /td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ></TD> </tr> <TR><TD height=7 background=images/dropshadow_bottom.jpg><IMG height=7 src="images/dropshadow_bottomleft.jpg" width=7></TD><TD><IMG height=7 src="images/dropshadow_bottomright.jpg" width=7></TD></TR> </table> </td> < /tr> < tr> < td> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxHeading"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">B&D/S&M</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ><IMG height=7 src="images/dropshadow_topright.jpg" width=7></TD> </tr> </table> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><a href="http://www.XXXXXX.com/catalog/bdsm-general-c-144.html?infoBox=4">B&D/S&M General</a><br><a href="http://www.XXXXXX.com/catalog/bdsm-kits-c-145.html?infoBox=4">B&D/S&M Kits</a><br><a href="http://www.XXXXXX.com/catalog/ball-gags-c-142.html?infoBox=4">Ball Gags</a><br><a href="http://www.XXXXXX.com/catalog/cock-rings-c-28.html?infoBox=4">Cock Rings</a><br><a href="http://www.XXXXXX.com/catalog/collars-leashes-c-141.html?infoBox=4">Collars & Leashes</a><br><a href="http://www.XXXXXX.com/catalog/cuffs-c-143.html?infoBox=4">Cuffs</a><br><a href="http://www.XXXXXX.com/catalog/leather-vinyl-c-79.html?infoBox=4">Leather & Vinyl</a><br><a href="http://www.XXXXXX.com/catalog/masks-c-146.html?infoBox=4">Masks</a><br><a href="http://www.XXXXXX.com/catalog/nipple-clamps-jewelry-c-147.html?infoBox=4">Nipple Clamps & Jewelry</a><br><a href="http://www.XXXXXX.com/catalog/paddles-c-148.html?infoBox=4">Paddles</a><br><a href="http://www.XXXXXX.com/catalog/restraints-c-149.html?infoBox=4">Restraints</a><br><a href="http://www.XXXXXX.com/catalog/whips-c-150.html?infoBox=4">Whips</a><br></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> < /td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ></TD> </tr> <TR><TD height=7 background=images/dropshadow_bottom.jpg><IMG height=7 src="images/dropshadow_bottomleft.jpg" width=7></TD><TD><IMG height=7 src="images/dropshadow_bottomright.jpg" width=7></TD></TR> </table> </td> < /tr> < tr> < td> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxHeading"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">Dildos</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ><IMG height=7 src="images/dropshadow_topright.jpg" width=7></TD> </tr> </table> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><a href="http://www.XXXXXX.com/catalog/acrylic-silicone-c-33.html?infoBox=5">Acrylic and Silicone</a><br><a href="http://www.XXXXXX.com/catalog/celebrity-skins-c-34.html?infoBox=5">Celebrity Skins</a><br><a href="http://www.XXXXXX.com/catalog/cyberskin-c-35.html?infoBox=5">CyberSkin</a><br><a href="http://www.XXXXXX.com/catalog/dongs-c-36.html?infoBox=5">Dongs</a><br><a href="http://www.XXXXXX.com/catalog/dongs-with-balls-c-37.html?infoBox=5">Dongs with Balls</a><br><a href="http://www.XXXXXX.com/catalog/double-headers-c-38.html?infoBox=5">Double Headers</a><br><a href="http://www.XXXXXX.com/catalog/extra-long-c-39.html?infoBox=5">Extra Long</a><br><a href="http://www.XXXXXX.com/catalog/glass-pyrex-c-40.html?infoBox=5">Glass & Pyrex</a><br><a href="http://www.XXXXXX.com/catalog/jelly-c-41.html?infoBox=5">Jelly</a><br><a href="http://www.XXXXXX.com/catalog/lifelikes-c-42.html?infoBox=5">Lifelikes</a><br><a href="http://www.XXXXXX.com/catalog/rotators-c-43.html?infoBox=5">Rotators</a><br><a href="http://www.XXXXXX.com/catalog/sleeves-c-44.html?infoBox=5">Sleeves</a><br><a href="http://www.XXXXXX.com/catalog/strap-ons-c-45.html?infoBox=5">Strap Ons</a><br><a href="http://www.XXXXXX.com/catalog/with-handles-c-46.html?infoBox=5">With Handles</a><br></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> < /td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ></TD> </tr> <TR><TD height=7 background=images/dropshadow_bottom.jpg><IMG height=7 src="images/dropshadow_bottomleft.jpg" width=7></TD><TD><IMG height=7 src="images/dropshadow_bottomright.jpg" width=7></TD></TR> </table> </td> < /tr> < !-- categories_eof //--> < !-- shopping_cart //--> <tr> <td> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxHeading"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">Shopping Cart</td> <td height="14" class="infoBoxHeading" nowrap><a href="http://www.XXXXXX.com/catalog/shopping_cart.php"><img'>http://www.XXXXXX.com/catalog/shopping_cart.php"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more "></a><img src="images/infobox/corner_right.gif" border="0" alt=""></td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ><IMG height=7 src="images/dropshadow_topright.jpg" width=7></TD> </tr> </table> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"> < script language="javascript"> function couponpopupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re sizable=yes,copyhistory=no,width=450,height=280,screenX=150,screenY=150,top=150,l eft=150') } //--></script>0 items</td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> < /td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ></TD> </tr> <TR><TD height=7 background=images/dropshadow_bottom.jpg><IMG height=7 src="images/dropshadow_bottomleft.jpg" width=7></TD><TD><IMG height=7 src="images/dropshadow_bottomright.jpg" width=7></TD></TR> </table> </td> </tr> < !-- shopping_cart_eof //--> < !-- whats_new //--> <tr> <td> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxHeading"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">What's New?</td> <td height="14" class="infoBoxHeading" nowrap><a href="http://www.XXXXXX.com/catalog/products_new.php"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more "></a><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ><IMG height=7 src="images/dropshadow_topright.jpg" width=7></TD> </tr> </table> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td align="center" class="boxText"><a href="http://www.XXXXXX.com/catalog/body-butter-chocolate-marshmallow-p-1782.html"><img src="images/imagecache/6453.jpg" border="0" alt="Body Butter: Chocolate Marshmallow 4 oz." title=" Body Butter: Chocolate Marshmallow 4 oz. " width="70" height="47"></a><br><a href="http://www.XXXXXX.com/catalog/body-butter-chocolate-marshmallow-p-1782.html">Body Butter: Chocolate Marshmallow 4 oz.</a><br>$7.99</td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> < /td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ></TD> </tr> <TR><TD height=7 background=images/dropshadow_bottom.jpg><IMG height=7 src="images/dropshadow_bottomleft.jpg" width=7></TD><TD><IMG height=7 src="images/dropshadow_bottomright.jpg" width=7></TD></TR> </table> </td> </tr> < !-- whats_new_eof //--> < !-- specials //--> <tr> <td> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxHeading"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">Specials</td> <td height="14" class="infoBoxHeading" nowrap><a href="http://www.XXXXXX.com/catalog/specials.php"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more "></a><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ><IMG height=7 src="images/dropshadow_topright.jpg" width=7></TD> </tr> </table> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td align="center" class="boxText"><a href="http://www.XXXXXX.com/catalog/leather-front-halter-p-881.html"><img src="images/imagecache/l4113.jpg" border="0" alt="Leather zip front halter top" title=" Leather zip front halter top " width="70" height="126"></a><br><a href="http://www.XXXXXX.com/catalog/leather-front-halter-p-881.html">Leather zip front halter top</a><br><s>$39.99</s><br><span class="productSpecialPrice">$35.99</span></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> < /td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ></TD> </tr> <TR><TD height=7 background=images/dropshadow_bottom.jpg><IMG height=7 src="images/dropshadow_bottomleft.jpg" width=7></TD><TD><IMG height=7 src="images/dropshadow_bottomright.jpg" width=7></TD></TR> </table> </td> </tr> < !-- specials_eof //--> < !-- best_sellers //--> <tr> <td> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxHeading"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">Bestsellers</td> <td height="14" class="infoBoxHeading" nowrap><a href="http://www.XXXXXX.com/catalog/best_sellers.php"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more "></a><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ><IMG height=7 src="images/dropshadow_topright.jpg" width=7></TD> </tr> </table> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><table border="0" width="100%" cellspacing="0" cellpadding="1"><tr><td class="infoBoxContents" valign="top">01.</td><td class="infoBoxContents"><a href="http://www.XXXXXX.com/catalog/double-dolphin-p-571.html">Double Dolphin</a></td></tr><tr><td class="infoBoxContents" valign="top">02.</td><td class="infoBoxContents"><a href="http://www.XXXXXX.com/catalog/jack-rabbit-p-531.html">Jack Rabbit</a></td></tr><tr><td class="infoBoxContents" valign="top">03.</td><td class="infoBoxContents"><a href="http://www.XXXXXX.com/catalog/juli-ashton-anal-beginner-p-75.html">JULI ASHTON ANAL BEGINNER</a></td></tr><tr><td class="infoBoxContents" valign="top">04.</td><td class="infoBoxContents"><a href="http://www.XXXXXX.com/catalog/hitachi-magic-wand-p-1148.html">Hitachi Magic Wand</a></td></tr><tr><td class="infoBoxContents" valign="top">05.</td><td class="infoBoxContents"><a href="http://www.XXXXXX.com/catalog/narrow-chrome-band-p-171.html">1/2" X 2" NARROW CHROME BAND</a></td></tr></table></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> < /td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ></TD> </tr> <TR><TD height=7 background=images/dropshadow_bottom.jpg><IMG height=7 src="images/dropshadow_bottomleft.jpg" width=7></TD><TD><IMG height=7 src="images/dropshadow_bottomright.jpg" width=7></TD></TR> </table> </td> </tr> < !-- best_sellers_eof //--> < !-- search //--> <tr> <td> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxHeading"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">Quick Find</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ><IMG height=7 src="images/dropshadow_topright.jpg" width=7></TD> </tr> </table> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td align="center" class="boxText"><form name="quick_find" action="http://www.XXXXXX.com/catalog/advanced_search_result.php" method="get"><input type="text" name="keywords" size="10" maxlength="30" style="width: 135px">?<input type="image" src="includes/languages/english/images/buttons/button_quick_find.gif" border="0" alt="Quick Find" title=" Quick Find "><br>Use keywords to find the product you are looking for.<br><a href="http://www.XXXXXX.com/catalog/advanced_search.php"><b>Advanced Search</b></a></form></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> < /td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ></TD> </tr> <TR><TD height=7 background=images/dropshadow_bottom.jpg><IMG height=7 src="images/dropshadow_bottomleft.jpg" width=7></TD><TD><IMG height=7 src="images/dropshadow_bottomright.jpg" width=7></TD></TR> </table> </td> </tr> < !-- search_eof //--> < !-- my new box //--> <tr> <td> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxHeading"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">Sex Information</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ><IMG height=7 src="images/dropshadow_topright.jpg" width=7></TD> </tr> </table> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><a href="http://www.XXXXXX.com/catalog/analsex.php">Anal Sex</a><br><a href="http://www.XXXXXX.com/catalog/analtoy.php">Anal Toys</a><br><a href="http://www.XXXXXX.com/catalog/vaginal.php">Vaginal Sex</a><br><a href="http://www.XXXXXX.com/catalog/dildo.php">Dildos</a><br><a href="http://www.XXXXXX.com/catalog/vibrator.php">Vibrators</a></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> < /td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ></TD> </tr> <TR><TD height=7 background=images/dropshadow_bottom.jpg><IMG height=7 src="images/dropshadow_bottomleft.jpg" width=7></TD><TD><IMG height=7 src="images/dropshadow_bottomright.jpg" width=7></TD></TR> </table> </td> </tr> < !-- information_eof //--> < !-- Add Favorites //--> < tr> <td> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxHeading"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">Add to Favorites</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ><IMG height=7 src="images/dropshadow_topright.jpg" width=7></TD> </tr> </table> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td align="center" class="boxText"><a href="java script:window.external.AddFavorite('http://www.XXXXXX.com/catalog/', 'XXXXXX.com')">Bookmark Us</a></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> < /td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ></TD> </tr> <TR><TD height=7 background=images/dropshadow_bottom.jpg><IMG height=7 src="images/dropshadow_bottomleft.jpg" width=7></TD><TD><IMG height=7 src="images/dropshadow_bottomright.jpg" width=7></TD></TR> </table> </td> < /tr> < !-- Add Favourites_eof //--> <!-- information //--> <tr> <td> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxHeading"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">Information</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ><IMG height=7 src="images/dropshadow_topright.jpg" width=7></TD> </tr> </table> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><a href="http://www.XXXXXX.com/catalog/shipping.php">Shipping, Payment & Returns</a><br><a href="http://www.XXXXXX.com/catalog/privacy.php">Privacy Notice</a><br><a href="http://www.XXXXXX.com/catalog/conditions.php">Conditions of Use</a><br><a href="http://www.XXXXXX.com/catalog/my_points_help.php">Point Program FAQ</a><br><a href="http://www.XXXXXX.com/catalog/why.php">Why Shop at XXXXXX?</a><br><a href="http://www.XXXXXX.com/catalog/sizeinfo.php">Size Chart</a><br><a href="http://www.XXXXXX.com/catalog/contact_us.php">Contact Us</a><br><a href="http://www.XXXXXX.com/catalog/faq.php">FAQ</a><br></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> < /td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ></TD> </tr> <TR><TD height=7 background=images/dropshadow_bottom.jpg><IMG height=7 src="images/dropshadow_bottomleft.jpg" width=7></TD><TD><IMG height=7 src="images/dropshadow_bottomright.jpg" width=7></TD></TR> </table> </td> </tr> < !-- information_eof //--> < !-- faqdesk //--> <tr> <td> <!-- faqdesk_eof //--> </td> </tr> <!-- 2Checkout Info Box //--> <tr> <td> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxHeading"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">Certified Seller</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ><IMG height=7 src="images/dropshadow_topright.jpg" width=7></TD> </tr> </table> < table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td align="center" class="boxText"><img src="images/2co.gif" border="0" alt=""></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> < /td> <TD width=7 vAlign=top background=images/dropshadow_right.jpg ></TD> </tr> <TR><TD height=7 background=images/dropshadow_bottom.jpg><IMG height=7 src="images/dropshadow_bottomleft.jpg" width=7></TD><TD><IMG height=7 src="images/dropshadow_bottomright.jpg" width=7></TD></TR> </table> < /td></tr> < !-- 2CheckOut_eof //--><!-- left_navigation_eof //--> </table></td> < !-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"></td> <td class="pageHeading" align="right"><img src="images/table_background_default.gif" border="0" alt="" width="77" height="40"></td> </tr> </table></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main"></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td> </tr> <tr> <td class="main"><P> < P><EM></EM></P><EM>?????????????? Besure to check out this month's specials and Customer Reviews !!</EM></P><EM> < P></P></EM> < P><EM>????<IMG height=300 alt="Specials & Reviews" src="http://www.XXXXXX.com/catalog/images/frontpage.gif" width=500 useMap=#Map border=0> <MAP name=Map><AREA shape=RECT alt=Specials coords=10,9,242,60 href="http://www.XXXXXX.com/catalog/specials.php"><AREA shape=RECT alt=Reviews coords=280,9,493,60 href="http://www.XXXXXX.com/catalog/reviews.php"><AREA shape=RECT alt="Lucid Dream Vibs" coords=20,102,478,290 href="http://www.XXXXXX.com/catalog/advanced_search_result.php?search_in_description=1&keywords=Lucid&pfrom=&pto=&categories_id=&x=6&y=9"></MAP></EM></P> < P>?</P> < P><EM>Welcome to XXXXXX.com! We're glad you stopped by! <BR></EM></P> < P><EM>We carry more than 1500 products and are adding new products?weekly. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2006 Share Posted April 7, 2006 (edited) I think you need to add some print_r() into the code so we can see what is going on. The issue appears to be: < b>Warning</b>: Division by zero in <b>/home/XXXXXX2/public_html/catalog/includes/header.php</b> on line <b>153</b><br /> This is I think to do with the lines: $rx = $image_size[0] / $width; $ry = $image_size[1] / $height; if ($rx < $ry) { $width = intval($height / $ratio); } } Its one of these causing the problem Edited April 7, 2006 by cymonguk Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.