Random Banner Gantian

Ini  diah saya sharing tentang random banner atau juga banner iklan bergantian, coba bayangkan halaman blog yang dipenuhi dengan banner-banner iklan tentu akan terasa sesak dan kurang sedap dipandang. Untuk mensiasatinya adalah dengan menggunakan Script Random Banner Untuk Iklan

<!-- --><script language="JavaScript">
<!-- Hide from JavaScript-Impaired Browsers
/* First, if you load fewer or more than 6 sponsors
into your rotator, change the "number_of_sponsors" variable
to the actual number of sponsor .gifs you plan to
load. */
number_of_sponsors=2;
var sctr=0;
var halt=0;
var isn=new Array();
for (i=0;i<number_of_sponsors;i++){
isn[i]=new Image();
}
/* The sponsor .gif names are loaded into the isn[x]
sponsor images array. You may load any number of
sponsor images (.gif or .jpg or both) into this
array. They must all be the same size, however.
Substitute your own .gif filenames for the ones
shown here. Note that the first .gif must appear
in the isn[0] array element. */
isn[0].src="http://act.linkworth.com/images/banners/aff-bann-35.gif";
isn[1].src="http://www.ziddu.com/banners/images/1185859864@ban_468x60.gif";
/* Finally, replace the URL's below with those of
your sponsors IN THE SAME ORDER. */
var durl=new Array();
durl[0]="http://www.linkworth.com?a=30538";
durl[1]= "http://www.ziddu.com/register.php?referralid=(yo-j)oob]1";
/* This script is set to rotate every 3 seconds.
(3000=3 seconds, so 1000 would equal 5, etc)
You should change the number in the setTimeout()
call below for the number of seconds you wish. */
function rotateIt(){
if (halt!=1){
sctr++;
if (sctr>number_of_sponsors-1){
sctr=0;
}
document.sponsor.src=isn[sctr].src;
setTimeout("rotateIt()",2000);
}
}
/* This code will work just fine with or without
frames. However, if you are in frames and wish
to replicate the TARGET="_top" call to remove
frames, change the location.href call to:
parent.location.href=durl[sctr];
below. */
function doIt(){
halt=1;
location.href=durl[sctr];
}
function dispIt(){
parent.window.status=durl[sctr];
}
// End Hiding -->
</script>
<center><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a onmouseover="dispIt();return true;" href="http://suharjo21.blogspot.com/" onclick="doIt();return false"><img border="0" width="468" src="http://whatever the name is.gif" name="sponsor" height="60"/></a></td>
</tr>
</table></center>
<!-- this script and more free from a1javascripts.com -->
<!-- -->
<script language="JavaScript">
<!-- Hide JavaScript from Java-Impaired Browsers
sctr=0;
rotateIt();
// End Hiding -->
</script>
<!-- -->
Selamat Mencoba

0 comments:

Followers

Total Pageviews

Popular Posts

 
© Abu Fawwaz Offical WebBlog : SOOHOO21 , Offical Web : SOOHOO21
Template by : G-JO
;