Hallo !
kann mir jemand das folgende script so schreiben das ich 8 Links habe ?
P.S. ihr wisst ja das ich anfänger bin !
<html>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function buildMenu() {
speed=35;
topdistance=100;
items=6;
y=-50;
ob=1;
if (navigator.appName == "Netscape") {
v=".top=",dS="document.",sD="";
}
else {
v=".pixelTop=",dS="",sD=".style";
}
}
function scrollItems() {
if (ob<items+1) {
objectX="object"+ob; y+=10; eval(dS + objectX + sD + v + y);
if (y<topdistance) setTimeout("scrollItems()",speed);
else y=-50, topdistance+=40, ob+=1, setTimeout("scrollItems()",speed);
}
}
// End -->
</SCRIPT>
</HEAD>
<BODY onLoad="buildMenu(), scrollItems();" BGCOLOR="#000000" TEXT="#FFFFFF" LINK="#ff5555" VLINK="#FF6633" ALINK="#FFFF00" bgproperties="fixed">
<center>
<p><br>
<font color="#333366" face="Verdana, Arial, Helvetica, sans-serif" size="4"><i><b>
</b></i></font></p>
<p> </p>
</center>
<div id="object1" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<table border=1 width=150 bgcolor=#000099>
<td>
<center>
<a href=../back.htm>Link 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=#000099>
<td>
<center>
<a href=../back.htm>Link 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=#000099>
<td>
<center>
<a href=../back.htm>Link 3!</a>
</center>
</td>
</table>
</div>
<div id="object4" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<table border=1 width=150 bgcolor=#000099>
<td>
<center>
<a href=../back.htm>Link 4!</a>
</center>
</td>
</table>
</div>
<div id="object5" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<table border=1 width=150 bgcolor=#000099>
<td>
<center>
<a href=../back.htm>Link 5!</a>
</center>
</td>
</table>
</div>
<div id="object6" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<table border=1 width=150 bgcolor=##000099>
<td>
<center>
<font color="#000099"><a href=../back.htm>Link 6!</a> </font>
</center>
</td>
</table>
</div>
<center>
<font color="#FFFFFF"><br>
</font>
</center>
<center>
<p> </p>
<p><font color="#FFFFFF"></font></p>
<p> </p>
<p> </p>
</center>
<title></title>
</body>
</html>
kann mir jemand das folgende script so schreiben das ich 8 Links habe ?
P.S. ihr wisst ja das ich anfänger bin !
<html>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function buildMenu() {
speed=35;
topdistance=100;
items=6;
y=-50;
ob=1;
if (navigator.appName == "Netscape") {
v=".top=",dS="document.",sD="";
}
else {
v=".pixelTop=",dS="",sD=".style";
}
}
function scrollItems() {
if (ob<items+1) {
objectX="object"+ob; y+=10; eval(dS + objectX + sD + v + y);
if (y<topdistance) setTimeout("scrollItems()",speed);
else y=-50, topdistance+=40, ob+=1, setTimeout("scrollItems()",speed);
}
}
// End -->
</SCRIPT>
</HEAD>
<BODY onLoad="buildMenu(), scrollItems();" BGCOLOR="#000000" TEXT="#FFFFFF" LINK="#ff5555" VLINK="#FF6633" ALINK="#FFFF00" bgproperties="fixed">
<center>
<p><br>
<font color="#333366" face="Verdana, Arial, Helvetica, sans-serif" size="4"><i><b>
</b></i></font></p>
<p> </p>
</center>
<div id="object1" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<table border=1 width=150 bgcolor=#000099>
<td>
<center>
<a href=../back.htm>Link 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=#000099>
<td>
<center>
<a href=../back.htm>Link 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=#000099>
<td>
<center>
<a href=../back.htm>Link 3!</a>
</center>
</td>
</table>
</div>
<div id="object4" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<table border=1 width=150 bgcolor=#000099>
<td>
<center>
<a href=../back.htm>Link 4!</a>
</center>
</td>
</table>
</div>
<div id="object5" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<table border=1 width=150 bgcolor=#000099>
<td>
<center>
<a href=../back.htm>Link 5!</a>
</center>
</td>
</table>
</div>
<div id="object6" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<table border=1 width=150 bgcolor=##000099>
<td>
<center>
<font color="#000099"><a href=../back.htm>Link 6!</a> </font>
</center>
</td>
</table>
</div>
<center>
<font color="#FFFFFF"><br>
</font>
</center>
<center>
<p> </p>
<p><font color="#FFFFFF"></font></p>
<p> </p>
<p> </p>
</center>
<title></title>
</body>
</html>