Javascript text centered & Bigger
01-05-2007, 23:37
|
#1
|
|
Tomato Humper
Join Date: Dec 2005
Location: Wilmslow, South Manchester
Age: 33
Services: Virgin 20Mb Broadband? Sometimes
Posts: 1,522
|
Javascript text centered & Bigger
Ive made this but it shows up on the left hand side and its not very big. I need to get it in the center of the browser and be Header 1 size.
Any ideas?
<SCRIPT LANGUAGE = "JavaScript">
var name;
var day;
name = window.prompt('Enter your name please','Type your name here thank you');
day = window.prompt('Enter the day today','');
document.write('Hello ' + name + ' I Like yor shirt' +'!');
document.write('<BR>' + 'Have a nice ' + day + ' I hope we can talk again')
</SCRIPT>
__________________
Intel Quad 2.4, 3 GB Ram, Nvidia 8600 GTS, 1.3 TB Storage, Vista, 5.1 Surround.
www.barewolf.com
|
|
|
01-05-2007, 23:41
|
#2
|
|
Don't fear the reaper...
Join Date: Mar 2006
Location: Oslo, Norway.
Services: Get.no 26Mb/3Mb Cable
Posts: 6,460
|
Re: Javascript text centered & Bigger
<SCRIPT LANGUAGE = "JavaScript">
var name;
var day;
name = window.prompt('Enter your name please','Type your name here thank you');
day = window.prompt('Enter the day today','');
document.write('<center><H1>Hello ' + name + ' I Like yor shirt' +'!');
document.write('<BR>' + 'Have a nice ' + day + ' I hope we can talk again</H1></center>')
</SCRIPT>
__________________
Intel C2D E8400@4Ghz (52c) | 2Gb HyperX RAM | nVidia 8800GT 512Mb (700/1000) | Corsair VX550w PSU | Gigabyte EP35-DS3R | Win XP SP3 | 500Gb Seagate Barracuda 7200.11
|
|
|
01-05-2007, 23:44
|
#3
|
|
Hello !
Join Date: Mar 2004
Location: East Midlands
Services: VMedia 2mb
Posts: 10,810
|
Re: Javascript text centered & Bigger
This should work:
<body>
<h1 align=center>
<SCRIPT LANGUAGE = "JavaScript">
var name;
var day;
name = window.prompt('Enter your name please','Type your name here thank you');
day = window.prompt('Enter the day today','');
document.write('Hello ' + name + ' I Like yor shirt' +'!');
document.write('<BR>' + 'Have a nice ' + day + ' I hope we can talk again')
</SCRIPT>
</body>
|
|
|
01-05-2007, 23:49
|
#4
|
|
Tomato Humper
Join Date: Dec 2005
Location: Wilmslow, South Manchester
Age: 33
Services: Virgin 20Mb Broadband? Sometimes
Posts: 1,522
|
Re: Javascript text centered & Bigger
Ahh cool. Thanks guys ive been searching google with mad codes.
---------- Post added at 23:48 ---------- Previous post was at 23:45 ----------
So how do i make a gap betwwen the document.write?
So it doesnt look like.....
Ilike your shirt
Have a nice day
??
---------- Post added at 23:49 ---------- Previous post was at 23:48 ----------
document.write('<BR>' (Inbetween them?)
__________________
Intel Quad 2.4, 3 GB Ram, Nvidia 8600 GTS, 1.3 TB Storage, Vista, 5.1 Surround.
www.barewolf.com
|
|
|
01-05-2007, 23:51
|
#5
|
|
Don't fear the reaper...
Join Date: Mar 2006
Location: Oslo, Norway.
Services: Get.no 26Mb/3Mb Cable
Posts: 6,460
|
Re: Javascript text centered & Bigger
Quote:
Originally Posted by Barewolf
Ahh cool. Thanks guys ive been searching google with mad codes.
---------- Post added at 23:48 ---------- Previous post was at 23:45 ----------
So how do i make a gap betwwen the document.write?
So it doesnt look like.....
Ilike your shirt
Have a nice day
??
---------- Post added at 23:49 ---------- Previous post was at 23:48 ----------
document.write('<BR>' (Inbetween them?)
|
Yep, br means BReak for Line Break.
__________________
Intel C2D E8400@4Ghz (52c) | 2Gb HyperX RAM | nVidia 8800GT 512Mb (700/1000) | Corsair VX550w PSU | Gigabyte EP35-DS3R | Win XP SP3 | 500Gb Seagate Barracuda 7200.11
|
|
|
01-05-2007, 23:54
|
#6
|
|
Tomato Humper
Join Date: Dec 2005
Location: Wilmslow, South Manchester
Age: 33
Services: Virgin 20Mb Broadband? Sometimes
Posts: 1,522
|
Re: Javascript text centered & Bigger
Ahhhh I see. Only learned this today. Its not been an easy few hours lol.
__________________
Intel Quad 2.4, 3 GB Ram, Nvidia 8600 GTS, 1.3 TB Storage, Vista, 5.1 Surround.
www.barewolf.com
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 01:55.
|