changing font of javascript content

  • 1
  • Question
  • Updated 8 years ago
  • Answered
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:
Photo of Robert Cline

Robert Cline

  • 5 Posts
  • 0 Reply Likes
  • frustrated

Posted 8 years ago

  • 1
Photo of Gop


  • 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 -->
Photo of Robert Cline

Robert Cline

  • 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[5]='tardo power,activate!'
mycontent[6]='LMS if ur gay'
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[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
mycontent[22]='for the african children!'
mycontent[23]='One sexy thang'
s Tardolicious!'
s no moon!'
mycontent[26]='Caboose is god?'
var ry=Math.floor(Math.random()*mycontent.length)
if (ry==0)
Photo of Robert Cline

Robert Cline

  • 5 Posts
  • 0 Reply Likes
thank you, but i have figured it out
Photo of Brianna


  • 2045 Posts
  • 92 Reply Likes
Glad to hear it's been sorted, Robert!