Greets,
ExplosioN
| |
|
Welcome to KnowledgeSutra - Dear Guest | |
Posted 01 August 2005 - 01:45 AM
Posted 02 April 2009 - 05:36 AM
There iare numerous ways this can be done. Make sure on either method to change the image to your background of course. Here are two different ways I just happen to have in my documents at the moment:
<script language="JavaScript1.2">
if (document.All||document.GetElementById)Document.Body.Style.Background="url('YourIMG.Jpg') white center no-repeat fixed"
</script>
As you probably figured the script goes at the start of your body (inside of the body tags of course).
This is actually ment to give you a watermark effect so your background doesnt scroll but it will also work for your resizing issue. Here is another way to do it using div's:
<div style="position:absolute; width:100%; height:100%; margin:0px; padding:0px; left:0px; right:0px;z-index:1"> <img src="YourIMG.Jpg" width="100%" height="100%"></div>
<div style="z-index:2; position:absolute; margin:0px; padding:0px; height:100%; width:100%; overflow:scroll;">
<p> </p> <p>THIS IS THE CONTENT</p>
</div>
-reply by Eric Backer
Posted 04 April 2009 - 10:05 AM
Posted 11 July 2010 - 03:45 PM
kleong, on 04 April 2009 - 10:05 AM, said:

0 members, 1 guests, 0 anonymous users