Buat Banner Image+Link

Script membuat banner yang image dan link-nya berganti2

links: http://www.htmlbasix.com/banner.shtml

banner details:
Automatically refresh image How often:

seconds

New image with every page load
Where do you want the page to open:
same page (top)
existing ‘new’ page (new)
new blank page (blank)
image width:

image height:

Banner rotator number:

if you have multiple banner rotators on the one page, choose a DIFFERENT number here for each one you generate

url for link 1:
url of image:
alt text:
url for link 2:
url of image:
alt text:
url for link 3:
url of image:
alt text:
url for link 4:
url of image:
alt text:
url for link 5:
url of image:
alt text:
url for link 6:
url of image:
alt text:
url for link 7:
url of image:
alt text:
url for link 8:
url of image:
alt text:
url for link 9:
url of image:
alt text:
url for link 10:
url of image:
alt text:
Results will open in a new window
Contoh scriptnya

<script type=”text/javascript”>
var imgs2 = new Array(“http://sikathabis.com/filez/blogsikathabis.gif“,”http://sikathabis.com/SikathabiS.jpg“);
var lnks2 = new Array(“http://blog.sikathabis.com“,”http://www.sikathabis.com/“);
var alt2 = new Array();
var currentAd2 = 0;
var imgCt2 = 2;
function cycle2() {
if (currentAd2 == imgCt2) {
currentAd2 = 0;
}
var banner2 = document.getElementById(‘adBanner2’);
var link2 = document.getElementById(‘adLink2’);
banner2.src=imgs2[currentAd2]
banner2.alt=alt2[currentAd2]
document.getElementById(‘adLink2’).href=lnks2[currentAd2]
currentAd2++;
}
window.setInterval(“cycle2()”,4000);
</script>
<a href=””http://blog.sikathabis.com”” id=”adLink2″ target=”_top”>
<img src=”http://sikathabis.com/filez/blogsikathabis.gif” id=”adBanner2″ border=”0″ width=”400″ height=”60″></a>

Contoh site-nya di http://sikathabis.com/mp3

Leave a Reply