Does anyone have a script for random text, which isn't remotely hosted?
Anything?!?! Who are you hosted by? How did they manage that? I doubt this somehow.
I'm not to familiar with JS, so I'll give you a PHP solution instead, I'm sure someone will come up with one for JS.
$text = "love";
$text = "hate";
$text = "have no opinoin regarding";
$choice = $text[ran(1,count($text))];
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
<title>My opinoin on PHP</title>
<p>I must say, I <?=$choice ?> <abbr title="HyperText Preprosessor">PHP</abbr> don't you?</p>
Last edited by the tree; 04-01-2005 at 10:14 AM.
Here is just one example of a result.
Thanks very much for your help!
This is what I have used. It includes an author array but that can be taken out and changed. Hope this helps.
//store the quotations in arrays
quotes = new Array(6);
authors = new Array(6);
quotes = "The members of the Lone Star Scouts RV Club would like to thank you and your staff for the hospitality extended to us during our rally at your RV Park.”";
authors = "Tom Fausnacht - President Lone Star Scouts RV Club";
quotes = "Your facilities are picture postcard type. Your RV Sites are clean, neat and level. Your Hall couldn’t have been any better. Thanks again for providing a great location for our rally.";
authors = "Herb and Gretta Lucas - Lone Star Bounder";
quotes = "Your new sign looks really great!!!!! Man, you guys are really making this a great park!!!! Hard work is paying off in eyeball appeal!!!";
authors = "Debbie Dominguez";
quotes = "Wonderful place to come. Dorothy, Joe and all the staff are so polite and helpful.";
authors = "Jalanette and Harold Lewis";
quotes = "We love this place! It was easy to find. The bathrooms were really clean and the free movies were great. They also have really good soda.";
authors = "Unknown Child";
quotes = "Eddie and I have really enjoyed our stay at the RV Ranch. Your wonderful personality brightened some very difficult days. Thank you for your support and encouragement...";
authors = "Eddie and Kathy";
quotes = "Dorothy is so kind and goes the extra mile to see that our needs have been met. Joe is ready and willing no matter how cold it is... You won’t be dissatisfied with your stay...";
authors = "Tony and Stacy Padgett";
quotes = "We always enjoy staying here at the RV Ranch. The people are friendly and very helpful. The surroundings are beautiful and kept spotless.";
authors = "Terry and Melissa Hann";
quotes = "We love you Dorothy more than you will ever know. You are like family!!! We’ll Be Backkkkkkkkkk!!";
authors = "Donna and Dean";
//calculate a random index
index = Math.floor(Math.random() * quotes.length);
//display the quotation
document.write("<DT><H6>" + "\" " + quotes[index] + "\"\n");
document.write("<DD>" + "-- " + authors[index] + "\n");
I've done an image in ASP, you can have the code if you want, all it does is redirect the users current page(or rather an image) to one based on the current day, I'm sure you could change it to use a random number.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)