NX_NULL
Banned - Multiple Rules Violations
- Dec 31, 2008
- 717
- 930
I want to change the URL on my page when I receive traffic from mobile users.
so when users from mobile device enter my page I want to change This link from :
to
I use this script for finding out mobile users
if its a mobile device it redirect to example.com, But i dont want to redirect I want to change URL on web page.
rep and thanks will be given to any one help
thanks
so when users from mobile device enter my page I want to change This link from :
Code:
<a class="checkout_link" title="Checkout" href="Desktop_checkout.php">Checkout</a>
to
Code:
<a class="checkout_link" title="Checkout" href="Mobile_checkout.php">Checkout</a>
I use this script for finding out mobile users
Code:
<script type="text/javascript">// <![CDATA[
var mobile = (/iphone|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
if (mobile) {
document.location = "http://www.example.com";
}
// ]]></script>
if its a mobile device it redirect to example.com, But i dont want to redirect I want to change URL on web page.
rep and thanks will be given to any one help
thanks