Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 230
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 256
Total: 256

Author Topic: Coding resize issue in Ad Seller Pro  (Read 3717 times)

0 Members and 1 Guest are viewing this topic.

Offline slider11111

  • Member
  • *
  • Posts: 1
    • View Profile
Coding resize issue in Ad Seller Pro
« on: January 10, 2012, 11:52:51 am »
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>

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Coding resize issue in Ad Seller Pro
« Reply #1 on: January 10, 2012, 12:23:41 pm »
You can try using 100% width and height in the image tag.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
3044 Views
Last post May 30, 2009, 12:58:57 pm
by menew
1 Replies
3598 Views
Last post November 14, 2009, 07:55:22 pm
by SMFHacks
21 Replies
11140 Views
Last post December 05, 2012, 08:29:05 pm
by SMFHacks
7 Replies
6776 Views
Last post July 13, 2015, 12:10:21 pm
by SMFHacks
0 Replies
3803 Views
Last post August 06, 2016, 01:43:18 am
by shuban

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal