NameSilo

Random Image + Text + Link Script Wanted

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
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
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back