Hi, I am having a javascript, that works in IE and not in firefox. I always get the error as below.
Error: changeTextSize is not defined Source File: javascript:changeTextSize(-1); Line: 1 Error: changeTextSize is not defined Source File: javascript:changeTextSize(1); Line: 1 This is the piece of code <script type="text/javascript" src="http://localhost/scripts/js/js_textresize.js"></script> <li><span>Change font size <a href="javascript:changeTextSize(-1);"><span title="Reduce Text Size" class="font_size_minus"> </span></a> <a href="javascript:changeTextSize(1);"><span title="Enlarge Text Size" class="font_size_plus"> </span></a></span></li> The changeTextSize function is within the js_textresize.js file. function changeTextSize(offset) { currentSize = currentSize + offset; if (currentSize >= sizes.length) { currentSize = sizes.length - 1; } if (currentSize < 0) { // don't underflow the sizes array currentSize = 0; } if (document.styleSheets[0].cssRules) { // Mozilla if (document.styleSheets[0].cssRules[0]) { setStyleMozilla(divStr); } } else if (document.styleSheets[0].rules) { // IE setStyleIE(divStr); } else { // do nothing for unrecognized browsers } document.cookie = 'textSize='+ currentSize + '; path=/; domain=' + sessionCookieDomain; } Can anyone please help on this? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327032 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

