<script type="text/javascript">
function iPhoneAlert() {
if((navigator.userAgent.match(/iPhone/i))||(navigator.userAgent. match(/iPod/i)))
{
var question = confirm(”Would you like to view the iPhone site?”)
if (question){
window.location = “http://m.localhost:8080/web/<span class="Apple-style-span" style="font-family: monospace;">guest/home</span><span class="Apple-style-span" style="font-family: monospace;">”; </span>
}else{
window.location = “http://localhost:8080/web/guest/home<span class="Apple-style-span" style="font-family: monospace;">”; </span>
} } }
</script>

OR

<script type="text/javascript">
<!--
if (screen.width <= 699) {

window.location = “http://m.localhost:8080/web/guest/home”;

}
//-->
</script>

OR

<script language=javascript>
<!--
if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
   location.replace("http://m.localhost:8080/web/guest/home<span class="Apple-style-span" style="font-family: monospace;">");</span>
}
-->
</script>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: