View Single Post
Old 06-03-2010, 08:17 PM  
epitome
So Fucking Lame
 
epitome's Avatar
 
Industry Role:
Join Date: Jun 2009
Location: St. Petersburg, FL
Posts: 12,156
Quote:
Originally Posted by kristin View Post
Sign into your topbucks account then the mobile program under sales tools ... Mobile redirection script fir webmasters in php, java or htaccess.


I would post the actual script but I'm on my phone posting.
Since she can't, I will.

Code:
<!--JAVASCRIPT MOBILE SITE REDIRECTION CODE-->
<script type="text/javascript">
MOBILE_URL = "http://redirecturlhere.com";

// Do not edit below
var WORDS = ["mobile", "htc", "blackberry", "j2me", "webos", "windows ce", "android", "nokia", "samsung", "LG", "palm", "PSP"];
var WLEN = WORDS.length;
for (var i = 0; i < WLEN; i++)
{
	var re = new RegExp(WORDS[i], "i");
	if (re.exec(navigator.userAgent))
	{	
		window.location = MOBILE_URL;
		break;
	}
}
</script>
Put that in your header...
epitome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote