random quotes/thoughts

View previous topic View next topic Go down

random quotes/thoughts

Post by Mystic_gohan on Wed Sep 29, 2010 9:11 am

random quotes/thoughts
written By Mystic_gohan
MG tutorials



You have saw people having Random thoughts / random quotes isn't it ?Have you wondered how did they do it ? You can do it easily By A FORUM/BLOG/Webpage !

You can add random quote to your webpage blog or forum . It's quite easy . All you require is :

Forum/Blog/Website .
Homepage message .

Forumotion forum :


Step 1 : Admin panel > display > generalists > Homepage message.

Step 2 : Insert this code :
Code:
<script LANGUAGE="Javascript">
//store the quotations in arrays
quotes = new Array(6);
authors = new Array(6);
quotes[0] = "I have a new philosophy. I'm only going to dread one day at a time.";
authors[0] = "Charles Schulz";
quotes[1] = "Reality is the leading cause of stress for those in touch with it.";
authors[1] = "Jack Wagner";
quotes[2] = "Few things are harder to put up with than the annoyance of a good example.";
authors[2] = "Mark Twain";
quotes[3] = "The pure and simple truth is rarely pure and never simple.";
authors[3] = "Oscar Wilde";
quotes[4] = "There's no business like show business, but there are several businesses like accounting.";
authors[4] = "David Letterman";
quotes[5] = "Man invented language to satisfy his deep need to complain.";
authors[5] = "Lily Tomlin";

//calculate a random index
index = Math.floor(Math.random() * quotes.length);

//display the quotation
document.write("<DL>n");
document.write("<DT>" + """ + quotes[index] + ""n");
document.write("<DD>" + "-- " + authors[index] + "n");
document.write("</DL>n");

//done
</script>

Blog : Add the same code for Forum on a Blog post .

Web page : Add the same code for forum at the header/footer .

You can add more thoughts by adding this code :
Code:
quotes[number] = "Thought/quote.";
authors[number] = "Author name";

Number depends that how much in the order shall it appear .


Best of Luck Wink .

Notice : This message is copyrighted by HelpfulTips Forum. You may not publish it on anywhere without written permission from the administrators. Helpfultips

Mystic_gohan
Member
Member

Warnings :
Posts : 12
Join date : 2010-09-29

View user profile

Back to top Go down

Re: random quotes/thoughts

Post by Atlantica on Wed Sep 29, 2010 9:18 am

This is more like a Jumble of text, images or link, correct?

_________________
avatar
Atlantica
Admin
Admin

Warnings :
Posts : 25
Join date : 2010-09-25

View user profile http://helpfultips.forumakers.com

Back to top Go down

Re: random quotes/thoughts

Post by Mystic_gohan on Thu Sep 30, 2010 12:33 am

Maybe but because of the code is same colored it looks like .

Mystic_gohan
Member
Member

Warnings :
Posts : 12
Join date : 2010-09-29

View user profile

Back to top Go down

Re: random quotes/thoughts

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum