Hello.
i 've a bug in my code.tHis the all code.Infact i want to open a new window when the user click on the image .I should remplace in the the tag <a onclick="">:"location=liens[pub]" by window.open=(url,_blank',"menubar=yes,...").The problem is the url.Please find the time to look the aall code maybe you'll find how to help me. <html>
<head>
<script language="JavaScript">
<!-- Begin
pubs=new Array();
liens=new Array();
pubT=0;
pub = -1;
function AfficherPub(pubs,pubDelay1) {
pubDelay = pubDelay1;
pub = pub + 1;
if (pub == pubs.length)
pub = 0;
document.pubImg.src = pubs[pub];
pubT = setTimeout("AfficherPub(pubs,pubDelay)", pubDelay1);
}
// End -->
</script>
<script language="JavaScript">
<!-- Begin
function VersionNavigateur(Netscape, Explorer) {
if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ¦¦
(navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
return true;
else return false;
}
// End -->
</script>
</head>
<body onUnload="clearTimeout(pubT)">
<a href="" onClick="location=liens[pub]; return false">
<img name="pubImg" src="image0" width="20" height="20" border="0"></a>
<script language="JavaScript">
<!-- Begin
if (VersionNavigateur(3.0,4.0))
{
pubs[0] = document.pubImg.src;
liens[0]='url0';
pubs[1]="image1"
liens[1]="url1"
AfficherPub(pubs,10000);
}
// End -->
</script>
</body>
</html>
thank you