<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js" type="text/javascript"> </script>
<script type="text/javascript" src="detectmobilebrowser.js"> </script>


This is the code in the .js file that you'd change to whatever URL you want them to go to (in this case it's going to our campus map mobile page):

 if(jQuery.browser.mobile){    window.location = "http://wordpress.spfldcol.edu/CampusMaps/mobile/";   }

or

this code....

<!--media query to gor to maller page-->   <script type="text/javascript">   	
<!--   	if (screen.width <= 500) {   		window.location = "ymobile.html";   	}   	//-->   </script>>