Autómatikus képcserélők:
1: <SCRIPT language=JavaScript1.2>
/***********************************************
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var variableslide=new Array()
//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]
variableslide[0]=['http://www.net-cafe.hu/wallpapers/00000012.jpg', '', '']
variableslide[1]=['http://www.net-cafe.hu/wallpapers/00000015.jpg', '', '']
variableslide[2]=['http://www.net-cafe.hu/wallpapers/00000013.jpg', '', '']
//configure the below 3 variables to set the dimension/background color of the slideshow
var slidewidth='130px' //set to width of LARGEST image in your slideshow
var slideheight='100px' //set to height of LARGEST iamge in your slideshow, plus any text description
var slidebgcolor='#F3F3F3'
//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay=3000
////Do not edit pass this line////////////////
var ie=document.all
var dom=document.getElementById
for (i=0;i<variableslide.length;i++){
var cacheimage=new Image()
cacheimage.src=variableslide[i][0]
}
var currentslide=0
function rotateimages(){
contentcontainer='<center>'
if (variableslide[currentslide][1]!="")
contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'
contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="3">'
if (variableslide[currentslide][1]!="")
contentcontainer+='</a>'
contentcontainer+='</center>'
if (variableslide[currentslide][2]!="")
contentcontainer+=variableslide[currentslide][2]
if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==variableslide.length-1) currentslide=0
else currentslide++
setTimeout("rotateimages()",slidedelay)
}
if (ie||dom)
document.write('<div id="slidedom" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'"></div>')
function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}
if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider
</SCRIPT>
Piros színnel jeleztem a kép URL-címét.Azt cseréld le a saját képedre!
Sötétkékkel jeleztem azt a rész,amit ha megduplázól,
akkor immáron már 4 kép fogja egymást váltani.
Ha mégeszer megduplázod akkor már 5 kép váltja egymást.Ügye érted?
A zőld rész,a sorszám,nagyon fontos,hogy ha 4 képet akarsz megjeleníteni,
akkor a sorszámát is írd át 4-re,ha
már 5 képet teszel bele,akkor értelemszerűen
a sorszám is eggyel nő!!!
(tehát mikor duplázod a sötétkék részt,ne csak a kép linkjét cseréld le,
hanem a sorszámot is növeld!!!)
Ha azt akarod,hogy a kép a modulod közepére kerűljön,
nincs más dolgod,mint az legeslegelejére,
berod azt,hogy <center>,
a legeslegvégére pedig azt,hogy </center>.Vili?
Ha készvagy,és ismét belépsz a szerkesztésébe,
és ismét leokézod a modúlt,a kép megduplázódik,
ezt úgy tudod kivédeni,hogy ha a szerkesztésébe lépsz,
törlöd a végén "önmagától"beíródó HTML-kódot.
Ide bemásolom azt,
hogy mikor újra belépsz a szerkesztésbe,
mit kell törőlnöd,hogy a kép ne duplázódjon meg
(vagy ügye nem mászkálsz a szerkesztésébe.)
Nos itt lenne,olyankor a piros rész TÖRLENDŐ(a végén van!)-
-amiatt duplázódik a kép!!!
<SCRIPT language=JavaScript1.2>
/***********************************************
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var variableslide=new Array()
//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]
variableslide[0]=['http://www.net-cafe.hu/wallpapers/00000012.jpg', '', '']
variableslide[1]=['http://www.net-cafe.hu/wallpapers/00000015.jpg', '', '']
variableslide[2]=['http://www.net-cafe.hu/wallpapers/00000013.jpg', '', '']
//configure the below 3 variables to set the dimension/background color of the slideshow
var slidewidth='130px' //set to width of LARGEST image in your slideshow
var slideheight='100px' //set to height of LARGEST iamge in your slideshow, plus any text description
var slidebgcolor='#F3F3F3'
//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay=3000
////Do not edit pass this line////////////////
var ie=document.all
var dom=document.getElementById
for (i=0;i<variableslide.length;i++){
var cacheimage=new Image()
cacheimage.src=variableslide[i][0]
}
var currentslide=0
function rotateimages(){
contentcontainer='<center>'
if (variableslide[currentslide][1]!="")
contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'
contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="3">'
if (variableslide[currentslide][1]!="")
contentcontainer+='</a>'
contentcontainer+='</center>'
if (variableslide[currentslide][2]!="")
contentcontainer+=variableslide[currentslide][2]
if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==variableslide.length-1) currentslide=0
else currentslide++
setTimeout("rotateimages()",slidedelay)
}
if (ie||dom)
document.write('<div id="slidedom" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'"></div>')
function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}
if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider
</SCRIPT>
<DIV id=slidedom style="WIDTH: 130px; HEIGHT: 100px; BACKGROUND-COLOR: #f3f3f3">
<CENTER><IMG src="http://www.net-cafe.hu/wallpapers/00000013.jpg" vspace=3
border=0></CENTER></DIV>
Hogy mindenképp világosan láss,idemásolom milyen az a kód,amikor 4 kép váltja egymást,
így szemléltetve azt,hogy melyik az a rész,
amin változtatnod kell,ha 4 képet
akarsz váltogatva megjeleníteni:
<SCRIPT language=JavaScript1.2>
/***********************************************
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var variableslide=new Array()
//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]
variableslide[0]=['http://www.net-cafe.hu/wallpapers/00000012.jpg', '', '']
variableslide[1]=['http://www.net-cafe.hu/wallpapers/00000015.jpg', '', '']
variableslide[2]=['http://www.net-cafe.hu/wallpapers/00000013.jpg', '', '']
variableslide[3]=['http://www.net-cafe.hu/wallpapers/00000010.jpg', '', '']
//configure the below 3 variables to set the dimension/background color of the slideshow
var slidewidth='130px' //set to width of LARGEST image in your slideshow
var slideheight='100px' //set to height of LARGEST iamge in your slideshow, plus any text description
var slidebgcolor='#F3F3F3'
//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay=3000
////Do not edit pass this line////////////////
var ie=document.all
var dom=document.getElementById
for (i=0;i<variableslide.length;i++){
var cacheimage=new Image()
cacheimage.src=variableslide[i][0]
}
var currentslide=0
function rotateimages(){
contentcontainer='<center>'
if (variableslide[currentslide][1]!="")
contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'
contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="3">'
if (variableslide[currentslide][1]!="")
contentcontainer+='</a>'
contentcontainer+='</center>'
if (variableslide[currentslide][2]!="")
contentcontainer+=variableslide[currentslide][2]
if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==variableslide.length-1) currentslide=0
else currentslide++
setTimeout("rotateimages()",slidedelay)
}
if (ie||dom)
document.write('<div id="slidedom" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'"></div>')
function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}
if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider
</SCRIPT>
---------------------------------
És itt mikor már 5 kép váltja egymást!:
<SCRIPT language=JavaScript1.2>
/***********************************************
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var variableslide=new Array()
//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]
variableslide[0]=['http://www.net-cafe.hu/wallpapers/00000012.jpg', '', '']
variableslide[1]=['http://www.net-cafe.hu/wallpapers/00000015.jpg', '', '']
variableslide[2]=['http://www.net-cafe.hu/wallpapers/00000013.jpg', '', '']
variableslide[3]=['http://www.net-cafe.hu/wallpapers/00000011.jpg', '', '']
variableslide[4]=['http://www.net-cafe.hu/wallpapers/00000014.jpg', '', '']
//configure the below 3 variables to set the dimension/background color of the slideshow
var slidewidth='130px' //set to width of LARGEST image in your slideshow
var slideheight='100px' //set to height of LARGEST iamge in your slideshow, plus any text description
var slidebgcolor='#F3F3F3'
//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay=3000
////Do not edit pass this line////////////////
var ie=document.all
var dom=document.getElementById
for (i=0;i<variableslide.length;i++){
var cacheimage=new Image()
cacheimage.src=variableslide[i][0]
}
var currentslide=0
function rotateimages(){
contentcontainer='<center>'
if (variableslide[currentslide][1]!="")
contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'
contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="3">'
if (variableslide[currentslide][1]!="")
contentcontainer+='</a>'
contentcontainer+='</center>'
if (variableslide[currentslide][2]!="")
contentcontainer+=variableslide[currentslide][2]
if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==variableslide.length-1) currentslide=0
else currentslide++
setTimeout("rotateimages()",slidedelay)
}
if (ie||dom)
document.write('<div id="slidedom" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'"></div>')
function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}
if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider
</SCRIPT>
2: <SCRIPT type=text/javascript>
/***********************************************
* Translucent Slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
var trans_width='150px' //slideshow width
var trans_height='100px' //slideshow height
var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)
var degree=10 //animation speed. Greater is faster.
var slideshowcontent=new Array()
//Define slideshow contents: [image URL, OPTIONAL LINK, OPTIONAL LINK TARGET]
slideshowcontent[0]=["http://www.net-cafe.hu/wallpapers/00000223.jpg"]
slideshowcontent[1]=["http://www.net-cafe.hu/wallpapers/00000736.jpg"]
slideshowcontent[2]=["http://www.net-cafe.hu/wallpapers/00000853.jpg"]
slideshowcontent[3]=["http://www.net-cafe.hu/wallpapers/00000940.jpg"]
slideshowcontent[4]=["http://www.net-cafe.hu/wallpapers/00000965.jpg"]
slideshowcontent[5]=["http://www.net-cafe.hu/wallpapers/00000995.jpg"]
slideshowcontent[6]=["http://www.net-cafe.hu/wallpapers/00001045.jpg"]
slideshowcontent[7]=["http://www.net-cafe.hu/wallpapers/00001153.jpg"]
slideshowcontent[8]=["http://www.net-cafe.hu/wallpapers/00001179.jpg"]
slideshowcontent[9]=["http://www.net-cafe.hu/wallpapers/00002462.jpg"]
slideshowcontent[10]=["http://www.net-cafe.hu/wallpapers/00003319.jpg"]
slideshowcontent[11]=["http://www.net-cafe.hu/wallpapers/00003320.jpg"]
////NO need to edit beyond here/////////////
var bgcolor='white'
var imageholder=new Array()
for (i=0;i<slideshowcontent.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideshowcontent[i][0]
}
var ie4=document.all
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1
if (ie4||dom)
document.write('<div style="position:relative;width:'+trans_width+';height:'+trans_height+';overflow:hidden"><div id="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><div id="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>')
else if (document.layers){
document.write('<ilayer id=tickernsmain visibility=hide width='+trans_width+' height='+trans_height+' bgColor='+bgcolor+'><layer id=tickernssub width='+trans_width+' height='+trans_height+' left=0 top=0>'+'<img src="'+slideshowcontent[0][0]+'"></layer></ilayer>')
}
var curpos=trans_width*(-1)
var curcanvas="canvas0"
var curindex=0
var nextindex=1
function getslidehtml(theslide){
var slidehtml=""
if (theslide[1]!="")
slidehtml='<a href="'+theslide[1]+'" target="'+theslide[2]+'">'
slidehtml+='<img src="'+theslide[0]+'" border="0">'
if (theslide[1]!="")
slidehtml+='</a>'
return slidehtml
}
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=100
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=1
nextcanvas=(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 : 0
setTimeout("rotateslide()",pause)
}
}
function rotateslide(){
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=20
else if (crossobj.style.MozOpacity)
document.getElementById("canvas0").style.MozOpacity=document.getElementById("canvas1").style.MozOpacity=0.2
var temp='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
}
function jumptoslide(which){
curindex=which
rotateslide()
}
function resetit(what){
curpos=parseInt(trans_width)*(-1)
var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
crossobj.style.left=curpos+"px"
}
function startit(){
crossobj=ie4? eval("document.all."+curcanvas) : dom? document.getElementById(curcanvas) : document.tickernsmain.document.tickernssub
if (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>
A kép valójában egy láthatatlan keretben jelenik meg!!!
Ez fontos!
Tehát ha negyobb képet teszel bele,mint én,akkor azon a láthatatlan kereten változtass!
Itt mutatom,melyik az a rész,de fent a kódban változtass rajta.
Ez csak egy PÉLDA!
var trans_width='150px' //slideshow width
var trans_height='100px' //slideshow height
Ügye látod?
A keret szélessége/magassága pixelben megadva!
További működése azonos az első ..::Automata képcserélő1::.. kódjával.
Remélem sikered lesz vele.
Kisérletezz sokat--meglátod sikerűlni fog!
A képek innen vannak:http://www.net-cafe.hu/wallpapers.php
3: <SCRIPT language=JavaScript1.1>
<!--
//Pixelating Image slideshow
//Copyright Dynamic Drive 2001
//Visit http://www.dynamicdrive.com for this script
//specify interval between slide (in mili seconds)
var slidespeed=3000
//specify images
var slideimages=new Array("http://www.net-cafe.hu/wallpapers/00000223.jpg","http://www.net-cafe.hu/wallpapers/00000736.jpg","http://www.net-cafe.hu/wallpapers/00000853.jpg","http://www.net-cafe.hu/wallpapers/00000940.jpg","http://www.net-cafe.hu/wallpapers/00000965.jpg","http://www.net-cafe.hu/wallpapers/00000995.jpg","http://www.net-cafe.hu/wallpapers/00001045.jpg","http://www.net-cafe.hu/wallpapers/00001153.jpg","http://www.net-cafe.hu/wallpapers/00001179.jpg","http://www.net-cafe.hu/wallpapers/00002462.jpg","http://www.net-cafe.hu/wallpapers/00003319.jpg","http://www.net-cafe.hu/wallpapers/00003320.jpg","http://www.net-cafe.hu/wallpapers/00000224.jpg","http://www.net-cafe.hu/wallpapers/00000737.jpg","http://www.net-cafe.hu/wallpapers/00000854.jpg","http://www.net-cafe.hu/wallpapers/00000941.jpg","http://www.net-cafe.hu/wallpapers/00000966.jpg","http://www.net-cafe.hu/wallpapers/00000996.jpg","http://www.net-cafe.hu/wallpapers/00001046.jpg","http://www.net-cafe.hu/wallpapers/00001154.jpg","http://www.net-cafe.hu/wallpapers/00000180.jpg","http://www.net-cafe.hu/wallpapers/00000463.jpg","http://www.net-cafe.hu/wallpapers/00001312.jpg","http://www.net-cafe.hu/wallpapers/00001321.jpg")
//specify corresponding links
var slidelinks=new Array
var imageholder=new Array()
var ie55=window.createPopup
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}
function gotoshow(){
window.location=slidelinks[whichlink]
}
//-->
</SCRIPT>
<a href="javascript:gotoshow()"><img src="photo1.jpg" name="slide" border=0 style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=1)"></a>
<script language="JavaScript1.1">
<!--
var whichlink=0
var whichimage=0
var pixeldelay=(ie55)? document.images.slide.filters[0].duration*1000 : 0
function slideit(){
if (!document.images) return
if (ie55) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie55) document.images.slide.filters[0].play()
whichlink=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+pixeldelay)
}
slideit()
//-->
</SCRIPT>
Csak cseréld le a képek URL-címét és kész.
Kép webcímének/Url-jének megnézése(klikk)
Ha nem kell annyi kép,értelemszerűen törőlj a képek URL-ből.
Figyelj oda!Az elején és a végén a zárójel marad!
(az URL-nél lévőről beszélek!)
Tipp:
Csinálj egy egyszerű szöveges dokumentumot a gépeden(jegyzetfüzet),és ott szerkezd át a kívánságaidnak megfelelően a kódot!
Ha kész vagy,a már átszerkesztett kész kódot tedd a honlapodra!
(nem okézható le kétszer,mert akkor nem működi.)
átszerkesztés-bemásolás-okézás,-és nem menj vissza többé--
-ha új képet akarsz beletenni,kezd előről
(ezért is jó,ha a gépeden van egy változat elmentve a már átszerkesztett kódból!)
4: <script type="text/javascript">
/***********************************************
* Conveyor belt slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
//Specify the slider's width (in pixels)
var sliderwidth="300px"
//Specify the slider's height
var sliderheight="98px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=3
//configure background color:
slidebgcolor="#ffffff"
//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<a href="http://"><img src="http://www.net-cafe.hu/wallpapers/00000001.jpg" border=1></a>'
leftrightslide[1]='<a href="http://"><img src="http://www.net-cafe.hu/wallpapers/00000002.jpg" border=1></a>'
leftrightslide[2]='<a href="http://"><img src="http://www.net-cafe.hu/wallpapers/00000003.jpg" border=1></a>'
leftrightslide[3]='<a href="http://"><img src="http://www.net-cafe.hu/wallpapers/00000004.jpg" border=1></a>'
leftrightslide[4]='<a href="http://"><img src="http://www.net-cafe.hu/wallpapers/00000005.jpg" border=1></a>'
leftrightslide[5]='<a href="http://"><img src="http://www.net-cafe.hu/wallpapers/00000006.jpg" border=1></a>'
leftrightslide[6]='<a href="http://"><img src="http://www.net-cafe.hu/wallpapers/00000007.jpg" border=1></a>'
leftrightslide[7]='<a href="http://"><img src="http://www.net-cafe.hu/wallpapers/00000008.jpg" border=1></a>'
leftrightslide[8]='<a href="http://"><img src="http://www.net-cafe.hu/wallpapers/00000009.jpg" border=1></a>'
leftrightslide[9]='<a href="http://"><img src="http://www.net-cafe.hu/wallpapers/00000010.jpg" border=1></a>'
leftrightslide[10]='<a href="http://"><img src="http://www.net-cafe.hu/wallpapers/00000011.jpg" border=1></a>'
//Specify gap between each image (use HTML):
var imagegap=" "
//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=5
////NO NEED TO EDIT BELOW THIS LINE////////////
var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>')
var actualwidth=''
var cross_slide, ns_slide
function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+slideshowgap+"px"
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+slideshowgap
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",30)
}
window.onload=fillup
function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"
if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"
}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+slideshowgap
if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+slideshowgap
}
}
if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>')
write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>')
write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
</script>