<script type="text/javascript">
/***********************************************
* DHTML slideshow script- © Dynamic Drive DHTML code library (
www.dynamicdrive.com)
* This notice must stay intact for legal use
* Visit
http://www.dynamicdrive.com/ for full source code
***********************************************/
var photos=new Array()
var photoslink=new Array()
var which=1
//define images. You can have as many as you want:
photos[0]="
http://www.nimkim.dk/images/banner-net-invest-dk.gif"photos[1]="
http://www.nimkim.dk/images/banner-tjenonline.dk.gif"photos[2]="
http://www.nimkim.dk/images/banner-linkcenter.dk.gif"photos[3]="
http://www.nimkim.dk/images/banner-tjennu.dk.gif"photos[4]="
http://www.nimkim.dk/images/banner-hypnoz.dk.gif"photos[5]="
http://www.nimkim.dk/images/banner-lettepenge.dk.gif"photos[6]="
http://www.nimkim.dk/images/banner-shoplisten.dk.gif"photos[7]="
http://www.nimkim.dk/images/banner-pengeboxsen.dk.gif"//Specify whether images should be linked or not (1=linked)
var linkornot=1
//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]="
http://www.net-invest.dk"photoslink[1]="
http://www.tjenonline.dk"photoslink[2]="
http://www.linkcenter.dk"photoslink[3]="
http://www.tjennu.dk"photoslink[4]="
http://www.hypnoz.dk"photoslink[5]="
http://www.lettepenge.dk"photoslink[6]="
http://www.shoplisten.dk"photoslink[7]="
http://www.pengeboxsen.dk"//do NOT edit pass this line
var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}
function applyeffect(){
if (document.all && photoslider.filters){
photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}
function playeffect(){
if (document.all && photoslider.filters)
photoslider.filters.revealTrans.play()
}
function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length
}
function backward(){
if (which>0){
which--
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}
function forward(){
if (which<photos.length-1){
which++
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}
function transport(){
window.location=photoslink[which]
}
</script>
det er i <head>
</head> sektionen.....
og det der kommer nu står i body...
<script>
if (linkornot==1)
document.write('<a href="java script:transport()">')
document.write('<img src="'+photos[0]+'" name="photoslider" style="filter:revealTrans(duration=2,transition=23)" border=0>')
if (linkornot==1)
document.write('</a>')
</script>