页面头部
JS代码在body前面加上以下HTML源代码
<script type="text/javascript">
try {var urlhash = window.location.hash;if (!urlhash.match("fromapp"))
{if ((navigator.userAgent.match(/(ipod|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i)))
{window.location="`http://m.czwzgs.com/`";}}}
catch(err)
{
}</script>
<meta name="mobile-agent" content="format=xhtml;url=`http://m.czwzgs.com/`">
列表页
动态页:http://m.czwzgs.com/e/action/ListInfo/?classid=[!--self.classid--]
静态页:http://m.czwzgs.com<?$r['classid']=$GLOBALS[navclassid];$classurl=sys_ReturnBqClassname($r,9);echo $classurl;?>
内容页
动态页:http://m.czwzgs.com/e/action/ShowInfo.php?classid=[!--classid--]&id=[!--id--]
静态页:http://m.czwzgs.com[!--titleurl--]
分成动态与静态页面,可自行选择更换czwzgs.com为自己的子域名。