Đang Thực Hiện

mobile site redirect

Hia, we have done a mobile website for our client and require some kind of code / script to enable us to have a redirect to the mobile site if mobile device detected.

We have already got some script to do this which directs to the mobile version...BUT when the user clicks to view the main website the redirect kicks in again and automatically shows mobile version again.

so we need to amend the script so that if they do click view main website it doesnt redirect them again to mobile.

the code we used that was to go into the main site header (which works great) was...

<script type="text/javascript">// <![CDATA[

var mobile = (/iphone|ipod|android|blackberry|mini|windows\sce|palm/[url removed, login to view]([url removed, login to view]()));

if (mobile) {

[url removed, login to view] = "URL to mobile site goes here";

}

// ]]></script>

Kỹ năng: HTML, Javascript

Xem thêm: javascript mobile device redirect, test mobile site, test blackberry, redirect site mobile device detected, redirect mobile site javascript, sce, mobile site html, go mobile, mobile html redirect code, android mini, html mobile document, html mobile redirect code, redirect code, mini document, mini android, redirect url code, version mobile, mobile device website, mobile site redirect script, html useragent, html mini, android mobile website, text blackberry, mobile website html redirect, mobile site url

Về Bên Thuê:
( 30 nhận xét ) St.Annes, United Kingdom

Mã Dự Án: #1654781

Đã trao cho:

sam45

can do it very quickly!

$30 USD trong 0 ngày
(66 Đánh Giá)
5.9

3 freelancer đang chào giá trung bình $33 cho công việc này

expertonphp

HELLO, I CAN HELP YOU. THANKS!

$30 USD trong 1 ngày
(74 Đánh Giá)
5.9
shinydgn

Lets do it now

$40 USD trong 0 ngày
(26 Đánh Giá)
4.9