Menu
Hi,
i want a tool to find out the screen.width of your Browser and give up an “php variable” after the right resolution
Example:
<SCRIPT language=”JavaScript”>
if (screen.width >= “1001”) $screen=1;
if (screen.width <= “1000”) $screen=0;
</script>
“screen” = the PHP Variable
—> PHP Script:
<? PHP
echo $screen;
?>
.. if the resolution over 1000, screen must be 1 and otherwise screen must be 0.
The problem: the Javascript dosent work. And the variable “screen” in the JS script dosent convert to an php variable.
THX a lot
warli