big-dog1965
09-18-2007, 07:56 AM
I have a .js file that a page refers to in IE seems to work but fire fox I get a couple of errors can someone help me with this.
Error: missing ; before statement for this
<style type="text/css">
html, body{
scrollbarArrowColor='black';
scrollbarBaseColor='#EBF5FF';
scrollbarDarkShadowColor='#3F3F3F';
scrollbarTrackColor='#F3F3F3';
scrollbarFaceColor='#EBF5FF';
scrollbarShadowColor='#EBF5FF';
scrollbarHighlightColor='#EBF5FF';
scrollbar3dLightColor='#78AAFF';
}
</style>
And Error: disableSelection is not defined for this. I have this in my page that links to the js file disableSelection(document.body)
<script type="text/javascript">
function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
target.style.MozUserSelect="none"
else //All other route (ie: Opera)
target.onmousedown=function(){return false}
target.style.cursor = "default"
}
//Sample usages
//disableSelection(document.body) //Disable text selection on entire body
</script>
Error: missing ; before statement for this
<style type="text/css">
html, body{
scrollbarArrowColor='black';
scrollbarBaseColor='#EBF5FF';
scrollbarDarkShadowColor='#3F3F3F';
scrollbarTrackColor='#F3F3F3';
scrollbarFaceColor='#EBF5FF';
scrollbarShadowColor='#EBF5FF';
scrollbarHighlightColor='#EBF5FF';
scrollbar3dLightColor='#78AAFF';
}
</style>
And Error: disableSelection is not defined for this. I have this in my page that links to the js file disableSelection(document.body)
<script type="text/javascript">
function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
target.style.MozUserSelect="none"
else //All other route (ie: Opera)
target.onmousedown=function(){return false}
target.style.cursor = "default"
}
//Sample usages
//disableSelection(document.body) //Disable text selection on entire body
</script>