Spidean  

The home of the AutoTheme HTML Theme System: PHP-Nuke Themes, phpNuke Themes, PostNuke Themes, Zikula Themes, Platinum Nuke Themes, Nuke Evolution Themes, Smeego Themes

 
 
Pinnacle of Excellence  

FAQ

SUPPORT

THEMES

TEMPLATES

   
   

   
Main Menu

Purchase AutoTheme
Buy Now
 
Welcome Guest   Register | Log in



Spidean Forums
You are not logged in

 < Last Thread   Next Thread >Ascending sortDescending sorting  New Topic  Post Reply
Author: Subject: Redirect to an AT theme according to the resolution of the screen

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]

 
Reply With Quote

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

 
Reply With Quote

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 !!


 
Reply With Quote

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

 
Reply With Quote
New Topic    Post Reply


Powered by XForum 1.81 by Trollix Software

Printer Friendly Page Printer Friendly Page 
         



AutoTheme is an HTML Theme System currently supporting the Zikula, PostNuke, PHP-Nuke, MD-Pro Content Management Systems (CMS) and derivative Nukes, osCommerce and CRE Loaded shopping carts and the Wordpress blog.

PHP-Nuke Themes, PostNuke Themes, Zikula Themes, WordPress Themes, osCommerce Templates, CRE Loaded Templates, osCommerce Themes, CRE Loaded Themes

Copyright © 2002-2008 Shawn McKenzie and Spidean. Content on this site may not be reproduced in any form without prior written consent.

Syndicate our news  | Google Sitemap

Terms of Use  |  Privacy Policy  |  Credits


AutoTheme   Built with AutoTheme   Enhanced by AutoTheme   Powered by AutoTheme

Valid HTML 4.01!   Valid CSS!
Powered by the AutoTheme HTML Theme System
Page created in 0.100066 Seconds