
Welcome Guest
|
#1
|
||||
|
||||
|
I've been trying to find a good, and simple way to Redirect Mobile Devices ...
So far this is the best I could come up with ... Does anyone have any idea on how to do this in PHP? Code:
<script type="text/javascript">
function browsercheck(){
var b=navigator.userAgent.toLowerCase();
namen=["android","iphone","mobile"];
for(var c=namen.length,a=0;a<c;a++)
if(-1<b.indexOf(namen[a].toLowerCase()))return!0;return!1
};
browsercheck()?
window.location = "YES_Mobile_Devices.html"
:
window.location = "NO_Mobile_Devices.html"
;
</script>
__________________
There are dangers to being self aware, the realization that you are not the first. aA+(1-a)B Last edited by m. allen west : 07-20-2012 at 05:35 PM |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The Ultimate Guide to Understanding Advanced Video Delivery with AIR for Mobile | FlashMove | AIR |
0 | 02-07-2012 01:13 PM |
| Adobe to cease developing mobile Flash plugin for Android and Blackberry PlayBook | FlashMove | Chit Chat Lobby | 2 | 11-11-2011 12:16 AM |
| The News From Adobe on the Future of Flash Platform | FlashMove | Chit Chat Lobby | 0 | 11-10-2011 09:55 AM |
| Take a look at how the accelerometer works for mobile devices using Flash in this video with evangelist Paul Trani | FlashMove | Mobile Games and Apps | 0 | 08-20-2011 02:35 AM |
| Pokemon Game launching on mobile devices | Miza | Mobile Games and Apps | 1 | 07-06-2011 01:22 PM |

Commune




