Kenneth2k
11-18-2002, 02:18 AM
I'm looking for javascript that when I you scroll the bar, everything will move, but the background stay still. Can I have that script, plz. Thanks
|
||||
Please helpKenneth2k 11-18-2002, 02:18 AM I'm looking for javascript that when I you scroll the bar, everything will move, but the background stay still. Can I have that script, plz. Thanks MCookie 11-18-2002, 09:39 AM Hi, You don't need JavaScript to do that but CSS. Here's a link: http://www.devguru.com/Technologies/css/quickref/css_index.html And some code: <html> <head> <title></title> <style type="text/css"> <!-- body { background-color:#cccccc; background-image:url("clouds.gif"); background-attachment:fixed; } --> </style> </head> <body> </body> </html> duniyadnd 11-18-2002, 12:22 PM you can adjust your body tag as well: <body background="name_of_image" bgproperties="fixed"> Duniyadnd ronaldb66 11-18-2002, 01:18 PM The "background" attribute from the body element is deprecated in the more recent versions of (X)HTML, the "bgproperties" attribute isn't even in the standard, not in HTML 4.01 anyway; the CSS solution therefore is the preferred method. |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum