Results 1 to 8 of 8

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 ...

      
  1. #1
    Member
    Join Date
    Mar 2007
    Posts
    30
    Rep Power
    0


    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

  2. #2
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    11


    Default Re: javascript scroller on mainpage.php (Define mainpage)

    Try the images in catalog/images
    Reference images as
    image.gif
    NOT ../images/image.gif
    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

  3. #3
    Member
    Join Date
    Mar 2007
    Posts
    30
    Rep Power
    0


    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.

  4. #4
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    11


    Default Re: javascript scroller on mainpage.php (Define mainpage)

    Post the code here:
    use the
    Code:
     code in here
    tags
    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

  5. #5
    Member
    Join Date
    Mar 2007
    Posts
    30
    Rep Power
    0


    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

  6. #6
    New Member
    Join Date
    Apr 2007
    Location
    Diamond Bar, CA
    Posts
    22
    Rep Power
    0


    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!

  7. #7
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    11


    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

  8. #8
    Member
    Join Date
    Mar 2007
    Posts
    30
    Rep Power
    0


    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 .

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •