ang2006 Posted November 11, 2007 Posted November 11, 2007 Hi all, I have been trying to create a scrolling manufacturers scrolling infobox. I am new to code writing and i am therefore stuck. Can anyone with experience help!!!!!!!!!!!!! Thank you in advance. Darren Here is my code <?php /* osCommerce, Open Source E-Commerce Solutions Copyright © 2007 osCommerce Released under the GNU General Punblic License */ $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name, manufacturers_image from " . TABLE_MANUFACTURERS . " order by manufacturers_name"); if ($number_of_rows = tep_db_num_rows($manufacturers_query)) { ?> <!-- manufacturers //--> <tr> <td> <?php while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $manufacturers .= '<a href="' . tep_href_link(FILENAME_INDEX, 'manufacturers_id=' . $manufacturers['manufacturers_id']) . '">' . tep_image (DIR_WS_IMAGES . $manufacturers ['manufacturers_image'], $manufacturers ['manufacturers_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><a href="' . tep_href_link(FILENAME_INDEX, 'manufacturers_id=' . $manufacturers['manufacturers_id']) . '</a><span style="color:#0000FF;">' . $manufacturers['manufacturers_name']; $manufacturers .= "</SPAN>"; } $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<MARQUEE behavior= "scroll" align= "center" direction= "left" height= "120" scrollamount= "4" scrolldelay= "20" loop = "true" onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>'.$manufacturers.'</span></MARQUEE>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- manufacturers_eof //--> <?php } ?> Quote
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.
Note: Your post will require moderator approval before it will be visible.