Click to See Complete Forum and Search --> : function call on if


pretpat
12-28-2003, 08:03 AM
okay... I know this shouldn't be hard but I just can't get it to work. I have a function to get someones resolution.
resolution=(window.screen.width + "x" + window.screen.height)!="800x600"; if (resolution).........
here i want to call a funtion named initpanel(ID,1)

Help would be greatly appreciated

fredmv
12-28-2003, 08:17 AM
<script type="text/javascript">
//<![CDATA[
if(screen.width + 'x' + screen.height != '800x600') initpanel(ID, 1);
//]]>
</script>

pretpat
12-28-2003, 09:09 AM
thanx fred!!

fredmv
12-28-2003, 10:07 AM
You're welcome. ;)