Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Scrollable Iframe - from left to right?

  1. #1
    Join Date
    Oct 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Scrollable Iframe - from left to right?

    Hello.

    I found this script on DD and i was very glad i did.
    http://dynamicdrive.com/dynamicindex17/iframescroll.htm
    However, I'd like to use it, but instead of scrolling up/down I
    would like it to scroll left/right. I tried to change some lines in
    the script(I don't know how to code Javascript at all )
    but nothing special happened.

    Now, if anyone want to help me I'd be very happy.
    Nice holidays!

    K

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I'll take a look at possibily creating a 2nd version of this script that scrolls from left to right. Nothing definitive yet, however.

  3. #3
    Join Date
    Oct 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'd love this script as well!

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Ok, I've been thinking about such a script, and practically, it might not be a very useful script. The content will need to be horizontal, meaning you'll need to set up rather messy table cells to each contain a piece of content that will be shown. Without these table cells, the text would just run the entire length of the hidden horizontal scrolling area- not pretty. Now, if the goal is to use a left right scrolling iframe just to display images, then no table cells are necessary, as each image creates its own height.

  5. #5
    Join Date
    Jan 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    @ddadmin: what about the left-right script? i'm looking for such a script. are there any news? thanks for response...

  6. #6
    Join Date
    Jan 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If you are looking for something that looks like this scroller at the bottom:
    http://www.projectdubai.com/projects.php?prj_id=48

    You may use the following code:
    <div style="width:640px; height:160px; overflow:auto;" align=left>
    content goes here, but as ddadmin said, it should be restricted in height
    </div>

    If you look for something like this code of scrolling left/right:
    http://www.globalvillage.ae/main.php (overview/general information to see scrollable content)
    Then I will give you the code, but it's customized now, so I will have to strip down few things.

  7. #7
    Join Date
    Jan 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    no i'm looking for something more complicated. the scrollable content should scroll only when you put your mouse on an left/right button.

  8. #8
    Join Date
    Jan 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Change
    window.scrollBy(speed,0)
    to
    window.scrollBy(0,speed)

    I rule.

  9. #9
    Join Date
    Jan 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sorry?

    where do I have to change this code?

  10. #10
    Join Date
    Jan 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Find the line which says "window.scrollBy(0,speed)", and replace it with "window.scrollBy(speed,0)". It's in the code...

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
  •