Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

Make money selling software. Check this out here

Hosted clickbank mall. Check this out here




   Misc

   Amazon

   Links

    


Random link generator

 

 
Do you have a list of sites you would like to display links for , do you want to stop users getting bored looking at the same content , do you have a collection of advertising links you would like to display and gain revenue from . Here is a simple script that may help you out , to see the link change in the example simply refresh your browser.

Code

<?php
$urls = array("http://asp.myscripting.com" ,
"http://vbscript.myscripting.com" ,
"http://javascript.myscripting.com" );
$titles = array("ASP site" ,
"VBScript site" ,
"Javascript site");
//generate a random number
srand(time());
$random = (rand()%3);
//display link
echo ("<a href = \"$urls[$random]\">$titles[$random]</a>");
?>

 

 

 

 

 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Display all environment variables(Powershell)
Move a folder with MoveTo(C Sharp)
display the html of a web page(C Sharp)
Changing the case of a string(VB.net)
display disk drive properties(Powershell)
processor information in an excel table(VBScript)
Read all lines in a file(ASP)
break out of a loop(php)

    




Copyright © 2003 by programmershelp.co.uk