Main menu

Javascript font size + button

07 Oct
Published by Mark W. Breneman

Simple Bigger / smaller font size control.

<<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript"</span>>
function increase_font(){
if(document.getElementById('my_stylesheet').href != "big"){
document.getElementById('my_stylesheet').href = '/css/styles_big.css';
sendFontRequest('/js/act_change_fontsize.cfm', 'val=big');
}
}
function decrease_font(){
if(document.getElementById('my_stylesheet').href != "default"){
document.getElementById('my_stylesheet').href = '/css/styles.css';
sendFontRequest('/js/act_change_fontsize.cfm', 'val=default');
}
}
</<span class="end-tag">script</span>>
Meriter Patient & Visitor Center

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.