Hi, I'm very new to Joomla!, and have been introduced to the party freak extension of K2, which includes a font resizing option (increase, default and decrease).
My question is, does anyone know how to make it so when i click a link (or navigate a website) within the site, how to keep the font the new size that was selected?
Currently, every time a new section of the web page is loaded, the font is reverted to default and the buttons have to be pressed again.
Like I said, I'm new to Joomla! (but have picked it up fairly quickly) and even less experienced with java script.
As far as I can tell, this is the JavaScript that does the job so far.
if($('fontDecrease')) {
$('fontDecrease').addEvent('click', function(e){
new Event(e).stop();
$$('.itemFullText').removeClass('largerFontSize');
$$('.itemFullText').addClass('smallerFontSize');
});
}
if($('fontIncrease')) {
$('fontIncrease').addEvent('click', function(e){
new Event(e).stop();
$$('.itemFullText').removeClass('smallerFontSize');
$$('.itemFullText').addClass('largerFontSize');
});
}
Needless to say I don't understand how/what is going on here, or how to make it do what I'v said I need.
Thanks for any and all help ;)
Take care.