Well, Yes...
you have to stick to JavaScript + JavaScript and not JavaScript + PHP!
You can let PHP talk w/ JavaScript and not the reverse!
<SCRIPT LANGUAGE="JavaScript" type="text">
if (screen.width >= 1024) {
var resolution = "1024";
} else {
var resolution = "800";
}
document.write(resolution);
</SCRIPT>
btw, why don't you like it?
"Fredrik A. Takle" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This fixed it, but I don't like it! If you have any other suggestions,
feel
> free to email me.
>
> <SCRIPT LANGUAGE="JavaScript">
> if (screen.width >= 1024) {
> var resolution = ("1024")
> } else {
> var resolution = ("800")
> }
> </SCRIPT>
>
> Best Regards
> Fredrik A. Takle
>
> "Fredrik A
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]