greree Posted January 29, 2003 Share Posted January 29, 2003 I downloaded and installed Best Sellers scroll, which has a major flaw. If I have ten best sellers, it'll divide the box into ten little windows and each bestseller will scroll in it's own section. You can see an example of the problem at http://www.puresoap.com/. The code that does this is $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_BESTSELLERS ); new infoBoxHeading($info_box_contents, false, false); $rows = 0; $info_box_contents = array(); while ($best_sellers = tep_db_fetch_array($best_sellers_query)) { $rows++; $info_box_contents[] = array('align' => 'left', 'text' => '<center><marquee direction="up" scrollAmount="1" style="width:118;height:65">' . '. <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id'], 'NONSSL') . '">' . $best_sellers['products_name'] . '</a></marquee>'); } new infoBox($info_box_contents); I want something that will generate a list and then scroll the whole thing. Any ideas? Quote Link to comment Share on other sites More sharing options...
Dionisay Posted January 30, 2003 Share Posted January 30, 2003 Yes I am Having the same problems. Any Sugestions anyone ? Quote Link to comment Share on other sites More sharing options...
apodigm Posted January 30, 2003 Share Posted January 30, 2003 I am new to osCommerce. and I have yet to build a complete load with all the contributions/features. However, I do know that scolling items will be a requirement that my customer will ask for. I did a similar thing that used an iframe. I modified some code from dynamicdrive.com for a scrolling box. It includes a pause (you set the delay) for each item, and variable speed for the scroll. I modified thier code to allow the items in to rotate so that it doesn't have the blank area that most scrolling boxes get at the bottom of the list. I think this code (Javascript) could be modified to for use in your best sellers box. Once I get further into osCommerce, I'll try to turn this into a contribution. (BTW... marquee is only supported in IE; this javascript is ok for IE4+ and NS6+) You can rip the source from this page: http://www.hipoparts.com/features.php Quote Link to comment Share on other sites More sharing options...
wizardsandwars Posted January 30, 2003 Share Posted January 30, 2003 (BTW... marquee is only supported in IE; this javascript is ok for IE4+ and NS6+) Not anymore, Netscape 7.0 supports the marquee tag. Quote ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
greree Posted January 30, 2003 Author Share Posted January 30, 2003 I sent an email to the guy who wrote the contribution. He said he's working on a fix for the problem and he'll post it to the contributions section when it's finished. In the meantime I just took the list and manually entered it into a scrolling box. It doesn't dynamically change, but I don't suppose that's critical. In fact I may leave it like that. I might want to push certain products by calling them best sellers. Quote Link to comment Share on other sites More sharing options...
Snowman Posted May 3, 2003 Share Posted May 3, 2003 I have seen a few sites which are using the scrolling best sellers module, but its displaying the image of the product as well as the text....anyone know which mod des that? 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.
Note: Your post will require moderator approval before it will be visible.