/    Sign up×
Community /Pin to ProfileBookmark

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:

[code=html]<div id=”azk25258″></div>
[/code]

Each zone id is followed by a code that invokes the ad from a server. This code might look like this:

[code=html]<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: 125×125 – Small Rectangle, zone: Small Box*/
ados_add_placement(7935, 51653, “azk25258”, 5).setZone(50263);
ados_load();
});</script>[/code]

I want to place two ads side-by-side, but I don’t know how to do this. Any suggestions?

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@mikellowSep 27.2013 — [code=html]
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();
});
[/code]


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
Copy linkTweet thisAlerts:
@priyankagoundSep 28.2013 — 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.
×

Success!

Help @chillybean spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...