PDA

View Full Version : Scrollable Iframe - from left to right?



Kalle
10-14-2004, 10: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, 09: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-19-2004, 12:44 AM
I'd love this script as well!

ddadmin
10-19-2004, 05: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.

sCHL
01-16-2005, 10:15 AM
@ddadmin: what about the left-right script? i'm looking for such a script. are there any news? thanks for response...

FPit
01-16-2005, 10:41 AM
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.

sCHL
01-16-2005, 10:45 AM
no i'm looking for something more complicated. the scrollable content should scroll only when you put your mouse on an left/right button.

FPit
01-16-2005, 01:09 PM
Change
window.scrollBy(speed,0)
to
window.scrollBy(0,speed)

I rule.

sCHL
01-16-2005, 02:22 PM
sorry?

where do I have to change this code?

FPit
01-17-2005, 11:18 AM
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, 12:45 PM
Hi all,

Its not working in Google Chrome.

Can some one help?

Thanks and regards,
Krishnam