katai_kennels
01-22-2009, 05:57 PM
Hello,
Super newbie here, lol.
this is probably a retard level question but I'm hoping to get some help here.
I'm adding a rotating banner to a VB fourm, so far it rotates and is "clickable" (if that's a word)
the problem is, I cant get it to open in a new window and the ad rotates too slow.
here is the code I'm working with:
<script type="text/javascript">
var imgs1 = new Array("http://i41.photobucket.com/albums/e299/kataikennels123456789/xllogo.jpg","http://i41.photobucket.com/albums/e299/kataikennels123456789/MAJORLEAGE.jpg","http://i41.photobucket.com/albums/e299/kataikennels123456789/GGPITS.jpg");
var lnks1 = new Array("http://www.xplicitlook.com/","http://www.majorleaguepitbulls.com/","http://www.gargoylepits.com/");
var alt1 = new Array();
var currentAd1 = 0;
var imgCt1 = 3;
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://www.xplicitlook.com/"" id="adLink1" target="_top">
<img src="http://i41.photobucket.com/albums/e299/kataikennels123456789/xllogo.jpg" id="adBanner1" border="0" width="127" height="127"></a>
I was able to find this info:
<script language="JavaScript">
<!--
function makenew()
{window.open("testwindow4.htm","blank","toolbar=no,width=250,height=250")}
-->
</script>
But I'm not sure if that is the right code or where to put it?
also not sure how to set the rotation time :confused:
Any help would be greatly appreciated, let me know if this post is in the wrong spot or i left out needed info. I read throught the rules, if i don't post this right feel free to tell me to go play in the freeway... lol...
Super newbie here, lol.
this is probably a retard level question but I'm hoping to get some help here.
I'm adding a rotating banner to a VB fourm, so far it rotates and is "clickable" (if that's a word)
the problem is, I cant get it to open in a new window and the ad rotates too slow.
here is the code I'm working with:
<script type="text/javascript">
var imgs1 = new Array("http://i41.photobucket.com/albums/e299/kataikennels123456789/xllogo.jpg","http://i41.photobucket.com/albums/e299/kataikennels123456789/MAJORLEAGE.jpg","http://i41.photobucket.com/albums/e299/kataikennels123456789/GGPITS.jpg");
var lnks1 = new Array("http://www.xplicitlook.com/","http://www.majorleaguepitbulls.com/","http://www.gargoylepits.com/");
var alt1 = new Array();
var currentAd1 = 0;
var imgCt1 = 3;
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://www.xplicitlook.com/"" id="adLink1" target="_top">
<img src="http://i41.photobucket.com/albums/e299/kataikennels123456789/xllogo.jpg" id="adBanner1" border="0" width="127" height="127"></a>
I was able to find this info:
<script language="JavaScript">
<!--
function makenew()
{window.open("testwindow4.htm","blank","toolbar=no,width=250,height=250")}
-->
</script>
But I'm not sure if that is the right code or where to put it?
also not sure how to set the rotation time :confused:
Any help would be greatly appreciated, let me know if this post is in the wrong spot or i left out needed info. I read throught the rules, if i don't post this right feel free to tell me to go play in the freeway... lol...