-
banner ?????
i need to create a page with a banner ā where I would just sent a site the link to the page ā but I could change my banner with in my site ā and the banner would change on any of sites my banner code is running.
Can anyone here help me with this ?
Does anyone know what the hell Iām talking about?
Thanks for any help in advance.
Ela
-
I understand what you mean. Although those random question marks had me wondering about my sanity?
Typically in an ad banner sponser site, the banner is fetched by the client site through a url link to the host site. In other words, the host has a list of banners (random or logically generated) that are passed to the client site whenever a client's page loads. You can think of this in same way you would a CGI script; which upon a trigger (a page being requested by a browser), fetches the available banners.
There are a number of ways of implementing this (some push, some pull). One way would be to set up an address, www.mybanner.login.com ,which clients would point their a script towards:
<SCRIPT language=javascript>
d=new Date();flash=Math.round(Math.random()*d.getTime()) ;
var cgi='http://www.mybanner.login.com';
var part1='<iframe src="'+cgi+'/serve.cgi?pid=client_page&g=1&m=9&id='+flash+'&d=i frame" ';
var part2='height=50 width=640 border=0 marginheight=0 scrolling=no marginwidth=0 frameborder=no>';
var part3='<a href="'+cgi+'/click.cgi?pid=client_page&id='+flash+'" target="_blank">';
var part4='<img src="'+cgi+'/serve.cgi?pid=client_page&g=1&m=9&id='+flash+'" width=640 height=50 ';
var part5='border=1 ALT="Click to Visit"></a></iframe>';
document.write(part1+part2+part3+part4+part5);
// -->
</SCRIPT>
This would the generate an image link and url link which would looks something like this:
<NOSCRIPT>
<A href="http://mybanner.login.com/click.cgi?id=client_page&id=19flashiframe"
target=_blank><IMG height=50 alt="Click to Visit"
src="somenameoranother/images.gif"
width=640 border=1></A>
</NOSCRIPT>
On the host end your cgi app would return appropriete values.
--MK