fejl i script det åbner ikke i nyt vindue
Problemet jeg har med det er at den ikke åbner link'ne i et nyt vindue som der står i bunden<!--
// == This Script Free To Use Providing This Notice Remains == //
// == This Script Has Been In The http://www.DesignerWiz.com Javascript Public Archive Library == //
// == NOTICE: Though This Material May Have Been In A Public Depository, Certain Author Copyright Restrictions May Apply == //
--><script language="JavaScript">
<!-- Hide from old browsers
var i = 1;
banner2= new Image();
banner2.src = "http://www.star-reptiles.dk/banner/banner_sundbydyrehandel.jpg";
banner1= new Image();
banner1.src = "http://www.dansk-krybdyr-foder.com/images/dkfbanner.gif";
links = new Array
links[2] = "http://www.sundbydyrehandel.dk"
links[1] = "http://www.dansk-krybdyr-foder.com"
description = new Array
description[2] = "Sundby Dyrehandel"
description[1] = "Dansk-Krybdyr-Foder.com"
function startTime(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=15; // How many seconds until the next banner rotation
Timer();
}
function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs
if (curTime>=closeTime){
if (i < 2){ // The number 2 is the amount of banners that you have above - adjust accordingly
i++;
document.banner.src = eval("banner" + i + ".src");
}
else{
i = 1;
document.banner.src = eval("banner" + i + ".src");
}
startTime();
}
else{
window.setTimeout("Timer()",1000)}
}
function clickLink(){
top.location = links[i]
}
function descript(){
window.status = description[i]
}
// -->
</script>
<body onLoad="startTime();">
<div align="center"><a href= target=_blank" onClick="clickLink(); return false;" onMouseOver="descript(); return true;" onMouseOut="window.status=''"><img src="http://www.dansk-krybdyr-foder.com/images/dkfbanner.gif" border=0 name="banner"></a>
</div>