osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

javascript scroller on mainpage.php (Define mainpage)

This is a discussion on javascript scroller on mainpage.php (Define mainpage) within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; On the mainpage.php for Define mainpage I am trying to get a scroller to work but can not get the ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 04-29-2007, 03:34 AM
New Member
 
Join Date: Mar 2007
Posts: 21
Thanks: 6
Thanked 1 Time in 1 Post
Rep Power: 0
zuqaili is on a distinguished road
Default javascript scroller on mainpage.php (Define mainpage)

On the mainpage.php for Define mainpage I am trying to get a scroller to work but can not get the images to appear in it. I have tried to place the five .gif images for the scroller in catalog/includes/languages/english/images folder but that does not work. Another javascript on the same page, that displays the local international time works just fine but the scroller does'nt. Can some one please help.
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 04-29-2007, 05:33 AM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 7
neil is on a distinguished road
Default Re: javascript scroller on mainpage.php (Define mainpage)

Try the images in catalog/images
Reference images as
image.gif
NOT ../images/image.gif
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 04-29-2007, 10:56 AM
New Member
 
Join Date: Mar 2007
Posts: 21
Thanks: 6
Thanked 1 Time in 1 Post
Rep Power: 0
zuqaili is on a distinguished road
Default Re: javascript scroller on mainpage.php (Define mainpage)

Thanks for the reply. I have tried catalog/images before also and this time using the reference you have suggested but the problem is that i can not even get any single static images to be displayed on the main page unless i upload them using the insert/image feature of the FCK editor in admin/Define Mainpage. The editor then puts the images in a different folder 'UserFiles/Image'. Now the scroller does'nt work even when i put its .gif images in UserFiles/Image folder possibly because i am not uploading the images?. Any other suggestions would be most welcome and after reading through all this, if you think i am stupid, let me tell you that brains is somthing i have so much of that some times i don't know what to do with it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 04-29-2007, 05:39 PM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 7
neil is on a distinguished road
Default Re: javascript scroller on mainpage.php (Define mainpage)

Post the code here:
use the
Code:
 code in here
tags
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 04-30-2007, 05:14 AM
New Member
 
Join Date: Mar 2007
Posts: 21
Thanks: 6
Thanked 1 Time in 1 Post
Rep Power: 0
zuqaili is on a distinguished road
Default Re: javascript scroller on mainpage.php (Define mainpage)

Well it looks like there is no need to post the code now since i finally figured out the problem which was placing the <body onload= "start()"> in line 69 of main_page.tpl.php instead of leaving it on mainpage.php with the rest of the script. Now the scroller works nicely with reference ' images/photo.gif ' and using the catalog/images folder for it's images. BTW i found your other post about putting the images and links in infobox very useful too and really appreciate your help on this one as well.
Thanks and best regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 04-30-2007, 10:09 AM
New Member
 
Join Date: Apr 2007
Location: Diamond Bar, CA
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
intensea is on a distinguished road
Default Re: javascript scroller on mainpage.php (Define mainpage)

can you provide me a link of your website. i want to see what it looks like, and also the code to make it work.

Thanks in advance!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 04-30-2007, 06:55 PM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 7
neil is on a distinguished road
Thumbs up Re: javascript scroller on mainpage.php (Define mainpage)

Makes sense as main_page.tpl.php is where the head & body tags are.
I have removed "onload="selectRowEffect(this, 0)" from the body tag in main_page.tpl.php as this was causing an "Error on page" message in the task bar of IE.
Thanks to zuqaili for posting the solution.
__________________
HTH
Neil
www.12website.com

"You can have everything in life that you want if you will just help enough other people get what they want."
Zig Ziglar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 04-30-2007, 10:51 PM
New Member
 
Join Date: Mar 2007
Posts: 21
Thanks: 6
Thanked 1 Time in 1 Post
Rep Power: 0
zuqaili is on a distinguished road
Default Re: javascript scroller on mainpage.php (Define mainpage)

Neil I had also removed the 'onload...' part from the body call in main_page.tpl as per Michael's post regarding the error in IE. However, i am glad now after adding this new 'onload...' statement again i don't get the previous 'done with errors' in IE taskbar.
Intensea, so far i have tested the scroller only on my localhost but you can get the free code for it from Vertical Scroller Javascript Scrolling Script,Dhtml Vertical Text Scroller .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
WYSIWYG DEFINE MAINPAGE jkempton osCMax v1.7 Installation 2 06-16-2005 02:42 PM
Define Mainpage Chippy osCMax v1.7 Discussion 4 03-15-2005 10:56 AM
How to use define mainpage? lost and need help Anonymous osCMax v1.7 Discussion 1 07-02-2004 12:45 AM
Inserting a javascript in mainpage.php aalex osCMax v1.7 Discussion 0 02-05-2004 06:38 PM
define mainpage jloyzaga osCommerce 2.2 Modification Help 1 01-19-2004 11:44 AM


All times are GMT -8. The time now is 02:57 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax