zmimi83
Junior Member   Posts: 20 Registered: 9/20/2004 Status: Offline
|
posted on 1/12/2006 at 09:17 AM |
Hi everybody !
If I create 3 different AT themes according to 3 different screen
resolution, is it possible to redirect from a JS script ?
Many thanks for the help !!!
[Edited on 12/1/2006 by zmimi83] |
| |
| |
Shawn
Administrator   Posts: 4536 Registered: 10/7/2002 Status: Online
|
posted on 1/12/2006 at 11:24 AM |
If anyone has the JavaScript to get the screen resolution, then this may be
an easy Extra for me to build.
-Shawn |
| |
zmimi83
Junior Member   Posts: 20 Registered: 9/20/2004 Status: Offline
|
posted on 1/12/2006 at 12:07 PM |
Hi Shawn,
Here is the JS code I've found :
<html>
<body>
<SCRIPT LANGUAGE="JavaScript1.2">
var largeur=screen.width
var hauteur=screen.height
if(largeur==640 && hauteur==480) {url="page640.htm";}
else if(largeur==800 && hauteur==600) {url="page800.htm";}
else if(largeur==1024 && hauteur==768) {url="page1024.htm";}
else if(largeur==1280 && hauteur==1024) {url="page1280.htm";}
else {url="http://www.jeffprod.com";}
window.location.replace(url);
</SCRIPT>
</body>
</html>
Is it usefull ???
Many thanks !!
|
| |
jstuckemeyer
Moderator   Posts: 579 Registered: 12/29/2003 Status: Offline
|
posted on 2/28/2006 at 01:22 PM |
| It would be cool to have a theme header image function where you could
choose one of several theme headers depending upon the screen resolution. ____________________ Visit http://www.AutoThemes.com - Over 750 free and
custom Autothemes! $6.95 Nuke hosting! http://www.autothemes.com/host/index.php Need
templates to convert to AT? Try http://www.templatetimes.com |
| |