Lively discussions on the graphic arts and publishing — in print or on the web

Go Back   Desktop Publishing Forum > General Discussions > Web Site Building & Maintenance

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 09-06-2006, 11:30 AM   #4
John Woram
Join Date: Aug 2005
Posts: 28

Would this do what you want?
<script type="text/javascript">
function resize(k){
switch (k){
case 1: document.getElementById('changeSize').style.fontSize="150%"; break;
case 2: document.getElementById('changeSize').style.fontSize="75%"; break;
<p><a href="javascript:resize(1)">Bigger</a></p>
<p><a href="javascript:resize(2)">Smaller</a></p>
<p id="changeSize">This is a test paragraph</p>
Hmmm, when I preview this, I see ".fontSi" and "ze" with a space between them that of course shouldn't be there.

Last edited by ktinkel; 09-06-2006 at 01:23 PM. Reason: add CODE & /CODE to format the text
John Woram is offline   Reply With Quote

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font site, Flash movie, free font ktinkel Fonts & Typography 2 12-03-2006 12:17 PM
Font ID please!! Dulce_Diesel Fonts & Typography 4 11-04-2006 11:08 AM
Font Sizes in <font> or CSS dthomsen8 Web Site Building & Maintenance 10 02-27-2006 05:14 AM
Font "activation" by font managers lindaniel Fonts & Typography 5 07-02-2005 11:39 AM
Font Management: Font Agent Pro michelen Fonts & Typography 13 03-25-2005 09:25 AM

All times are GMT -8. The time now is 11:56 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Contents copyright 2004–2018 Desktop Publishing Forum and its members.