WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Banner Jumble Empty Banner Jumble Sun Jan 17, 2010 5:59 pm

Joel

Joel
Registered Member
Registered Member
visit http://futureadz.co.cc/ you should be seeing a banner WITHOUT scrolling the page.Now f5 the page.The banner changed right?Any idea whats the codes for that?I would love to have a "Banner Jumble Ads" to my forum where i gather some forum banners and jumble them up.

http://www.advertisehotspot.info/

2Banner Jumble Empty Re: Banner Jumble Sun Jan 17, 2010 6:28 pm

Sanket

Sanket
Administrator
Administrator
Code:

 
<SCRIPT LANGUAGE="JavaScript">
var theImages = new Array()

//Random-loading images
theImages[0] = 'IMAGE URL 1'
theImages[1] = 'IMAGE URL 2'
theImages[2] = 'IMAGE URL 3'
theImages[3] = 'IMAGE URL 4'

var j = 0
var p = theImages.length;
var preBuffer = new Array()

for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
if(whichImage==0){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=452 height=181></a>');
}
else if(whichImage==1){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=452 height=181></a>');
}
else if(whichImage==2){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=452 height=181></a>');
}
else if(whichImage==3){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=452 height=181></a>');
}
else if(whichImage==4){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=452 height=181></a>');
}

}

</script>



<script>showImage();</script>

Found this nice script, for this the images need to be of the same size. I have currently they are all set up for 452 x 181. You can change them.
Add this to your homepage message. See if it works.

http://www.webartzforum.com

3Banner Jumble Empty Re: Banner Jumble Mon Jan 18, 2010 2:30 pm

Joel

Joel
Registered Member
Registered Member
thanks Sanket.Once again,i've added your forum banner to the Banner Jumble.

http://www.advertisehotspot.info/

4Banner Jumble Empty Re: Banner Jumble Mon Jan 18, 2010 5:07 pm

Sanket

Sanket
Administrator
Administrator
Thanks Wink
Solved & Locked

http://www.webartzforum.com

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum