Differences

This shows you the differences between two versions of the page.

english:other-enhancements:mootools:fontsizer [2010/12/17 21:25]
Knut Heermann (flip-flop)
english:other-enhancements:mootools:fontsizer [2018/06/03 18:09] (current)
Line 1: Line 1:
 +{{indexmenu_n>10}}
====== Dynamic font resizing ====== ====== Dynamic font resizing ======
Line 74: Line 75:
===== JavaScript: ===== ===== JavaScript: =====
 +
 +Error correction 12.01.2011 KH:  [[https://github.com/mootools/mootools-core/wiki/Conversion-from-1.11-to-1.2-|Conversion from mootools 1.11 to mootools 1.2]]  
 +  * ##%%Cookie.set(key, value[, options]);%%## ---> ##%%Cookie.write(key, value[, options]);%%##
 +  * ##%%Cookie.remove(cookie[, options]);%%## ---> ##%%Cookie.dispose(cookie[, options]);%%##
 +
 +\\
 +**Folder:**  %%template/lib/mootools/plugin-1.2/%%
Line 149: Line 157:
fsize -= fsize_step; fsize -= fsize_step;
$( fsize_section ).setStyle('font-size', fsize+'em'); $( fsize_section ).setStyle('font-size', fsize+'em');
- Cookie.set( fsize_cookie , fsize, {duration: 365, path: '/'});+ Cookie.write( fsize_cookie , fsize, {duration: 365, path: '/'});
break; break;
Line 156: Line 164:
fsize += fsize_step; fsize += fsize_step;
$( fsize_section ).setStyle('font-size', fsize+'em'); $( fsize_section ).setStyle('font-size', fsize+'em');
- Cookie.set( fsize_cookie , fsize, {duration: 365, path: '/'});+ Cookie.write( fsize_cookie , fsize, {duration: 365, path: '/'});
break; break;
Line 165: Line 173:
case 'normal': case 'normal':
default: default:
- $( fsize_section ).setStyle('');+// $( fsize_section ).setStyle(''); // trouble with IE8 ???
fsize = 1; fsize = 1;
$( fsize_section ).setStyle('font-size', fsize+'em'); $( fsize_section ).setStyle('font-size', fsize+'em');
- Cookie.remove( fsize_cookie , {path: '/'});+ Cookie.dispose( fsize_cookie , {path: '/'});
document.location.href = document.location.href; document.location.href = document.location.href;
} }
english/other-enhancements/mootools/fontsizer.1292617502.txt.gz · Last modified: 2018/06/03 18:08 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0