View Single Post
  #132  
Old 12-20-2011, 09:36 AM
  Yalokin's Avatar 
Yalokin Yalokin is offline
 

Advanced Member
  
Join Date: Sep 2009
Location: New York USA
Posts: 75
 

Default Re: common if/then modifications I make to x-cart...

Hello did you figure this out.

I try to do the same but with more scripts and css.

Also how to define page in if/else if it custom.php for example.


thank you



Quote:
Originally Posted by anandat
I want if else statement for static page.
For example if visitor click on static page link. The following javascript should be load

Code:
<head> <script language="Javascript" src="http://gd.geobytes.com/Gd?after=-1"></script> <script language="javascript"> if(typeof(sGeobytesLocationCode)!="undefined"&&sGeobytesLocationCode.indexOf('US')==0) { document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://www.SomeDomain.com'>"); } </script> </head>

In short what if/else condition I should put between <head> </head> so that above javascript function load if person open static page id=1 ?
__________________
Reply With Quote