[Beschreibung]
Die Navigations Items "fallen" ins Bild.
[Kompatibilität]
[Code]
onLoad="buildMenu(), scrollItems();"
<script language="JavaScript"> <!-- Begin /* This script was written by an unknown coder * and was modified by N8i (www.nightfire.ch) * This script works 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 objectX; function buildMenu() { speed=35; topdistance=100; items=3; // Anzahl der Objekte y=-50; ob=1; if (ns4up) { dS="document."; sD=""; v=".top="; } if (ie4up) { dS=""; sD=".style"; v=".pixelTop="; } if (mozup) { dS="document.getElementById(objectX)"; sD=".style"; v=".top="; } } function scrollItems() { if (ob<items+1) { objectX="object"+ob; y+=10; if (ns4up || ie4up) { eval(dS + objectX + sD + v + y); } else { eval(dS + sD + v + y); } if (y<topdistance) { setTimeout("scrollItems()",speed); } else { y=-50; topdistance+=40; ob+=1; setTimeout("scrollItems()",speed); } } } // End --> </SCRIPT> <div id="object1" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2"> <table border=1 width=150 bgcolor=#33FF33> <td> <center> <a href=dummy.htm>Page 1</a> </center> </td> </table> </div> <div id="object2" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2"> <table border=1 width=150 bgcolor=#FFFF00> <td> <center> <a href=dummy.htm>Page 2</a> </center> </td> </table> </div> <div id="object3" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2"> <table border=1 width=150 bgcolor=#FF0000> <td> <center> <a href=dummy.htm>Page 3</a> </center> </td> </table> </div>
?? modified by N8i (www.nightfire.ch)
Kopieren Sie bitte den Code