PDA

View Full Version : slideshow with admeta links



chechu
06-07-2007, 07:47 PM
hey all,
I started a new site http://www.hetbestevoordeel.be, full of admeta links of affiliate programs, like this:

<script type="text/javascript">
var uri = 'http://impbe.tradedoubler.com/imp?type(img)g(16765180)a(1383984)' + new String (Math.random()).substring (2, 11);
document.write('<a href="http://clk.tradedoubler.com/click?p=56931&a=1383984&g=16765180" target="_blank"><img src="'+uri+'" border=0></a>');
</script>
I'd love to see these banners rotating with a fading effect, in this script:

head:
<script language="JavaScript1.1">
<!--
var slidespeed=2000
var slideimages=new Array("imgs/SPvolvo.gif","imgs/SPobjectif.gif","imgs/SPdamier.jpg")
var slidelinks=new Array("http://www.modern.be","http://www.objectifmag.be","http://www.hoteldamier.be")
var newwindow=1

var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}

//-->
</script>



body:
<a href="javascript:gotoshow()"><img src="imgs/SPvolvo.gif" name="slide" border=0 style="filter:blendTrans(duration=3)"></a>

<script language="JavaScript1.1">
<!--
var whichlink=0
var whichimage=0
var blenddelay=(ie)? document.images.slide.filters[0].duration*1000 : 0
function slideit(){
if (!document.images) return
if (ie) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie) document.images.slide.filters[0].play()
whichlink=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+blenddelay)
}
slideit()

//-->
</script>

Is this posible ?