Code
<scripttype="text/javascript">/************************************************Translucent
Slideshow script- © Dynamic Drive DHTML code
library([url]www.dynamicdrive.com)*[/url] This notice MUST stay intact for
legal use*Visit Dynamic Drive at http://www.dynamicdrive.com/ for
full
sourcecode***********************************************///Breite
derGrafiken (in Pixeln)var trans_width='250px'//Hoehe der Grafiken
(inPixeln)var trans_height='300px'//Anzeigedauer (1000=1
Sekunde)varpause=3000//Animationsgeschwindigkeit, je hoeher,
destoschnellervar degree=10var slideshowcontent=new Array()//
Grafikenund Links// Syntax: grafik, optionaler Link, optionales
Ziel(target)slideshowcontent[0]=["http://www.saarlaender.de/nk-media/md5/eb/66/eb6686989f3c51f6ec6b60b4c83a21df.jpg","http://www.saarlaender.de/nk-media/md5/47/bb/47bb7332b0bff5c1c3bac34310ce3522.jpg","_blank"]slideshowcontent[1]=["http://mitglied.lycos.de/a9a/tumb/test2.jpg","http://www.saarlaender.de/nk-media/md5/9d/34/9d34bf32f452883776b978902dfc1e55.jpg","_blank"]slideshowcontent[2]=["http://mitglied.lycos.de/a9a/tumb/test3.jpg","http://mitglied.lycos.de/a9a/tumb/test3.jpg","_blank"]//
Hintergrundfarbevar bgcolor='white'//// Keineweiteren Aenderungen
erforderlich /////////////var
imageholder=newArray()for(i=0;i<slideshowcontent.length;i++){imageholder[i]=newImage()imageholder[i].src=slideshowcontent[i][0]}varie4=document.allvardom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1if(ie4||dom)document.write('<divstyle="position:relative;width:'+trans_width+';height:'+trans_height+';overflow:hidden"><divid="canvas0"style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div><divid="canvas1"style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div></div>')elseif
(document.layers){document.write('<ilayer
id=tickernsmainvisibility=hide width='+trans_width+'
height='+trans_height+'bgColor='+bgcolor+'><layer
id=tickernssubwidth='+trans_width+' height='+trans_height+'
left=0top=0>'+'[img]'+slideshowcontent[0][0]+'[/img]</layer></ilayer>')}varcurpos=trans_width*(-1)var
curcanvas="canvas0"varcurindex=0var nextindex=1function
getslidehtml(theslide){varslidehtml=""if(theslide[1]!="")slidehtml='[url=''+theslide[1]+'']'slidehtml+='[img]'+theslide[0]+'[/img]'if(theslide[1]!="")slidehtml+='[/url]'returnslidehtml}function
moveslide(){if(curpos<0){curpos=Math.min(curpos+degree,0)tempobj.style.left=curpos+"px"}else{clearInterval(dropslide)if(crossobj.filters)crossobj.filters.alpha.opacity=100else
if(crossobj.style.MozOpacity)crossobj.style.MozOpacity=1nextcanvas=(curcanvas=="canvas0")?"canvas0"
:
"canvas1"tempobj=ie4?eval("document.all."+nextcanvas)
:document.getElementById(nextcanvas)tempobj.innerHTML=getslidehtml(slideshowcontent[curindex])nextindex=(nextindex<slideshowcontent.length-1)?nextindex+1
:0setTimeout("rotateslide()",pause)}}functionrotateslide(){if
(ie4||dom){resetit(curcanvas)crossobj=tempobj=ie4?eval("document.all."+curcanvas)
:document.getElementById(curcanvas)crossobj.style.zIndex++if(crossobj.filters)document.all.canvas0.filters.alpha.opacity=document.all.canvas1.filters.alpha.opacity=20else
if(crossobj.style.MozOpacity)document.getElementById("canvas0").style.MozOpacity=document.getElementById("canvas1").style.MozOpacity=0.2vartemp='setInterval("moveslide()",50)'dropslide=eval(temp)curcanvas=(curcanvas=="canvas0")?"canvas1"
: "canvas0"}else
if(document.layers){crossobj.document.write(getslidehtml(slideshowcontent[curindex]))crossobj.document.close()}curindex=(curindex<slideshowcontent.length-1)?curindex+1
:
0}functionjumptoslide(which){curindex=whichrotateslide()}functionresetit(what){curpos=parseInt(trans_width)*(-1)var
crossobj=ie4?eval("document.all."+what)
:document.getElementById(what)crossobj.style.left=curpos+"px"}functionstartit(){crossobj=ie4?
eval("document.all."+curcanvas) :dom?
document.getElementById(curcanvas)
:document.tickernsmain.document.tickernssubif(ie4||dom){crossobj.innerHTML=getslidehtml(slideshowcontent[curindex])rotateslide()}else{document.tickernsmain.visibility='show'curindex++setInterval("rotateslide()",pause)}}if(window.addEventListener)window.addEventListener("load",startit,
false)else
if(window.attachEvent)window.attachEvent("onload",startit)else
if(ie4||dom||document.layers)window.onload=startit</script>
der cod geht nicht
habe denn bekommen
jetzt neu
ist der ok
<script language="JavaScript">
<!--
var j,l="",m="",p="",q="",z="";
var list=new Array();
list[list.length]='http://www.saarlaender.de/nk-media/md5/eb/66/eb6686989f3c51f6ec6b60b4c83a21df.jpg';
list[list.length]='http://www.saarlaender.de/nk-media/md5/47/bb/47bb7332b0bff5c1c3bac34310ce3522.jpg';
list[list.length]='http://www.saarlaender.de/nk-media/md5/9d/34/9d34bf32f452883776b978902dfc1e55.jpg';
j=parseInt(Math.random() * list.length);
j=(isNaN(j)) ? 0 : j;
document.write("[img]"+list[j]+"[/img]");
function SlideShow(t,l)
{
if (show)
{
x=document.SlideShow;
j=l;
j++;
if (j==list.length) j=0;
x.src=list[j];
setTimeout("SlideShow("+t+","+j+")",t);
}
}
//-->
</script>
Alles anzeigen