Well, the script isn't really designed to be used with an image of that size. Bear in mind that a real watermark is usually a small design or image imprinted on a document for security reasons, not something that covers the entire background of the paper. That being said, I can think of a few alternatives for you. First of all you needn't be afraid of a larger image causing scrollbars, as a background image is automatically cropped to fit the available screen size. However, the larger the image, the slower your page will load and there will always be a larger monitor on which it will still be too small. So, either come up with a smaller image that will look good centered on any sized page, or tiled (repeat instead of no-repeat). Another option is, where it says 'white' in the script, change that to a dominant color from the image (try '#E9E9F1' without the quotes around it). That will fill in the blank space with a color that blends in. You really don't need a script at all for this effect, you can use pure style inserted in the head of the document try:
Code:
<style type="text/css">
body {
background:url('img/transparentnewheads.jpg') #E9E9F1 center no-repeat fixed;
}
</style>
or:
Code:
<style type="text/css">
body {
background:url('img/transparentnewheads.jpg') #E9E9F1 center repeat fixed;
}
</style>
Once you break it out this way, altering the values to suit becomes more manageable and it will work on browsers with or without javascript enabled. See this link for all the choices available to you:
http://www.blooberry.com/indexdot/cs...colorbg/bg.htm
Just changing 'no-repeat' to 'repeat' will be a big improvement on that larger screen.
Bookmarks