 2009-03-24 19:19 | The text size option always come up in the largest setting on every page. how do I set it to come up in the middle setting by default?
Also, home page is smaller font than all other pages, why? » Quick.Cms v2.xKen Catto |
 2009-03-24 21:10 | prodesk - in templates/default.css check these settings: #page .tS0, #product .tS0{font-size:0.92em;} #page .tS1, #product .tS1{font-size:1.08em;} #page .tS2, #product .tS2{font-size:1.33em;}
and in core/common.js you'll find this function down at the bottom: function txtSize( iSize ) cgan |
 2009-03-26 07:39 | Thanks cgan, but it all looks like it shoudl be using the middle size as the default to me...
#page .tS{float:right;margin:0 0 3px;} #page .tS a{padding:0 1px;background:inherit;color:#222;font-weight:bold;text-decoration:none;} #page .tS0{font-size:0.917em;} #page .tS1{font-size:1.083em;} #page .tS2{font-size:1.333em;}
the value in core/common.js is set to:
function txtSize( iSize ){ var aSizes = Array( '0.917em', '', '1.333em' ); var aChange = Array( 'pageDescription', 'h5' ); var aSizesDefault = Array( '1.083em', '1em' ); for( var i = 0; i < aChange.length; i++ ){ if( !aSizes[iSize] ) iSize = 1; if( gEBI( aChange[i] ) ){ gEBI( aChange[i] ).style.fontSize = ( iSize != 1 ) ? aSizes[iSize] : aSizesDefault[i]; } else if( gEBI( 'content' ).getElementsByTagName( aChange[i] ) ){ aH5 = gEBI( 'content' ).getElementsByTagName( aChange[i] ); for( var j = 0; j < aH5.length; j++ ){ aH5[j].style.fontSize = ( iSize != 1 ) ? aSizes[iSize] : aSizesDefault[i];
on't understand what is keeping it from working properly, but then I'm not a JavaScript person by any means... Ken Catto |