/    Sign up×
Community /Pin to ProfileBookmark

getting data to display ads

Hi
I want to code a JS file that enables me to give a code to my users to place on their site so that I’ll display ads on their site. the code they will place on their site is like this:

[CODE]<script type=”text/javascript”>
partnerid = “3832”;
keyword=”host”;
backgroundcolor=”FFFFFF”;
width=”336″;
height=”280″;
scriptid=”4ebb512″
<script id=”4ebb512″ type=”text/javascript” src=”http://domain.com/WebFiles/display_ad.js”>[/CODE]

But how that display_ad.js file (hosted on my server) will collect the data in the code (like height, width, partnerid,etc) to decide what to desplay?
I really need it. any help or refering to a tutorial is highly appreciated
thanks in advance

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @m2babaey 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.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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