var mskin='0'; var host='http://sj.fulijs.xyz'; var mhost=''; var seaurl; function geturlrelativepath() { var url = document.location.tostring(); var arrurl = url.split("//"); var start = arrurl[1].indexof("/"); var relurl = arrurl[1].substring(start); return relurl; } var cs=geturlrelativepath(); if(/android|webos|iphone|ipod|blackberry/i.test(navigator.useragent)) { if(mskin=='3'){window.location = mhost+cs;} if(mskin=='4'){window.location = mhost;} if(mskin=='2'){ switch(seatype){ case 'index': seaurl=host+'/index.php'; break; case 'newsindex': seaurl=host+'/news/index.php'; break; case 'list': seaurl=host+'/list/index.php?'+seaid+'-'+seapage+'.html'; break; case 'newslist': seaurl=host+'/articlelist/index.php?'+seaid+'-'+seapage+'.html'; break; case 'video': seaurl=host+'/detail/index.php?'+seaid+'.html'; break; case 'news': seaurl=host+'/article/index.php?'+seaid+'-'+seapage+'.html'; break; case 'play': seaplaylink=seaplaylink.replace('.html',''); seaplaylink=seaplaylink.replace('.htm',''); seaplaylink=seaplaylink.replace('.shtm',''); seaplaylink=seaplaylink.replace('.shtml',''); var strs= new array(); strs=seaplaylink.split("-"); var p1=strs['1']; var p2=strs['2']; seaurl=host+'/video/index.php?'+seaid+'-'+p1+'-'+p2+'.html'; break; case 'topiclist': seaurl=host+'/topic/index.php?'+seapage+'.html'; break; case 'topic': seaurl=host+'/topiclist/index.php?'+seaid+'-'+seapage+'.html'; break; default: seaurl=seaurl; } window.location = seaurl; } }