|
|
|
|
|
|
|
|
|
#2 |
|
You can now put whatever you want in this space :)
|
Top of the page (before any HTML):
PHP Code:
P.S. I'm not sure how random the shuffle() function is. You can also create a random_link.php file, dump the code in there, then do an include where you want the link displayed: <? include('path to file..../random_link.php'); ?> Personally though, I would stick with JS, because with PHP you're adding a slight load on the server. Also, I'm sure you can use an external JS file and just call the function in your HTML. Only time I'd use PHP for something like this is if I was dealing with hundreds of links.
__________________
Success is going from failure to failure without a loss of enthusiasm. |
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|