Hello. I am using the latest release (4.7) of Drupal. I would like to allow visitors to press a button to resize the font on any given page. I found a font resizer at this site, http://www.dyn-web.com/dhtml/sizefont/index.php, but do not know anything about php and have no idea how to integrate the code into my page template. I would like the words "increase" and "decrease" and "restore" to appear just above the right hand sidebar.
If someone would be so kind as to show me how to do this I would be very grateful. Thanks, david
Here is the relevant code that I need to insert in my template:
<div id="sizer">
<a href="" onclick="dw_fontSizerDX.adjust(2); return false">Increase</a> |
<a href="" onclick="dw_fontSizerDX.adjust(-2); return false">Decrease</a> |
<a href="" onclick="dw_fontSizerDX.reset(); return false">Restore</a>
</div>
Here is the template (chameleon.theme) I am using:
<?php
// $Id: chameleon.theme,v 1.43 2006/04/04 23:36:18 unconed Exp $
/**
* @file
* A slim, CSS-driven theme.
*/
function chameleon_features() {
return array(
'toggle_logo',
'toggle_favicon',
'toggle_name',
'toggle_slogan');
}
function chameleon_regions() {
return array(
'left' => t('left sidebar'),
'right' => t('right sidebar')
);
}
function chameleon_page($content) {