Re: banner rotation script



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



Relevant Pages

  • Re: How can I code to get more than One value from checkbox? (Revised Version)
    ... The columns of this table consists of project name, date, shot number, ... And these fields are the stuffs that I wanna to present ... I wanna to display the output in a table form and I'm currently ... with columns and rows instead of key: blah blah and value: blah blah. ...
    (comp.lang.python)
  • Re: Automatic multi-column layout
    ... decided to follow the usual printed page solution and display the text ... How can I get text to flow between a fixed number of columns? ... You can use a series of left floats with usually percentage widths on ...
    (alt.html)
  • Re: How to pull existing Title tag into the body of the document as text only
    ... > we cant use javascript john because search engines will not execute it, ... > page title and display it within the page. ... you may get: 'blah blah blah <titl' ... depending on how much info is before the title tag. ...
    (alt.php)
  • Re: DIV not recognized by Firefox - It works only in IE - How to replace it for Firefox?
    ... Blah blah blah ... The page is displayed correctly in InternetExplorer but NOT in Firefox. ... What does IE display? ...
    (comp.infosystems.www.authoring.html)
  • Data layout component?
    ... I'm looking for a component that helps me display data to the user - at ... Field 2: Blah blah blah blah | Field 7: Blah blah blah blah ... Ideally you could define as many data areas as you wish, ... So more or less it *is* a grid control, but for display of data, ...
    (borland.public.delphi.thirdpartytools.general)