En cours

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>

Compétences : HTML, Javascript

Voir plus : javascript mobile device redirect, test mobile site, test blackberry, redirect mobile site javascript, sce, mobile site html, go mobile, mobile html redirect code, android mini, html mobile redirect code, redirect code, 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, android test code, code location android, blackberry mobile location

Concernant l'employeur :
( 30 commentaires ) St.Annes, United Kingdom

N° du projet : #1654781

Décerné à :

sam45

can do it very quickly!

30 $ USD en 0 jours
(66 Commentaires)
5.9

3 freelance ont fait une offre moyenne de 33 $ pour ce travail

expertonphp

HELLO, I CAN HELP YOU. THANKS!

30 $ USD en 1 jour
(74 Commentaires)
5.9
shinydgn

Lets do it now

40 $ USD en 0 jours
(26 Commentaires)
4.9