Tips adobe photo shop tutorial free photo shop tutorial photo shop online tutoria flash mx tutorial  flash macromedia mx free
flash mx template flash mx training web site web design web site design free web design web 3d wallpaper 3d studio max 3d graphic 3d art 3d studio max tutorial
design forum web design forum graphic design forum Photoshop Tips  adobe photo shop tutorial  photo shop 7 tutorial web site design web site promotion web design web site design free web
Go home [=] Read The Tutorials Chat talk speak learn ... verbalize Flash mx and more photoshop 6 or 7 and more web coding design principles and more Download Free Web Graphic Flash widgets About Flashgimp Contact Flashgimp This is a Chrome Bar, Duh!
esign psd psd template psd file dream weaver 3d art 3d studio max tutorial php php
 template 3d wallpaper 3d studio max 3d graphic
flashgimp -- php tutorial # 4
»»» Random URL/ LINK using php

This simple example shows you how to display random links on your website using php. Excellent for making dynamic content on a website or generating income from you revenue partners by rotating their text links.

Code Example:

<?php // the urls you want to randomize
$urls = array("http://www.flashgimp.com" ,
"http://www.motionrush.com" ,
"http://www.sarasotabradentonvenice.com" );
//the titles of the URLS you want to randomize

$titles = array("Flashgimp Tutorials" ,
"Motionrush Media Labs" ,
"Sarasota Bradenton Venice Portal");
//generate a random number
srand(time());
$random = (rand()%3);
//display the links
echo ("<a href = \"$urls[$random]\">$titles[$random]</a>");
?>

And here is the output , refresh your browser to see all the random links.
»»» Flashgimp Tutorials

You can drop this snippet anywhere you like, but the page you put it into must be able to parse PHP code. So it should end in *.php ( you would also add your CSS to comply with your design )


flashgimp -- Random Advertising Banner

Want to advertise here? Contact Us
 
[|| Admin Only ||] [|| Send Admin Mail ||] [|| Submit A Story For Review ||]



© 2002 flashgimp.com | design by motionrush media labs | hosting by nomosaki | sitemap
flashgimp - a new media forum for designers of all new media formats. Learn, chat, read/write tutorials,
network and grow in the fast paced web world.