Results 1 to 3 of 3

Thread: Help needed with iFrame scroller!

  1. #1
    Join Date
    Sep 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Help needed with iFrame scroller!

    Hiya,

    I want to use the following script in a webpage I'm making. Iframe scroller But I want it to scroll horizontally instead of up/down.

    The script for scrolling the window is as follows:
    function scrollwindow(){
    temp=(document.all)? document.body.scrollTop : window.pageYOffset
    alt=(alt==0)? 1 : 0
    if (alt==0)
    curpos1=temp
    else
    curpos2=temp

    window.scrollBy(0,speed)
    }

    I thought alterting it to the follwing would make it scroll horizontal, but no luck:
    function scrollwindow(){
    temp=(document.all)? document.body.scrollLeft : window.pageXOffset
    alt=(alt==0)? 1 : 0
    if (alt==0)
    curpos1=temp
    else
    curpos2=temp

    window.scrollBy(0,speed)
    }

    Could someone please help me with this?! I'm not all to sure what I need to change.

    My sincere thanx to anyone who helps out!

    Chin-Tok

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You've already had this answered.

    http://www.dynamicdrive.com/forums/showthread.php?t=183

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Sep 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by cr3ative
    You've already had this answered.

    http://www.dynamicdrive.com/forums/showthread.php?t=183

    cr3ative

    Srry but that isnt true, if you'd check this is a question about a different iFrams scroller, this one has buttons, while my previous question was about the automatic scroller!

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
  •