Log in

View Full Version : Screen Resolution


DPSR
11-03-2006, 01:44 AM
Hello friends :)

I want to how can i set different styles for using different screen resolutions?

I want to set things like user on 800x600px resolution should see STYLE 1 as their default design

and users on 1024x768px (and above) resolution should see STYLE 2 as their default design

I searched at vbulletin.org yesterday and just found this java script. I tested it and it redirects very well but page keep on reloading ... no site appears :(:( it just keep on reloading the page :(

This is the js script-
<SCRIPT language="JavaScript">
<!--
if ((screen.width>=1024) && (screen.height>=768))
{
window.location="highres.html";
}
else
{
window.location="lowres.html";
}
//-->
</SCRIPT>

Can some one make this thing work or make it like <if condition="...? ?

Many thanks for your help guys :)



---====------=====--------U P D A T E-------======-------=====----
Problem solved myself, mods please close this thread :)

djilou
08-10-2007, 01:28 AM
How did you solve this?
thanks!

gforce75
08-10-2007, 01:37 AM
Hmm, I didn't know this was possible.