ROTATING BANNER CODE

Support for IntegraMOD 141

Moderator: Integra Moderator

ROTATING BANNER CODE

PostAuthor: XHIBIT » Thu Mar 26, 2009 10:07 pm

OK guys, awhile back I recall reading someone from the forums here inquire about how they could do a rotating banner.

Well heres a quick way to do it without having to hardcode it into your header php

<CENTER><script>
var imgs2 = new Array("http://i206.photobucket.com/albums/bb186/XTVMOVIES/ALBUM%203/ad.png","http://i206.photobucket.com/albums/bb186/XTVMOVIES/ALBUM%203/rabbitbanner.jpg","http://i206.photobucket.com/albums/bb186/XTVMOVIES/ALBUM%203/logo-2.jpg","http://i206.photobucket.com/albums/bb186/XTVMOVIES/ALBUM%203/voteforlp-1.png","http://i206.photobucket.com/albums/bb186/XTVMOVIES/LP-ani.gif","http://5thshiftradio.com/images/logo/5thshiftradio-1.jpg","http://i206.photobucket.com/albums/bb186/XTVMOVIES/ALBUM%203/concards.png");
var lnks2 = new Array("http://www.loadedparanormal.com/viewtopic.php?t=291/","http://trutube.loadedparanormal.com/","http://bootube.loadedparanormal.com/","http://xtvmoviescom.top-site-list.com/vote18.html","http://www.loadedparanormal.com/portal.php","http://5thshiftradio.com/portal.php?sid=fde4a7827ebccdde13b97b870f4c14b6","http://www.conspiracycards.com/");
var alt2 = new Array("LOADED PARANORMAL- A ParaSpiracy research community.","TruTUBE-See how deep the rabbit hole really is","BooTUBE- Paranormal Video","VOTE For LOADED PARANORMAL.com","LOADED PARANORMAL.com","5th SHIFT RADIO","Conspiracy Cards");
var currentAd2 = 0;
var imgCt2 = 7;
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()",10000);
</script>
<a>
<img></a></CENTER>


Above is a java code you can copy and paste and remove my images and add your own.

The first 8 lines are images hosted on photobucket.

* Look for where the urls begin after the last image
The following 6 lines after are the actual url's per image.

*Look for the description of the mouseover after the last url.
The 4 lines of code after that are for mouseover text (what you want it to say per image).


So, in all there are 6 images that are clickable links that open a new window for each page.

For an example click the link here:
http://5thshiftradio.com/portal.php
And scroll to the bottom of the page underneath the counter and watch the banners rotate.


You may have to rename ctracker to CTRACKER2 if you get a ctracker error, then submit it again in your banner mod, and quickly change CTRACKER2 back to ctracker.

Also if you are choosing to use this as a Overall banner, make sure you tick "custom html code", and if done right it will work like a charm.

1 more thing, Ive found you can even center it and it wont stretch the page if viewers are using internet explorer.

Enjoy
[url=http][img=center]http://i206.photobucket.com/albums/bb186/XTVMOVIES/LP-ani.gif[/img][/url]
[url=http][img=center]http://i206.photobucket.com/albums/bb186/XTVMOVIES/ALBUM%203/rabbitbanner.jpg[/img][/url]
[url=http][img=center]http://5thshiftradio.top-site-list.com/images/banners/5thshiftradio.jpg[/img][/url]
User avatar
XHIBIT
Integra Member
Integra Member
 
Posts: 113
Likes: 0 post
Liked in: 0 post
Joined: Wed Jul 25, 2007 10:44 am
Cash on hand: 0.00

Return to IntegraMOD 141

Who is online

Registered users: Bing [Bot], Google [Bot], Helter, Majestic-12 [Bot]