[Beschreibung]
Das Script lässt Textlinks sich wellengleich auf und ab bewegen
[Kompatibilität]
[Code]
<STYLE TYPE="text/css"> #lk1 {position:absolute;left:30px;top:300px;width:120px;height:25px;visibility:hidden;} #lk2 {position:absolute;left:425px;top:300px;width:120px;height:25px;visibility:hidden;} #lk3 {position:absolute;left:285px;top:150px;width:120px;height:25px;visibility:hidden;} #lk4 {position:absolute;left:125px;top:150px;width:120px;height:25px;visibility:hidden;} #lk5 {position:absolute;left:540px;top:100px;width:120px;height:25px;visibility:hidden;} #lk6 {position:absolute;left:165px;top:150px;width:120px;height:25px;visibility:hidden;} </STYLE> <script language="JavaScript"> <!-- /* This script was written by an unknown author * and was modified by N8i (www.nightfire.ch) * This script works now with all DOM compliant browsers */ //Browser Sniffer var ns4up = (document.layers) ? 1 : 0; var ie4up = (document.all) ? 1 : 0; var mozup = (!document.all && document.getElementById) ? 1 : 0; var si=0; initdone = 0; if (ns4up || ie4up || mozup) { if(!window.saveInnerWidth) { window.onresize = resizeIt; window.saveInnerWidth = window.innerWidth; window.saveInnerHeight = window.innerHeight; } } function resizeIt() { if (saveInnerWidth < window.innerWidth || saveInnerWidth > window.innerWidth || saveInnerHeight > window.innerHeight || saveInnerHeight < window.innerHeight) { window.history.go(0); } } function show(obj) { if (ns4up) obj.visibility = "show" else if (ie4up || mozup) obj.visibility = "visible" } function hide(obj) { if (ns4up) obj.visibility = "hide" else if (ie4up || mozup) obj.visibility = "hidden" } function init() { if (ns4up || ie4up || mozup) { if (ns4up) { ll1=document.lk1; ll2=document.lk2; ll3=document.lk3; ll4=document.lk4; ll5=document.lk5; ll6=document.lk6; } if (ie4up) { ll1=lk1.style; ll2=lk2.style; ll3=lk3.style; ll4=lk4.style; ll5=lk5.style; ll6=lk6.style; } if (mozup) { ll1=document.getElementById("lk1").style; ll2=document.getElementById("lk2").style; ll3=document.getElementById("lk3").style; ll4=document.getElementById("lk4").style; ll5=document.getElementById("lk5").style; ll6=document.getElementById("lk6").style; } show(ll1); show(ll2); show(ll3); show(ll4); show(ll5); show(ll6); initdone=1; startit(0); } } function startit(i) { runit(i); i--; if (i==-280) i=0; setTimeout('startit('+i+')',60); } function runit(i) { ll1.top=Math.sin((si+12)/10)*10+300; ll2.top=Math.sin(si/10)*10+280; ll3.top=Math.sin((si+22)/10)*10+280; ll4.top=Math.sin((si+42)/10)*10+300; ll5.top=Math.sin((si+32)/10)*10+230; ll6.top=Math.sin((si+82)/10)*10+200; si++; if (si>62) si=0; } //--> </script>
onload="init()"
<DIV ID="lk1"><b><a href="dummy.htm" target="_top">Link1</a></b></DIV> <DIV ID="lk2"><b><a href="dummy.htm" target="_top">Link2</a></b></DIV> <DIV ID="lk3"><b><a href="dummy.htm" target="_top">Link3</a></b></DIV> <DIV ID="lk4"><b><a href="dummy.htm" target="_top">Link4</a></b></DIV> <DIV ID="lk5"><b><a href="dummy.htm" target="_top">Link5</a></b></DIV> <DIV ID="lk6"><b><a href="dummy.htm" target="_top">Link6</a></b></DIV>
?? modified by N8i (www.nightfire.ch)
kopieren Sie bitte den Quellcode