I have a javascript that randomly shows a quote each time you are on the page. I made the quote generator in javascript, but now i cant figre out how to make the content font bigger. here is the code:
- 5 Posts
- 0 Reply Likes
- frustrated
Posted 7 years ago
- 7473 Posts
- 2115 Reply Likes
Hello Robert,
Can you repost the code please wrapping it between the code tags
<!-- <code>--> your javascript here <!--</code>-->. The forum engine is trying to interpret your javascript rather than render it as text
Ignore the <!-- and the -->
Can you repost the code please wrapping it between the code tags
<!-- <code>--> your javascript here <!--</code>-->. The forum engine is trying to interpret your javascript rather than render it as text
Ignore the <!-- and the -->
- 5 Posts
- 0 Reply Likes
<script language='JavaScript'>
function random_content(){
var mycontent=new Array()
mycontent[1]='Repent! The end is coming! Were out of chips!'
mycontent[2]='I WANT, TO EAT, A DINOSAUR.'
mycontent[3]='Last night I lay in bed looking up at the stars in the sky and I thought to myself, where the heck is the ceiling.'
mycontent[4]='IT
S A TRAP!'
mycontent[5]='tardo power,activate!'
mycontent[6]='LMS if ur gay'
mycontent[7]='1,2,...5!'
mycontent[8]='Box O Digletts'
mycontent[9]='Justice is best served cold, with a side of ranch dressing'
mycontent[10]='umm...I got nothing...awkward'
mycontent[11]='Once you visit you can never leave'
mycontent[12]='50% CaCow'
mycontent[13]='almost racist free!'
mycontent[14]='The last thing I want to do is hurt you. But it
s still on the list'
mycontent[15]='BOOM! Left turn!'
mycontent[16]='Redrum'
mycontent[17]='If 4 out of 5 people SUFFER from diarrhea... does that mean that one enjoys it?'
mycontent[18]='Never, under any circumstances, take a sleeping pill and a laxative on the same night'
mycontent[19]='the beginning of the end'
mycontent[20]='Flaming fireballs Batman!'
mycontent[21]='gotta catch em
all'
mycontent[22]='for the african children!'
mycontent[23]='One sexy thang'
mycontent[24]='It
s Tardolicious!'
mycontent[25]='That
s no moon!'
mycontent[26]='Caboose is god?'
mycontent[27]='MLIT'
var ry=Math.floor(Math.random()*mycontent.length)
if (ry==0)
ry=1
document.write(mycontent[ry])
}
random_content()
//-->
- 5 Posts
- 0 Reply Likes
thank you, but i have figured it out
- 2045 Posts
- 92 Reply Likes
Glad to hear it's been sorted, Robert!