View Single Post
  #4  
Old 08-09-2006, 02:57 PM
 
lachild lachild is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 92
 

Default

According to the documentation you should be able to pass this to the script...

Code:
<SCRIPT language="JavaScript"> <!-- if ((screen.width>=1024) && (screen.height>=768)) { window.location="home.php?res=high"; } else { window.location="lowres.html?res=low"; } //--> </SCRIPT>

Then what I would do is right above this line in home.php

Code:
# # Assign Smarty variables and show template # $smarty->assign("main","catalog");

I might write something like this:

Code:
$res = $_GET['res']; $smarty->assign("res", $res);

Then you should be able to use...

{if $res eq 'high'}
Some Code Here
{else}
Some More code Here
{/if}
__________________
Westin Shafer
Come Together Technologies
http://www.ComeTogetherTechnologies.com
Reply With Quote