• Das Erstellen neuer Accounts wurde ausgesetzt. Bei berechtigtem Interesse bitte Kontaktaufnahme über die üblichen Wege. Beste Grüße der Admin

Script

Blaumeise

New member
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>
 
script

Das ist so ein fliegendes Linkmenü, das sind aber nur acht links, ich brauche aber doch 10 ... kann mir da jemand helfen? Ich habe es schon probiert aber dann gings niccht mehr...


<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>
 
Hier,

einfach ein "<div>" bereich Kopieren und einfügen und die Variable "items" einen höher setzten

<html>
<head>
<script language= "JavaScript">
<!-- Begin
function buildMenu()
{
speed=35;
topdistance=100;
items=10;
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>
<div id="object7" 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 7!</a> </font>
</center>
</td>
</table>
</div>
<div id="object8" 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 8!</a> </font>
</center>
</td>
</table>
</div>
<div id="object9" 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 9!</a> </font>
</center>
</td>
</table>
</div>
<div id="object10" 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 10!</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>

mfg Irvine
 
Zurück
Oben