1)Was geht nicht?
2)Was hast du schon versucht?
3)Kannst du mir erklären wiso du eine HTML Datei ohne body hast?
Hab mich anscheinend völlig falsch ausgedrückt. Ich poste mal den Quellcode
bilder.js
----------------------------
function Vlona() {
var j,l="",m="",p="",q="",z="",list= new Array()
list[list.length]='vlona01.jpg';
list[list.length]='vlona02.jpg';
list[list.length]='vlona03.jpg';
list[list.length]='vlona04.jpg';
j=parseInt(Math.random()*list.length);
j=(isNaN(j))?0:j;
if (list[j].indexOf('?')==-1) {
document.write("<img src='"+list[j]+"'>");
}
else {
nvp=list[j].substring(list[j].indexOf('?')+2).split('&');
for(var i=0;i<nvp.length;i++) {
sub=nvp[i].split('=');
switch(sub[0]) {
case 'link':
l="<a href='"+unescape(sub[1])+"'>";
p="</a>";
break;
case 'target':
q=" target='"+unescape(sub[1])+"'";
break;
default:
m+=" "+sub[0]+"='"+unescape(sub[1])+"'";
break;
}
}
z=(l!="")?((q!="")?l.substring(0,l.length-1)+q+">":l):"";
z+="<img src='"+list[j].substring(0,list[j].indexOf('?'))+"'"+m+">"+p;
document.write(z);
}
}
index.htm
----------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Koorbash</title>
</head>
<body text="#fff4ca" bgcolor="#4b2d22">
<table align="center" style="height:100%; background-image:url(seite.png); background-repeat:repeat-y; padding:0" cellpadding="0" cellspacing="0" border=0>
<colgroup>
<col width="140">
<col width="606">
<col width="6">
</colgroup>
<tr style="height:169px" valign="top">
<td><img src="back.png" border="0" alt=""></td>
<td style="background-image:url(back-top.jpg); background-repeat:repeat-x; padding-left:10px; padding-top:10px;">
########### Hier soll die Funktion ein Bild hinzeichnen z. b. vlona1.png###############
<table width="100%" style="padding-top:0px" border=0><tr><td>
<a href="news.htm"><img src="menue/news.png" border="0" alt=""></a></td><td>
<a href="band.htm"><img src="menue/band.png" border="0" alt=""></a></td><td>
<a href="multimedia.htm"><img src="menue/multimedia.png" border="0" alt=""></a></td><td>
<a href="vlonaslog.htm"><img src="menue/vlonaslog.png" border="0" alt=""></a></td><td>
<a href="tour.htm"><img src="menue/tour.png" border="0" alt=""></a></td><td>
<a href="merchandise.htm"><img src="menue/merchandise.png" border="0" alt=""></a></td><td>
<a href="write.htm"><img src="menue/write.png" border="0" alt=""></a></td><td>
<a href="links.htm"><img src="menue/links.png" border="0" alt=""></a>
</td><td>
</table>
</td>
<td><img src="top-li.png" border="0" alt=""></td>
</tr>
<tr valign="center" align="right">
<td></td>
<td>
</td>
</tr><tr style="height:31px" valign="bottom"><td><img src="back-unt.png" border="0" alt=""></td><td><img src="hell.png" width="610" height="14" border="0"></td>
<td><img src="top-li-unt.png" border="0" alt=""></td></tr>
</table>
</body>
</html>