Hi all Im working on a small customhack for my site and so far have the follwing code so that a user hits an optimize link with the url "?styleid=$userstyle"
Anyways ive been at this all day sadly with no ftp access and am now trying to get my variable $mystyle back out in the navbar template so I can apply it works with the above stated style link
Ive added this to my php_include_start template
Code:
<script language="Javascript">
if ((screen.width>=1024) && (screen.height>=768))
{
<?
$userstyle ="22";
?>
}
else
{
<?
$userstyle ="21";
?>
}
</script>
Im getting nothing and the link shows as "?styleid= " anyhelp would be great as im quite new to using js in vbull