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


Gandalf
12-31-2002, 03:54 AM
Hi, I've downloaded the Persistent Layer script from JavaScript.com and have it working except - big EXCEPT - I can't position it. It seems to take no notice of the position values in the <DIV> tag. www.get2thepoint.org.uk/clients2-test.htm (http://www.get2thepoint.org.uk/clients2-test.htm)

Any ideas, please G :-)>

Gandalf
01-01-2003, 02:45 AM
Hi Dave

Thanks. As you say it's a start - the text is in the right place but now it doesn't float! :) The script is at http://javascript.internet.com/bgeffects/persistent-layer.html

G :-)>

Gandalf
01-02-2003, 03:56 AM
Thanks, Dave. Unfortunately this takes me back to where I was to begin with. Someone suggested changing

floatLyr = new layerObject('floatLayer', pageWidth * .5);

to

floatLyr = new layerObject('floatLayer', pageWidth * .8);

to move it to the right. This works but (a) it doesn't move it down the screen; (b) the position is inconsistent between IE6 and NS6; and (c) it seems to mean the position attributes in the <div> tag are meaningless. I don't know but it seems a rather odd script. Sorry to be a pain, but any other suggestions?

G :-)>

Gandalf
01-03-2003, 10:38 AM
Thanks, Dave. Easy solution - I'll just set the values I want in each of the two assignment statements.

G :-)>