ycfme
Power Member
- Mar 24, 2010
- 780
- 66
I'm thinking of using this banner rotator script :
I'm clear where this should go:
I am not however clear where to insert this code:
Also what does this line do?
Thanks!
HTML:
http://www.pro-dezign.com/how-to-php-banner-rotator.html
I'm clear where this should go:
PHP:
<?php include ("banner-rotator.php"); ?>
I am not however clear where to insert this code:
PHP:
<?php
$Img1 = "http://www.(the source of the image)";
$Alt1 = "[advertisement] (place your alt text here)";
$Url1 = "http://www. (the url of the link)";
$Img2 ="http://www.pro-dezign.com/images/banner.jpg";
$Alt2 = "[advertisement] pro-dezign web development";
$Url2 = "http://www.pro-dezign.com/index.html";
$num = rand (1,2);
$Image = ${'Img'.$num};
$Alt = ${'Alt' .$num};
$URL = ${'Url'.$num};
Print "<a href=\"".$URL."\"><img src=\"".$Image."\" alt=\"".$Alt."\" /</a>"; ? >
Also what does this line do?
PHP:
<a href=\"".$URL."\"><img src=\"".$Image."\" alt=\"".$Alt."\" /</a>"; ?
Thanks!
Last edited: