Sil Pan
10-18-2003, 04:06 AM
how do i make a text stay at the bottom right corner of the screen and when i scroll down or up, it won't move but will stay at the same place?
|
View Full Version : fixed text Sil Pan 10-18-2003, 04:06 AM how do i make a text stay at the bottom right corner of the screen and when i scroll down or up, it won't move but will stay at the same place? toolman 10-18-2003, 12:01 PM Is this like what you mean: http://www.dynamicdrive.com/dynamicindex4/flyimage2.htm This one uses and image aswell, but you could edit it to stop it moving up and down aswell. COBOLdinosaur 10-18-2003, 06:09 PM <html> <head> <title> static layer</title> <script language="JavaScript"> <!-- var Moffset = 400; function resetPos() { document.getElementById('thediv').style.top=docume nt.body.scrollTop+Moffset; } window.onscroll=resetPos; //--> </script> <body onLoad="Moffset=document.body.clientHeight-40; resetPos();" onResize="Moffset=document.body.clientHeight-40; resetPos();"> <div id="thediv" style="position:absolute;left:10;top:400;z-index:20;width:120; background-color:blue;color:yellow"> this is the message </div> <div> all the other stuff in teh page </div> </body> </html> |