need banner rotation help...openin new window
I'm using Daddy BURP (from BNB), and I love it. I only needed a fairly simple banner rotator anyway.
I'd really like to have the links open in a new window, but don't know how to do this.
Would you like to see the script?
#!/usr/bin/perl
$|=1;
$mypic[0]="/banners/SpydeRench.gif WIDTH=468 HEIGHT=60 border=0";
$myurl[0]="/spyderco/page1.shtml";
$mypic[1]="/banners/ebizbanner.gif WIDTH=468 HEIGHT=60 border=0";
$myurl[1]="http://e-biz-graphics.com";
$mypic[2]="/banners/YourAdHere3.gif WIDTH=468 HEIGHT=60 border=0";
$myurl[2]="/c2/bannerx.shtml";
srand(time ^ $$);
$pick = rand(@mypic);
print "Content-type: text/html\n\n";
print "<A HREF=\"$myurl[$pick]\"> <IMG SRC=$mypic[$pick]></A>";
I hope you can help!
Thanks,
Carole
------------------
Knives, cutlery & sharpeners: Millennium Cutlery
ICQ: 65454647
....always looking for related subject banner/link exchanges.
Military & Combat Knives. Hunting & Fishing Knives. Pocket Knives.
Kitchen Cutlery. Sharpeners.
Enter our Monthly Drawing!!
Ken Elliott posted this at 17:50 — 14th June 2000.
They have: 358 posts
Joined: Jun 1999
Well if you already have the banner rotation script, all you need to do is put (target="_blank") within the anchor tag.
Example----------------
<a href="http://mysite.com" target="_blank">
MySite</a>
Example----------------
Hope that helps.
Pimpin like a pimp with an electrofied pimpin machine!
tiny posted this at 17:56 — 14th June 2000.
They have: 89 posts
Joined: Jul 1999
Thanks VulKen.
I had already tried:
print "<A HREF=\"$myurl[$pick]\" target="_new"> <IMG SRC=$mypic[$pick]></A>";
But that returned an Internal Server Error.
I don't see a lot of difference in this and
your example.
I do appreciate your effort.
~ Carole http://KnifeDealer.net
Military & Combat Knives. Hunting & Fishing Knives. Pocket Knives.
Kitchen Cutlery. Sharpeners.
Enter our Monthly Drawing!!
Justin S posted this at 18:37 — 14th June 2000.
They have: 2,076 posts
Joined: Jun 1999
It should be like this:
Justin Stayton - [email] [icq]
tiny posted this at 19:40 — 14th June 2000.
They have: 89 posts
Joined: Jul 1999
Perfect!
thanks, Justin!!!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.