Dynadot — .com Transfer

Random Image + Text + Link Script Wanted

NamecheapNamecheap
Watch

max99

Established Member
Impact
0
Im looking for a script which Randomly displays an image with a link, some text undernearth it.

Altho i want it so the image coincides with the text.


Anyone know of one ?


Thanks
Max
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
php and mysql are what you need, i dont know the mysql code, but itl be very easy to implament into your current temp, as long as you rename your pages to ....php as apposed to ....html.

pm rj for the mysql code he used on the raffle.

all the info would have to be stored in a db though, but its very easy.

take the php and mysql tuts at tizag.com .
(dont worry, theyre quick and easy tuts)
 
Last edited:
0
•••
thatd be really simple just have to set of arrays, get a random number ect?

<?PHP
$links[] = 'http://google.com';
$links[] = 'http://yahoo.com';
$links[] = 'http://namepros.com';
$names[] = 'Google';
$names[] = 'Yahoo';
$names[] = 'Namepros';
$images[] = 'http://www.google.com/intl/en_ALL/images/logo.gif';
$images[] = 'http://us.i1.yimg.com/us.yimg.com/i/ww/beta/y3.gif';
$images[] = 'http://images.namepros.com/logo60.gif';
$i = mt_rand(0, count($links)-1);
echo '<a href="'.$links[$i].'"><img src="'.$images[$i].'"><br>'.$names[$i].'</a>';
?>
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back