Dynadot โ€” .com Transfer

How can I create Rotating Banner?

Spaceship Spaceship
Watch

rongshihong

Established Member
Impact
5
I just want to randomly display any of 5 banners on my site, is there a specific html code that I should use in order to display banners in rotation?

Thank you in advance.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
You would need a script in JavaScript to work the random images. Check out the page below for some code that you can use.

http://www.hypergurl.com/randomimage.html

If that is not going to work check out dynamicdrive.com
 
0
•••
I used this code a while back on my invisionfree board. Its pretty simple but it does the job. I didn't make it though so don't give me the credit

<script language="JavaScript">
<!--Made By Lee20 Of InvisionFree-->
<!-- Begin
var ad_cnt1 = 4;
var now1 = new Date()
var sec1 = now1.getSeconds()
var ad1 = sec1 % ad_cnt1;
ad1 +=1;
if (ad1==1) {
url1="YOUR-DOMAIN-HERE";
banner1="URL_OF_BANNER";
width1="468";
height1="60";
alt1="ALT TEXT HERE";
}
if (ad1==2) {
url1="YOUR-DOMAIN-HERE";
banner1="URL_OF_BANNER";
width1="468";
height1="60";
alt1="ALT TEXT HERE";
}
if (ad1==3) {
url1="YOUR-DOMAIN-HERE";
banner1="URL_OF_BANNER";
width1="468";
height1="60";
alt1="ALT TEXT HERE";
}
if (ad1==4) {
url1="YOUR-DOMAIN-HERE";
banner1="URL_OF_BANNER";
width1="468";
height1="60";
alt1="ALT TEXT HERE";
}
document.write('<center><a href="' + url1 + '" target="_blank">');
document.write('<img src="' + banner1 + '" width=' + width1 + ' height=' + height1 + ' border=0 alt="' + alt1 + '"></a>');
document.write('</center>');
// End -->
</SCRIPT>
 
0
•••
Use a simple php script instead as java will slow down your site.
 
0
•••
mambo sites have a built in spot for rotating banners

i use siteground.com as the host but I am sure you can find different host... mambo is great once you make it work for you....
 
0
•••
DNSeller said:
mambo sites have a built in spot for rotating banners

i use siteground.com as the host but I am sure you can find different host... mambo is great once you make it work for you....

I heard that they aren't working on Mambo anymore, Joomla is their new project. :td:
 
0
•••
If you don't mind using a script, you could try phpAdsNew :)
 
0
•••
joomla is effectively mambo v1.5.3

www.joomla.org check it out, its very versatile and has some nice additions.

As for security, they state that they have implemented various security patches, but I cant comment on thier effectiveness

A.
 
0
•••
0
•••
use phpadsnew as mentioned before. its a great script and very easy to use :D
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back