PDA

View Full Version : Script



pcuser42
31-07-2006, 07:24 PM
Three scripts (into one):

I need a script that centers the background image and resizes it to a specific size, and one that stops it from scrolling with the page. :help: please.

Renmoo
31-07-2006, 09:45 PM
Hmmm, I don't quite get what you mean. Centers the background image? If you want to stop the background image from scrolling down with the page, you can "watermark" your page (somewhat irrelevant to this thread, since you are looking for a script that has this component built into it) by adding style="background-attachment: fixed" within the <body> tag of your webpage (hang on, webpage isn't it?).

e.g. <body background="images/buddylogo.jpg" style="background-attachment: fixed">


Cheers :)

pcuser42
01-08-2006, 08:30 AM
Okay, so the image needs to be in the center, like the desktop wallpaper does, but not quite the whole page.

netchicken
01-08-2006, 09:06 AM
You need to learn CSS.

That can do exactly what you want very easily.