You are here: Re: banner rotation script « All PHP « IT news, forums, messages
Re: banner rotation script

Posted by Krustov on 07/15/06 19:02

<alt.php>
<Nospam>
<Sat, 15 Jul 2006 18:41:52 GMT>
<QFaug.34172$eQ.12683@newsfe7-win.ntli.net>

> $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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация