Closed Thread Icon

Preserved Topic: Document Size......Help meeeeeeee!!!!!!!!!! (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18062" title="Pages that link to Preserved Topic: Document Size......Help meeeeeeee!!!!!!!!!! (Page 1 of 1)" rel="nofollow" >Preserved Topic: Document Size......Help meeeeeeee!!!!!!!!!! <span class="small">(Page 1 of 1)</span>\

 
Corky2001
Nervous Wreck (II) Inmate

From: man, i wish i knew
Insane since: Jan 2001

posted posted 05-06-2001 20:38

If you go to the tutorials section of Thomas Brattli's site ( www.bratta.com ) , the last one is called "DocumentSize".
Now in that, Thomas has used a clever script to return the resolution of the viewer's monitor, and also of the EXACT size of the browser window.

He has given the code there, but HOW DO I USE the code (he himself mentions something that the code is in the HEAD tag, while the result is from the BODY tag.

I'm absolutley new at all this; i just want to use the script to tell me viewers their resolution, and their browser window size.

HOW DO I DO IT?????? details PLEASE

bet ya i seem like a jerk

[This message has been edited by Corky2001 (edited 05-07-2001).]

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 05-07-2001 19:54

Corky, I've deleted your second post with the same content, because double-posting is not a good way to get attention...

Anyway, I don't have time to go through Bratta's script, but here's a quick example how you can show screen resolution. Insert the following code where you want that info to appear:

<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!-- ;
document.write("Your screen resolution:" + screen.width + " x " + screen.height);
// -->
</SCRIPT>

kars10
Bipolar (III) Inmate

From: Europe
Insane since: Mar 2001

posted posted 05-10-2001 16:22

ok, i know brattas scripts a little.
the Javascript part (verything in between <script> and </script>
can be put between <head> and </head>
The rest of it goes into the body tags!
k10

Corky2001
Nervous Wreck (II) Inmate

From: man, i wish i knew
Insane since: Jan 2001

posted posted 05-24-2001 17:32

Hey Mr.Max.

Thanks for the help. Sorry I had a double post.... i told you, i'm kinda new with all this and my first post didn't appear so i thought i should repost it.

Anyway, thanks, and you too k10

bet ya i seem like a jerk

« BackwardsOnwards »

Show Forum Drop Down Menu