PDA

View Full Version : Change font & delete form box of Random Quote


neodjandre
08-21-2002, 02:36 PM
i'd like to change the font of this script to verdana size= 8pt and if possible hide the form box so that the quotes display as simple text .. thnx in advance :) i'm begining to learn more stuff in here

<form name="scriptform"><input name="scriptinput" size=70 style="border-width:1px solid black;font:Arial"> <input type="button" value="Random" onClick="randomdisplay()"></form>

<script>

//Satirical Punch Line Script- by javascriptkit.com (text by Colin Lingle)
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use

quotes = new Array();
quotes[0]="Warning: Dates in Calendar are closer than they appear.";
quotes[1]="Daddy, why doesn't this magnet pick up this floppy disk?"
quotes[2]="Give me ambiguity or give me something else."
quotes[3]="I.R.S.: We've got what it takes to take what you've got!"


function randomdisplay(){
randomquote=quotes[Math.floor(Math.random()*quotes.length)]
document.scriptform.scriptinput.value=randomquote
}

setTimeout("randomdisplay()",100)

</script>
:cool: :cool: :D

x_goose_x
08-21-2002, 03:08 PM
Change:
<input name="scriptinput" size=70 style="border-width:1px solid black;font:Arial">
To:
<input name="scriptinput" size=70 style="border-width: 0; font-family: verdana; font-size: 8pt;">

neodjandre
08-21-2002, 04:50 PM
i can achive the same result with hiding the white form box by changing the background of the white form box ... any ideas on that ?

neodjandre
08-21-2002, 08:26 PM
alright i found a way to change the background of the form :)
please http://go.to/djandre and tell me what u think of it :p