Who wants one? I've got one at TM. TM is ZetaBoards, but I'm pretty sure it still reads java and HTML the same, so I'll just paste the code I used here:
Basically, what it does is pull one of the quotes between the innermost square brackets at random and shows it on the webpage.
Minor notes:
It doesn't slow TM down noticeably even though it takes days to scroll from top to bottom with all the quotes I've put in it. Obviously, since it's java, it won't run if the end user doesn't have java, but who doesn't have java these days? The quotes must be surrounded by quotation marks ("text here") and separated with commas (,) in order for it to work. If not, it won't display quotes, but doesn't cause any loading issues with the rest of the page if syntax isn't followed, so no worries if you make a slight mistake like I've done a billion times. To make it look like the text quoted is surrounded by quotation marks, just put double apostrophes at the beginning and end of the quote. ("''text here''")
In case you couldn't figure it out, it's FOSS, so use it for whatever purpose you want.
Want it? Don't want it? Thoughts on it?
- Code:
<script type="text/javascript">
var Random_M = ["quote #1","quote #2","etc."];
document.write(Random_M[Math.floor(Math.random()*Random_M.length)]);
</script>
Basically, what it does is pull one of the quotes between the innermost square brackets at random and shows it on the webpage.
Minor notes:
It doesn't slow TM down noticeably even though it takes days to scroll from top to bottom with all the quotes I've put in it. Obviously, since it's java, it won't run if the end user doesn't have java, but who doesn't have java these days? The quotes must be surrounded by quotation marks ("text here") and separated with commas (,) in order for it to work. If not, it won't display quotes, but doesn't cause any loading issues with the rest of the page if syntax isn't followed, so no worries if you make a slight mistake like I've done a billion times. To make it look like the text quoted is surrounded by quotation marks, just put double apostrophes at the beginning and end of the quote. ("''text here''")
In case you couldn't figure it out, it's FOSS, so use it for whatever purpose you want.
Want it? Don't want it? Thoughts on it?