Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

}

?>

  • 4 weeks later...

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...