View Full Version : Javascript text!


Hermione500
04-12-2003, 09:09 PM
I'm using the javascript name thing (the one where you can put the name on your page), and I can't adjust the text! It's really big and it's bold and It's taking up 5 lines of space! I want it to run along with the sentecnce. HELP!!

MaGiCSuN
04-12-2003, 09:15 PM
can you post the code please? in that way we can help you out

Love,
Mirna

Hermione500
04-13-2003, 08:05 PM
<script language=JavaScript>
<!--- start of javascript hide
var Firstname=prompt("Your name? "," ");
// unhide --->
</script>
and then later
<script language=JavaScript>
<!--- start of javascript hide
document.write("<h1>" + " ");
document.write(Firstname + " ");
document.write("</h1>");
//unhide --->
</script>

MaGiCSuN
04-14-2003, 04:56 PM
simply delete "h1" because that makes the text look big

if you want to customize it then change "2" to something else

<head><script language=JavaScript>
<!--- start of javascript hide
var Firstname=prompt("Your name? "," ");
// unhide --->
</script></head>


and then later
<script language=JavaScript>
<!--- start of javascript hide
document.write("<font size=2>" + " ");
document.write(Firstname + " ");
document.write("</font>");
//unhide --->
</script>

Love,
Mirna

Hermione500
04-16-2003, 09:38 PM
Ohhhhh! Thank you! Thank you! Thank you!