Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting data to display ads

Status
Not open for further replies.

m2babaey

Programmer
Jul 31, 2007
1
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="[URL unfurl="true"]http://domain.com/WebFiles/display_ad.js">[/URL]
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
 
I'm guessing you've not done any research whatsoever on this, or you'd do it how every other ad provider in the world does it - with a 1x1 image with parameters that you pick up on.

I suggest you take a look at how they do it - it's common, and it works.

Hope this helps,
Dan




Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top