Hi all I'm new here I have SMF 2.02 running Ad Seller Pro. I am using this Rotating Banner Scrip. I cannot remove the width and length at the end or it doesn't work. I can change the width and Length in the Code and it re-sizes the Banner adds to all the same size. My problem is the middle ad is not as wide as the other two so it stretches the ad? Is there a way to make it use the height and width of the actual Banner Ad?
Here is the Code that I am using. Thanx for any help!!!
<script type="text/javascript">
var imgs1 = new Array("
http://i402.photobucket.com/albums/pp107/slider11111/Ads/charlie-banner-add-size66.jpg","
http://i402.photobucket.com/albums/pp107/slider11111/Ads/timbertech-90-1-2-2.jpg","
http://i402.photobucket.com/albums/pp107/slider11111/Ads/Graphicgif-wabowhunterssize66banner-ad.jpg");
var lnks1 = new Array("
http://www.charliestaxidermy.net/","
http://www.timbertech.com/","
http://www.wabowhunters.org/");
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()",4000);
</script>
<a href=""
http://www.charliestaxidermy.net/"" id="adLink1" target="_top">
<img src="
http://i402.photobucket.com/albums/pp107/slider11111/Ads/charlie-banner-add-size66.jpg " id="adBanner1" border="0" width="500" height="70"></a>