//This where you make your links for the banners banners1 is linked to links[1]
links = new Array
links[1] = "http://www.javacity.co.sr/domain.htm"
links[2] = "http://www.namafilm.com"
links[3] = "http://www.isbps.com/"
//This will show up on the status bar when the mouse is moved over the banner
description = new Array
description[1] = "DOMAIN NAD HOSTING BY SONY CARD 20"
description[2] = "BEST SITE ...... Click Here"
description[3] = "Tozihat site"
function startTime(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=11;
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 < 3){
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>
</head>
<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="startTime();">
<h2 align="center">Exchange Banner</h2>
<a target="_blank" href onClick="clickLink(); return false;" onMouseOver="descript(); return true;" onMouseOut="window.status=''">
<p align="center">
<img src="https://www.javacity.co.sr/logo220.gif" href="http://www.javacity.co.sr/domain.htm" border="0" name="banner" width="468" height="60"></a><br>
</p>
<p align="center"> </p>
</body>
</html>
نمايش دو صفحه اضافی ( پاپ آپ ) بعد از لينک
<script language="JavaScript">
function winopen(){
window.open('http://www.google.com', 'NewWindow1', 'toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=635,height=260')
window.open('http://www.javacity.co.sr/ghomaysh.htm', 'NewWindow2', 'toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')
}
</script>
<a ONCLICK="winopen()" href="http://www.windows.blogfa.com">LINK NAME</a>