[FadingWatermark]

Wasserzeichen mit Fading Effekt.

[Kompatibilität]

[zwischen <HEAD> und </HEAD>]

<script language="JavaScript">
<!-- Fade Link script by kurt.grigg@virgin.net
//modifications for DOM compatibility by nightfire

var nn= (document.getElementById && !document.all); // Netscape ab Version 6
var ie= (document.all && document.getElementById); // Explorer ab Version 5


Location='mailto:webmaster@irgendwo.ch' //Enter your link here.
Img=new Image();
Img.src="ghost3.gif"; //Pre-load your image. Bild muss quadratisch sein!
ImageName="ghost3.gif"; //Your image name, same as above.
S=null;
if(ie) { fadeStep = 3; fade = 70; }
else { fadeStep = .3; fade = 7; }

currentStep=0;
step = 1;
x=0;
y=0;
function Expand(){

y=document.getElementsByTagName("body")[0].clientHeight-80 +document.getElementsByTagName("body")[0].scrollTop;
x=document.getElementsByTagName("body")[0].clientWidth-80;
document.getElementById("pic").style.height=currentStep*2;
document.getElementById("pic").style.width=currentStep*2;
document.getElementById("pic").style.top=y+(-currentStep);
document.getElementById("pic").style.left=x+(-currentStep);

if(ie) document.getElementById("pic").style.filter='alpha(opacity='+fade+')';
else document.getElementById("pic").style.filter='-moz-opacity:'+fade+')';

currentStep+=step;
if(ie) {
if (currentStep > 60) fade-=fadeStep;
if (fade < -20) {currentStep=0;fade=70;}

}else{

if (currentStep > 6) fade-=fadeStep;
if (fade < -2) {currentStep=0;fade=7;}

}

S=setTimeout('Expand()',50);
}


document.write('<div style="position:absolute;top:0px;left:0px">');
document.write('<div style="position:relative">');
document.write('<a href="'+Location+'">'
+'<img id="pic" src="'+ImageName+'" border="0" style="position:absolute;top:0px;left:0px"></a>');
document.write('</div></div>');

if (document.getElementById)
window.onload=Expand;
//-->
</script>

[Autor]


Kurt Grigg
DOM Kompatibilität by nightfire

[Download]

Kopieren Sie bitte den Code.

Copyright © 1998- Nightfire Webworker Archiv Script No: 353