View Full Version : Scrollable Iframe - from left to right?
Kalle
10-14-2004, 09:19 PM
Hello.
I found this script on DD and i was very glad i did.
http://dynamicdrive.com/dynamicindex17/iframescroll.htm (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
ddadmin
10-18-2004, 08:56 PM
I'll take a look at possibily creating a 2nd version of this script that scrolls from left to right. Nothing definitive yet, however.
LikwidNyte
10-18-2004, 11:44 PM
I'd love this script as well!
ddadmin
10-19-2004, 04:04 AM
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.
@ddadmin: what about the left-right script? i'm looking for such a script. are there any news? thanks for response...
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.
no i'm looking for something more complicated. the scrollable content should scroll only when you put your mouse on an left/right button.
Change
window.scrollBy(speed,0)
to
window.scrollBy(0,speed)
I rule.
sorry?
where do I have to change this code?
Find the line which says "window.scrollBy(0,speed)", and replace it with "window.scrollBy(speed,0)". It's in the code...
krishnamvizag
07-19-2010, 11:45 AM
Hi all,
Its not working in Google Chrome.
Can some one help?
Thanks and regards,
Krishnam
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.