View Full Version : Watermark Background Image Script
bulmz
03-11-2006, 12:00 PM
Hi
I want to use the script to display an image within a table? Does anybody have any idea about how I would do this?
Thanks for your help
jscheuer1
03-11-2006, 01:51 PM
The Watermark Background Image Script doesn't need to be a script, it is just css style applied via javascript. It could be applied using only style (and thereby work even on non-javascript enabled browsers) by putting this style block in the head of the page:
<style type="text/css">
body {
background:url('notebook.jpg') white center no-repeat fixed;
}
</style>
If you wanted it to be applied to a table instead of the body, give your table an id, say - bgtable:
<table id="bgtable"><tr><td>Hi</td></tr></table>
Then use the table's id as a selector in the style block:
<style type="text/css">
#bgtable {
background:url('notebook.jpg') white center no-repeat fixed;
}
</style>
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.