Ivansok
06-04-2005, 02:36 AM
Using this script
http://www.dynamicdrive.com/dynamicindex3/fixback.htm
----------------------------------------------------------
I have successfully used this script on a simple page, and now want to use it inside a table but can't.
What i want to achieve is a fixed position background image inside the centre column of a table behind text.
What I get is the image on the page BEHIND the table so it won't show!
The situation is complicated by using SSI ingredients. Each pages has 4 elements:
top_page.htm
bottom_page.htm
text.htm
text.shtml
text.shtml calls the other three elements into the correct positions.
I have tried including the script inside both text.shtml and text.htm, but it always ends up as PAGE background not table background. I'm probably missing something pretty simple, but I'm new to this game :-)
here's the script
<script language="JavaScript1.2">
/*
Watermark Backgound Image Script- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS,
visit dynamicdrive.com
*/
if (document.all||document.getElementById)
document.body.style.background="url('notebook.jpg') white center no-repeat fixed"
</script>
cheers,
Ivan
http://www.dynamicdrive.com/dynamicindex3/fixback.htm
----------------------------------------------------------
I have successfully used this script on a simple page, and now want to use it inside a table but can't.
What i want to achieve is a fixed position background image inside the centre column of a table behind text.
What I get is the image on the page BEHIND the table so it won't show!
The situation is complicated by using SSI ingredients. Each pages has 4 elements:
top_page.htm
bottom_page.htm
text.htm
text.shtml
text.shtml calls the other three elements into the correct positions.
I have tried including the script inside both text.shtml and text.htm, but it always ends up as PAGE background not table background. I'm probably missing something pretty simple, but I'm new to this game :-)
here's the script
<script language="JavaScript1.2">
/*
Watermark Backgound Image Script- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS,
visit dynamicdrive.com
*/
if (document.all||document.getElementById)
document.body.style.background="url('notebook.jpg') white center no-repeat fixed"
</script>
cheers,
Ivan