Click to See Complete Forum and Search --> : floating text


kieranplatt
01-08-2003, 10:57 AM
Can anyone pleasehelp tweak this script so that the text always slides to the bottom of the browser window, regardless of window size.
http://www.javascriptsource.com/bgeffects/persistent-layer.html

regards

Kieran Platt

AdamGundry
01-08-2003, 11:03 AM
I think you should be able to change the line

var topMargin = 100;

to something like

var topMargin = window.innerHeight - 20;

Fiddle around with the last value to get the effect you want. I'm not sure, but the amount of browser chrome could cause problems, so try it and see.

Alternately, you could use a small bottom frame, which might be more useful depending on the exact circumstances.

Adam

kieranplatt
01-08-2003, 03:54 PM
I'm afraid it doesn't work - instaed of floating the text now just sits at the top of the screen. Any more ideas please?

regards Kieran