Banner Rotation not working properly
Banner Rotation not working properly
Greetings, I am encountering a problem with forumotion, each time i attempt to include my banner rotation script in the top footer as you can see at http://forum.neoroify.eu/ it's only stuck at one image and is not cycling, also it redirects you to the forum homepage http://neoroify.forumotion.com/ and is not redirecting to the affiliate's link.
The script code:
It must cycle each 10 seconds, but it is not!
The script code:
- Code:
<center>
<script type="text/javascript">
var imgs1 = new Array("http://www.icybux.com/banner.jpg","http://adf.ly/images/banners/adfly.468x60.4.gif");
var lnks1 = new Array("http://icybux.com/index.php?ref=Neoroify","http://adf.ly/?id=95055");
var alt1 = new Array("Icybux - The only PTC you will ever need","adf.ly - Make money by shrinking links!");
var currentAd1 = 0;
var imgCt1 = 2;
function cycle1() {
if (currentAd1 == imgCt1) {
currentAd1 = 0;
}
var banner1 = document.getElementById('adBanner1');
var link1 = document.getElementById('adLink1');
banner1.src=imgs1[currentAd1]
banner1.alt=alt1[currentAd1]
document.getElementById('adLink1').href=lnks1[currentAd1]
currentAd1++;
}
window.setInterval("cycle1()",10000);
</script>
<a href=""http://icybux.com/index.php?ref=Neoroify"" id="adLink1" target="_blank">
<img src="http://www.icybux.com/banner.jpg" id="adBanner1" border="0" width="468" height="60"></a>
It must cycle each 10 seconds, but it is not!
Neoroify- Forumember
- Posts : 99
Reputation : 0
Language : English
Re: Banner Rotation not working properly
It'll work in templates by linking the script....
Create an Html page with your code
I've titled the page LinkedScript_js for this example
Get the page Url from Html pages management
and link it like I've done in this example (add to overall footer)
Create your own page since I will be deleting the example page.
Create an Html page with your code
I've titled the page LinkedScript_js for this example
- Code:
var imgs1 = new Array("http://www.icybux.com/banner.jpg","http://adf.ly/images/banners/adfly.468x60.4.gif");
var lnks1 = new Array("http://icybux.com/index.php?ref=Neoroify","http://adf.ly/?id=95055");
var alt1 = new Array("Icybux - The only PTC you will ever need","adf.ly - Make money by shrinking links!");
var currentAd1 = 0;
var imgCt1 = 2;
function cycle1() {
if (currentAd1 == imgCt1) {
currentAd1 = 0;
}
var banner1 = document.getElementById('adBanner1');
var link1 = document.getElementById('adLink1');
banner1.src=imgs1[currentAd1]
banner1.alt=alt1[currentAd1]
document.getElementById('adLink1').href=lnks1[currentAd1]
currentAd1++;
}
window.setInterval("cycle1()",10000);
Get the page Url from Html pages management
and link it like I've done in this example (add to overall footer)
- Code:
<script src="http://zone2.forumotion.net/LinkedScript_js-h182.htm" type="text/javascript"></script>
<center>
<a href=""http://icybux.com/index.php?ref=Neoroify"" id="adLink1" target="_blank">
<img src="http://www.icybux.com/banner.jpg" id="adBanner1" border="0" width="468" height="60"></a></center>
Create your own page since I will be deleting the example page.
Re: Banner Rotation not working properly
Worked fine, Thanks for your help.
Neoroify- Forumember
- Posts : 99
Reputation : 0
Language : English
Re: Banner Rotation not working properly
![]() | This topic is closed. Glad to help. Locked ![]() |
![]() ![]() ![]() | ![]() ![]() ![]() |
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum