Hello - this script works well but I can't for the life of me figure out where to insert target="_blank" so that the url direct will pop a new window and the visitors won't leave my site after clicking on my advertisers banner...
The link where this script works is
(reload page to see the banner rotate)
The code that needs target="_blank" inserted (and I don't know where)
Thank you.
John Kolker
John Kolker
Programmer
jwkolker@comcast.net
The link where this script works is
(reload page to see the banner rotate)
The code that needs target="_blank" inserted (and I don't know where)
Code:
#!/usr/bin/perl
$|=1;
$mypic[0]="/personals/banners/AdKlix_468_MenuBanner.gif WIDTH=468 HEIGHT=60 border=0";
$myurl[0]="[URL unfurl="true"]http://www.cnn.com";[/URL]
$mypic[1]="/personals/banners/addesign.gif WIDTH=468 HEIGHT=60 border=0";
$myurl[1]="[URL unfurl="true"]http://www.foxnews.com";[/URL]
$mypic[2]="/personals/banners/gotcomp.gif WIDTH=468 HEIGHT=60 border=0";
$myurl[2]="[URL unfurl="true"]http://www.home2work.com";[/URL]
$mypic[3]="/personals/banners/Hand_Subtle_Ban.gif WIDTH=468 HEIGHT=60 border=0";
$myurl[3]="[URL unfurl="true"]http://www.adklix.com";[/URL]
srand(time ^ $$);
$pick = rand(@mypic);
print "Content-type: text/html\n\n";
print "<A HREF=\"$myurl[$pick]\"><IMG SRC=$mypic[$pick]></A>";
Thank you.
John Kolker
John Kolker
Programmer
jwkolker@comcast.net