
原先网站是flash制作的首页,随着进入移动互联网时代,移动客户端几乎都不支持flash,那么就有2个解决方法:一是全部用jQuery之类的方法重做首页,另一种就是在建立一个简化版的移动版首页。
如果用后一种方法,那么在原首页上就需要判断是否是移动端,找了一个js,达到了这个效果。
将文件uaredirect.js ,放入你网站。
在首页中head标签内加入2句js语句:
<script src="http://你的网站/uaredirect.js" type="text/javascript"></script>
<script type="text/javascript">uaredirect("你想跳转的网址");</script>
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
These cookies are needed for adding comments on this website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com
You can find more information in our Cookie Policy and Cookie Policy.