PDA

View Full Version : Watermark Background Image Script



maloun
10-16-2004, 11:38 AM
Hi!
I'm trying to put this Watermark Background Image Script on my page, but i can't seemt to get it to work :confused: . Can anyone help me?
This is how it lookes like now.... :(

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Hanne's Folke</title>
<base target="_blank">
<title>Hanne's Folke</title>
<style type="text/css">
<!--
h1 {font-size: 20pt; font-family: Verdana}
h2 {font-size: 12pt; font-family: Verdana}
h3 {font-size: 10pt; font-family: Verdana}
p {font-size: 10pt; font-family: Verdana}
body,td,th {color: #043673;}
body {background-color: #e3e3e3;}
.style1 { color: #043673;
font-weight: bold;}
-->
</style>
</head>

<body link="#e3e3e3" vlink="#e3e3e3" alink="#e3e3e3" bgcolor="#E3E3E3" text="#E3E3E3">
<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('Vadum_021004_lille_red.jpg') e3e3e3 center no-repeat fixed"
</script>

<p align="center" class="style1"><font color="#800000" face="Monotype Corsiva" size="6">Hanne's
Folke</font></p>
<blockquote>
<p align="center">&nbsp;&nbsp;&nbsp;&nbsp; <font face="Tahoma" size="2" color="#800000">&nbsp;
</font></p>
</blockquote>
</body>

</html>

TY
Maloun

maloun
10-16-2004, 11:44 AM
Oh...u can take a look at the script here...sorry...

http://www.dynamicdrive.com/dynamicindex3/fixback.htm

cr3ative
10-16-2004, 11:51 AM
Try replacing this line

document.body.style.background="url('Vadum_021004_lille_red.jpg') e3e3e3 center no-repeat fixed"

with something like this (edit web address as appropriate)

document.body.style.background="url('www.host.com/folder/Vadum_021004_lille_red.jpg') #e3e3e3 center no-repeat fixed"

Note I'm using #e3e3e3 instead of e3e3e3. This may or may not help.

cr3ative