Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Enlarge text with a javascript link..how??

Reply
Thread Tools

Enlarge text with a javascript link..how??

 
 
chris
Guest
Posts: n/a
 
      09-30-2003
Hi,

I need to add a text or image link which when click on will enlarge
the text on a web page to ither large or largest.

How can I do this, if its possible.

Chris
 
Reply With Quote
 
 
 
 
Lasse Reichstein Nielsen
Guest
Posts: n/a
 
      09-30-2003
http://www.velocityreviews.com/forums/(E-Mail Removed) (chris) writes:

> I need to add a text or image link which when click on will enlarge
> the text on a web page to ither large or largest.


<input type="button" onclick="document.body.style.fontSize = '120%'"
value="Larger">
<input type="button" onclick="document.body.style.fontSize = '144%'"
value="Largest">

Remeber to only use relative sizing on the font sizes you set
yourself, then a larger font size for the body element will be
inherited for the entire page.

/L
--
Lasse Reichstein Nielsen - (E-Mail Removed)
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
 
Reply With Quote
 
 
 
Reply

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enlarge Text in Thunderbird/Earlybird? Justin Firefox 2 11-15-2012 04:06 AM
You can enlarge a tire but you can't enlarge a photo =?iso-8859-1?Q?mark=5Fdigital=A9?= Digital Photography 11 03-08-2006 03:10 AM
How to enlarge Yahoo Chatroom window? Elliott Graham Computer Support 2 07-02-2004 10:12 PM
Icons And Things ENLARGE! Atariki\(riki\) Pole Computer Support 2 10-18-2003 06:27 AM
enlarge control panel listings randy hodge Microsoft Certification 2 07-18-2003 06:38 AM



Advertisments