Announcement

Collapse
No announcement yet.

Side by Side Ad Banners?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Side by Side Ad Banners?

    I would like to place two advertising banners side by side above my footer. I know where to put it, but don't what I've tried for code isn't working. What should i should be using to accomplish this?

    Any help would be great!

  • #2
    You can try using a table format.
    www.cdmagurus.com
    www.cellphone-gurus.com

    Comment


    • #3
      I tried this, but it didn't work. No matter how I changed the spacing or padding, the two banners were glued together:

      <center>
      <table cellspacing=5 cellpadding=0 border=0>
      <tr>
      <td> First banner code here </td>
      <td> Second banner code here </td>
      </tr>
      </table>
      </center>

      Comment


      • #4
        How about something like:

        Code:
        <div align="center">
        *first ad code* &nbsp; *second ad code*
        </div>
        Vote for:

        - *Admin Settable Paid Subscription Reminder Timeframe*
        -
        *PM - Add ability to reply to originator only*
        - Add Admin ability to auto-subscribe users to specific channel(s)
        - "Quick Route" Interface...

        Comment


        • #5
          Well, by jove that's it! Worked perfectly!

          Would you know what could be added to this to make the ads then rotate so I can present lots of ads in the same space?

          Comment


          • #6
            You'll need to search for a script that does this, I believe there is a modification over at www.vbulletin.org that does this.
            Vote for:

            - *Admin Settable Paid Subscription Reminder Timeframe*
            -
            *PM - Add ability to reply to originator only*
            - Add Admin ability to auto-subscribe users to specific channel(s)
            - "Quick Route" Interface...

            Comment


            • #7
              I do have a script, but can't figure out how to make it work side by side. Where would I slide in your bit of code to make this all work together? Here is the rotating banner code I currently use and it works perfectly. Wondering how to make this all work side by side? Any ideas?

              <html>
              <head>
              <title>UKBL ~ 9 Second Banner Rotator</title>
              </head>
              <body>
              <DIV ALIGN=CENTER>
              <script language="JavaScript">
              <!--
              function adArray() {
              for (i=0; i*2<adArray.arguments.length; i++) {
              this[i] = new Object();
              this[i].src = adArray.arguments[i*2];
              this[i].href = adArray.arguments[i*2+1];
              }
              this.length = i;
              }
              function getAdNum() {
              dat = new Date();
              dat = (dat.getTime()+"").charAt(8);
              if (dat.length == 1)
              ad_num = dat%ads.length;
              else
              ad_num = 0;
              return ad_num;
              }

              var ads = new adArray(
              "http://i918.photobucket.com/albums/ad27/koikeepr/BridgeWayKoiBANNERTPFcopy.jpg",
              "http://www.bwkoi.com/",
              "http://i918.photobucket.com/albums/ad27/koikeepr/koi-forum-2011.gif",
              "http://www.qualitykoi.com/",
              "http://i918.photobucket.com/albums/ad27/koikeepr/highdesertkoibanner.jpg",
              "http://www.highdesertkoi.com",
              "http://i918.photobucket.com/albums/ad27/koikeepr/WeWillyBanner3spattercopy.jpg",
              "http://www.cascadepondsupply.com",
              "http://i918.photobucket.com/albums/ad27/koikeepr/tpf_banner_03.gif",
              "http://www.aquaticeco.com/topics/6/Lake--Pond-Supplies",
              "http://i918.photobucket.com/albums/ad27/koikeepr/razorbackbannersplattercopy.jpg",
              "http://www.razorbackkoi.com/"
              );

              var ad_num = getAdNum();

              document.write('<table cellpadding=1 cellspacing=1 border=0><tr><td '
              +'align="center">'
              +'<A href="'+ads[ad_num].href+'"><IMG SRC="'+ads[ad_num].src+'" '
              +'height="92" width="612" border="0" name="js_ad"></a></td></tr></table>');

              link_num = document.links.length-1;

              function rotateBanner() {
              if (document.images) {
              ad_num = (ad_num+1)%ads.length;
              document.js_ad.src = ads[ad_num].src;
              document.links[link_num].href = ads[ad_num].href;
              setTimeout("rotateBanner()",9000);
              }
              }
              setTimeout("rotateBanner()",9000);

              // -->
              </script>
              </DIV>
              </body>
              </html>

              Comment


              • #8
                Usually the best place to get help with custom code is over on vbulletin.org

                I would guess you will need to create a new var for the second ad, like:
                Code:
                var ad_num2 = getAdNum();
                Then use that var in the html for the second ad.

                Please don't PM or VM me for support - I only help out in the threads.
                vBulletin Manual & vBulletin 4.0 Code Documentation (API)
                Want help modifying your vbulletin forum? Head on over to vbulletin.org
                If I post CSS and you don't know where it goes, throw it into the additional.css template.

                W3Schools &lt;- awesome site for html/css help

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...
                X