Home News Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Javascript text centered & Bigger


You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Internet Discussion

Javascript text centered & Bigger
Reply
 
Thread Tools
Old 01-05-2007, 23:37   #1
Tomato Humper
 
Barewolf's Avatar
 
Join Date: Dec 2005
Location: Wilmslow, South Manchester
Age: 33
Services: Virgin 20Mb Broadband? Sometimes
Posts: 1,522
Barewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to behold
Send a message via MSN to Barewolf
Question 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
Barewolf is offline   Reply With Quote
Old 01-05-2007, 23:41   #2
Don't fear the reaper...
 
Druchii's Avatar
 
Join Date: Mar 2006
Location: Oslo, Norway.
Services: Get.no 26Mb/3Mb Cable
Posts: 6,460
Druchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronze
Druchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronze
Send a message via Skype™ to Druchii
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
Druchii is offline   Reply With Quote
Old 01-05-2007, 23:44   #3
Hello !
 
Halcyon's Avatar
 
Join Date: Mar 2004
Location: East Midlands
Services: VMedia 2mb
Posts: 10,810
Halcyon has a nice shiny starHalcyon has a nice shiny starHalcyon has a nice shiny starHalcyon has a nice shiny starHalcyon has a nice shiny star
Halcyon has a nice shiny starHalcyon has a nice shiny starHalcyon has a nice shiny starHalcyon has a nice shiny starHalcyon has a nice shiny starHalcyon has a nice shiny starHalcyon has a nice shiny star
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>
__________________
Halcyon is offline   Reply With Quote
Old 01-05-2007, 23:49   #4
Tomato Humper
 
Barewolf's Avatar
 
Join Date: Dec 2005
Location: Wilmslow, South Manchester
Age: 33
Services: Virgin 20Mb Broadband? Sometimes
Posts: 1,522
Barewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to behold
Send a message via MSN to Barewolf
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
Barewolf is offline   Reply With Quote
Old 01-05-2007, 23:51   #5
Don't fear the reaper...
 
Druchii's Avatar
 
Join Date: Mar 2006
Location: Oslo, Norway.
Services: Get.no 26Mb/3Mb Cable
Posts: 6,460
Druchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronze
Druchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronzeDruchii is cast in bronze
Send a message via Skype™ to Druchii
Re: Javascript text centered & Bigger

Quote:
Originally Posted by Barewolf View Post
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
Druchii is offline   Reply With Quote
Old 01-05-2007, 23:54   #6
Tomato Humper
 
Barewolf's Avatar
 
Join Date: Dec 2005
Location: Wilmslow, South Manchester
Age: 33
Services: Virgin 20Mb Broadband? Sometimes
Posts: 1,522
Barewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to beholdBarewolf is a splendid one to behold
Send a message via MSN to Barewolf
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
Barewolf is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 01:55.


Links
Google
 
Web www.cableforum.co.uk


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
Copyright © 2003 - 2008, Cable Forum.
(s204569790.onlinehome.info)