User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 391,803 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,433 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

Changing text-size ???

Join Date: Jun 2006
Location: Berlin, Germany
Posts: 1
Reputation: Gizmologic is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Gizmologic Gizmologic is offline Offline
Newbie Poster

Re: Changing text-size ???

  #3  
Jun 19th, 2006
well as you just want to make some of your content sizeable there is an easy solution.
put a div tag arround that content and give it for example an ID
<div id="sizeable">center content</div>
Now put this javascript function into your head tag
<script language="JavaScript" type="text/javascript">
<!--             
function changeFontSize(thesize){
     var fontSizer = document.getElementById("sizeable");
           fontSizer.style["fontSize"] = thesize + "px";
}
//-->
</script>
now you have to call that function by using on those 3 Elements the onMouseDown="changeFontSize(30)" event handler.
find the font size you want by changing the value .. 30 is very big but good to check if it works.. gl
Reply With Quote  
All times are GMT -4. The time now is 5:27 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC