需要移动端转跳地址的在$intro=$ztr['intro'];下面增加$murl=$ztr['ztpath']; 在$listtemp=str_replace('[!--ztname--]',$ztname,$listtemp);下面增加$listtemp=str_replace('[!--murl--]',$murl,$listtemp); 使用[!--murl--]调用本专题连接, 如: <script type="text/javascript"> (function(){var ua=navigator.userAgent.toLowerCase();var bIsIpad=ua.match(/ipad/i)=="ipad";var bIsIphoneOs=ua.match(/iphone os/i)=="iphone os";var bIsAndroid=ua.match(/android/i)=="android";var bIsWM=ua.match(/windows mobile/i)=="windows mobile";if(bIsIpad||bIsIphoneOs||bIsAndroid||bIsWM){window.location.href="http://m.kun588.com/[!--murl--]/"}})(); </script>
|