Re: Output (Urgent!)
| From: | Fredrik A. Takle | Date: | Tue, 17 Jul 2001 10:50:59 +0000 |
| Subject: | Re: Output (Urgent!) | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58249@lists.php.net to get a copy of this message | ||
Don't like it 'cause it is client-side, but it works fine!
...Fredrik:)
"Elias" <elias_bachaalany@yahoo.com> wrote in message
news:20010717100649.25727.qmail@pb1.pair.com...
> 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" <ftakle@online.no> wrote in message
> news:20010717085824.84803.qmail@pb1.pair.com...
> > 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
> >
> >
>
>