PDA

View Full Version : Resolution Detect And Alert ?


acidikal
06-20-2002, 08:51 PM
I Know theres that popular script that will display a text parapragh of "Please change your reslution to etc."

But is it possible to create an alert, to make sure the user sees it?

x_goose_x
06-20-2002, 09:57 PM
alert("You screen resolution is "+screen.width+" by "+screen.height+" pixels.");

acidikal
07-02-2002, 06:39 AM
Could you possibly put it like it would look of I was to copy and paste it in, because I cant seem to get this to work.

Im so stupid :(

acidikal
07-02-2002, 06:40 AM
Just to make it clearer, i mean with the tags intact, or just say what tag to add it in, because i pasted that and it didnt work (in head and body)

pastorOfMuppets
07-02-2002, 06:47 AM
heres what u want

all javascript must be enclosed in <script> </script>

just add them then put any JS code in.

<script>

<!-- Hide this code if the users browser dosn't accept Javascript
alert("You screen resolution is "+screen.width+" by "+screen.height+".");
!-->
</script>