View Full Version : Layer/div Scroll?
Badman3k
06-23-2002, 12:15 AM
I'm having a problem with my DIV's. I have created several layers using the <DIV> tag. On several of these layers there is a lot of text. i want to be able to scroll this up and down but ONLY the text! i don't want any of the other layers to move, as this wouldn't have the effect that i want to achieve. i need it to work on Internet Explorer. I don't care which version, as i have the latest and i'll just run simple script to check the users version, if need be.
I would be VERY grateful if someone could help. I realise it may not be possible with JavaScript, but if someone knows of another language that would work, and possible even a "script" i would be grateful for that too!
I do hope someone can help me.
Many thanks in advance,
MrPink
06-23-2002, 11:48 PM
Take a look at the zip-file I've included......
It's a neat script created in Dreamweaver.
MrPink
Oh...... I forgot this: you should put the images in a directory called 'img'.
I did it with javascript.
I can show you how, but you have to wait a little bit, 'cause i'm studying for an exam and have no extra time for such things.
Wait a few days and you will see
Just set the following CSS properties:
width: myWidth;
height: myHeight;
overflow: scroll;
That will work in IE and Gecko.
ashnarayana
06-25-2002, 04:17 AM
try this site it has great stuff and has some coding for a script similar what you are talking about:
DHTML Central (http://www.dhtmlcentral.com/)
gorilla1
06-25-2002, 02:56 PM
MrPink,
Nice. However, while the script has code for NN4, unfortunately on my NN4.51 (which I keep as a cross-browser test) it does not work. I cant yet spot why.
G
MrPink
06-25-2002, 05:56 PM
Netscape isn't very good with layers..... For that I'm starting to dis-like Netscape (even NS6!)
Someone else helped me out with a similar problem of mine: 'Put the <div>-tags right after de <body>-tag.'
Maybe it helps....
Quasibobo
is somebody still interested in the way who i solved the problem of scrolling layers/divs or the file in an other frame?
If yes i'll post my source code
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.