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
all this is happening on the server. on the server $resolution is just a
string so if ($resolution = '1024') compares the two strings (using ascii
values) and finds that (60) is greater than 1(49). If you want the
server to know the screen width of the client you'll need to dig into the
header
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;
}
3 matches
Mail list logo