What about php?
i need a code that can display random pieces of html w/o needing cpanel/cgi center
thanks
any language is fine
What about php?
I lost my signature, have you seen it?
check www.hotscripts.com for php scripts
OveRuLe.NET Hosting (Unlimited Features)
: : In Business Since 2002 : :
FreeBox
A Great Remotely-Hosted ShoutBox
random pieces of html?? what do you mean? images, quotes??Originally Posted by Szalor
iHeartLED.com - Love Your LED Endlessly
pieces of html
what you need the code to do ?
OveRuLe.NET Hosting (Unlimited Features)
: : In Business Since 2002 : :
FreeBox
A Great Remotely-Hosted ShoutBox
display random ads, whether its an image ad or cicksor/google etc.
you could use this to for random images that link to something:
but if your gonna randomize like google ads, i think you have to replace it with files of your ad script.PHP Code:<?
$image[] = "<a href=\"http://URL.com\"><img src=\"img1.gif\"></a>";
$image[] = "<a href=\"http://URL.com\"><img src=\"img2.gif\"></a>";
//and so on
echo $banner[array_rand($image)];
?>
iHeartLED.com - Love Your LED Endlessly
thanks for this
its a real help
no prob
iHeartLED.com - Love Your LED Endlessly
same thing here posted by me:
http://www.freewebspace.net/forums/s...ad.php?t=71799
but I think felguard's version is better^, looks smaller anyway.
I think array_rand() is for picking multiple items so it may be slower?
I got a nice simple tutorial, I know you have a script already but if anyone wants it,
http://www.daydreamgraphics.com/d/tutorial/list/220/2
The include code is meant to be <?php include("random.php"); ?> I missed the ?.
I lost my signature, have you seen it?
Great tut.
Bookmarks