Re: banner rotation script
- From: Krustov <me@xxxxxxxxxxx>
- Date: Sat, 15 Jul 2006 20:02:49 +0100
<alt.php>
<Nospam>
<Sat, 15 Jul 2006 18:41:52 GMT>
<QFaug.34172$eQ.12683@xxxxxxxxxxxxxxxxxxxx>
$bannerCode[$bannerCounter] = "<a href=\"http://www.example.com/site1\"
target=\"_top"><iframe src=\"http://www.example.com/site1\"
marginwidth=\"0\" marginheight=\"0\" width=\"120\" height=\"150\" border="0"
frameborder="0" style="border:none;" scrolling="no"> </iframe></a>\";
$bannerCounter++;
$bannerCode[$bannerCounter] = "<a href=\"http://www.example.com/site2\"
target=\"_top\"><img src=\"http://www.example.com/site2\" width=\"120\"
height=\"600\" alt=\"null\" border=\"0\"/></a> ";
$bannerCounter++;
/demo/1.php
http://www.example.com/site1
site1/image.jpg
alt text blah blah blah
/demo/2.php
http://www.example.com/site2
site2/image.jpg
alt text blah blah blah
etc etc
You could create a flatfile for each banner and you could display them
in order starting from 1 or display them after picking a random number .
$demo="site2/image.jpg";
$size=GetImageSize($demo);
<a href=$graburlfromflatfile>
<img src=$demo width=$size[0] height=$size[1] border=0>
</a>
Your kinda making things hard for yourself the way you are currently
doing it and a little bit of organisation would really help you .
--
Encrypted email address
www.emailuser.co.uk/?name=KRUSTOV
.
- References:
- banner rotation script
- From: Nospam
- banner rotation script
- Prev by Date: banner rotation script
- Next by Date: Best practice regarding MySQL username/pw in script file??
- Previous by thread: banner rotation script
- Next by thread: Best practice regarding MySQL username/pw in script file??
- Index(es):
Relevant Pages
|