|
|||
|
Hi there, I'm working on a template for our new site using your template designer product, which has been an excellent purchase!
I'm wanting to add to the template, buttons that change the size of the text and also the contrast of the colours for people with viewing difficulties. I've seen this kind of feature on some Joomla sites and would love to add it to mine! Does anyone have any experience of these features and would they care to share? Cheers Leigh |
|
|||
|
HI I can explain the full code because it gets to long.
Here is the idea. 1. JavaScript 2. CSS files or code that overwritten via JavaScript write value to document. With just plain JavaScript you can change the properties of any HTML tag like the Body tag you can change the background color font size etc.. with an <a href="#" onclick= somefunction(); event added to the links like 50 80 100 percent page width. you have the CSS change to another if if X link is clicked. you will also need to write a cookie so that when the user clicks a link on the page the users choices of font and colors are remembered for that user. here is an example of a CSS switcher. Dynamic Drive DHTML Scripts- Style Sheet Switcher (v1.1) Good resource JavaScript Tutorial As for font sizes I personally think if needed to see a web page in a large font. I would have my browser setup that why and not have to wait for a web designer to think of me. Some stuff we web designers do is just nuts if you think about it. Anyway I hope that above links help you on your design. Cheers, Brian Last edited by admin; 01-12-2008 at 04:51 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|