Switch to mobile script

This script detrects if the visitor of your websites uses a smartphone. If so, the script automaticly switches to the mobile version of the website.

The button below performs a test of this script. If you opened this website using a smartphone, it should prompt "mobile". Otherwise it prompts "desktop".

Installeren

this script is easy to install:

Download the script

Click with the right mouse button on the link below and select the option "save target as". Save the file in the root folder of your website. The root folder is the folder in which the index.html, index.php or index.asp file is stored.

http://www.webapps-online.com/WBB/JSDivers/switch_to_mobile.js

Activate the script

Insert the following code in the head section of your website:

<script type="text/javascript" src="/switch_to_mobile.js"></script>
<script type="text/javascript">
vSwitchToMobile("http://test.mobile247.eu");
</script>

Replace "http://test.mobile247.eu" with the domain name of your website.

   submit to reddit     
Mobile 24/7 is een online platform van Content Power