www.webdeveloper.com
Results 1 to 3 of 3

Thread: Need help placing two elements side by side

Hybrid View

  1. #1
    Join Date
    Sep 2013
    Posts
    1

    Need help placing two elements side by side

    I'm using an ad management program that uses zone ids for the placement of ads on a web page. This code might look like this:

    HTML Code:
    <div id="azk25258"></div>
    Each zone id is followed by a code that invokes the ad from a server. This code might look like this:

    HTML Code:
    <script type="text/javascript">var p="http",d="static";if(document.location.protocol=="https:"){p+="s";d="engine";}var z=document.createElement("script");z.type="text/javascript";z.async=true;z.src=p+"://"+d+".adzerk.net/ados.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(z,s);</script>
    <script type="text/javascript">
    var ados = ados || {};
    ados.run = ados.run || [];
    ados.run.push(function() {
    /* load placement for account: XXXXX, site: XXXXX.com, size: 125x125 - Small Rectangle, zone: Small Box*/
    ados_add_placement(7935, 51653, "azk25258", 5).setZone(50263);
    ados_load();
    });</script>
    I want to place two ads side-by-side, but I don't know how to do this. Any suggestions?

  2. #2
    Join Date
    Sep 2013
    Posts
    2
    HTML Code:
    ados.run.push(function() {
          /* load placement for account: XXXXX, site: XXXXX.com, size: 125x125 - Small Rectangle, zone: Small Box*/
          ados_add_placement(7935, 51653, "azk25259", 5).setZone(50263);
          ados_load();
    });
    In this part you have "azk25259" which is [div]#id , you need to call this twice, whith different id's to get two boxes with content from script.

    You can pass [div]#id to this place as variable in many ways, make loops or other staff.

    Hope this is what u need

  3. #3
    Join Date
    Sep 2013
    Posts
    221
    Try this one.

    Use an HTML editor to create a table with rows and columns. Put your code inside the cells. That's how I did it.
    or the below code for ads:

    <script type="text/javascript">
    AdSpeed_display(6789,0); // first ad
    </script>

    SOME CONTENT IN BETWEEN ADS

    <script type="text/javascript">
    AdSpeed_display(6789,1); // second ad
    </script>

    Hope this helps you.
    strad solutionswww.stradsolutions.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles