What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Use existing array to generate random quote in personal message?

Use existing array to generate random quote in personal message?
Author: Message:
stu
Junior Member
**

Avatar
Stu

Posts: 82
Reputation: 1
39 / Male / Flag
Joined: Sep 2004
O.P. Undecided  Use existing array to generate random quote in personal message?
I have some javascript code that I use for my website to generate and display a random song lyric. Im wondering if it would be possible to use my existing code, shown below, with a script to show a random lyric as my personal message. I know there are other scripts out there that can do this, but seeing as I already have this set up and update it frequently, it would be great if I could use this code. Does anybody have any suggestions on how to do this or could write something up quick? Thanks for any help :)

code:
<!--

var Text=new Array()
var num=0;

Text[num++] = "Song quote one";

Text[num++] = "Song quote two";

Text[num++] = "Song quote three.. etc";

var Number=Math.round(Math.random()*(num-1));
function showText(){document.write("<p class=\"lyric\">Music Quote</p> <div>&#9834;" + Text[Number] + "&#9834;</div>");}
showText();

// -->
06-07-2007 08:37 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Use existing array to generate random quote in personal message? - by stu on 06-07-2007 at 08:37 PM
RE: Use existing array to generate random quote in personal message? - by albert on 06-07-2007 at 10:10 PM
RE: Use existing array to generate random quote in personal message? - by albert on 06-08-2007 at 01:24 AM
RE: Use existing array to generate random quote in personal message? - by stu on 06-08-2007 at 01:55 AM
RE: Use existing array to generate random quote in personal message? - by albert on 06-08-2007 at 02:19 AM
RE: Use existing array to generate random quote in personal message? - by stu on 06-08-2007 at 02:33 AM
RE: Use existing array to generate random quote in personal message? - by albert on 06-08-2007 at 03:47 AM
RE: Use existing array to generate random quote in personal message? - by stu on 06-08-2007 at 12:26 PM
RE: Use existing array to generate random quote in personal message? - by stu on 06-09-2007 at 12:25 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On