your help will be definitely apreeciated. I need a code to display random messages. everytime any visitors visit the site, I want to display pre written random messages. can you provide me the code with that.
Isnt that like javascript? I remember something like that.. i will look for it Hope this helps, its javascript : http://javascriptkit.com/script/script2/randomcontent.shtml Its free BTW
You can use javascript, but the problem is that the file can be viewed by anyone. I use a PHP file on my site ty4.info. PM if you would like the code.
I once use this code to display various quotes randomly (or when one refreshes the page): <script type="text/javascript"> //these are your quotes - we've included three var message = new Array( 'I do not fear computers. I fear the lack of them. <strong style="font-size: 10px;">-Isaac Asimov</strong>', 'Never trust a computer you can\'t throw out a window. <strong style="font-size: 10px;">-Steve Wozniak</strong>', 'Why think? We have computers to do that for us. <strong style="font-size: 10px;">-Jean Rostand</strong>' ); // if you want to include more quotes - increase the number three to how many you have var rand = Math.floor(Math.random() * 3); //this writes the quote to the page document.write('"'+message[rand]+'"'); </script> Code (markup): tayiper
download and edit this file: http://www.weberdev.com/download.php?filename=motd.zip.ber Code (markup):