Results 1 to 3 of 3
Discuss Optimizing my website for Mobile Safari - or redirecting at the General - Hackint0sh.org; Does anyone know if its possible to add some HTML code to the index.html file ...
  1. #1
    Advanced Array

    Join Date
    Oct 2007
    Posts
    35
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Optimizing my website for Mobile Safari - or redirecting

    Does anyone know if its possible to add some HTML code to the index.html file of my website (or perhaps adding a script or plug-in or something to the root folder of my site) that would recognize if the person visiting the site is using mobile safari on an iPhone ~ and if they are, it would redirect them to an alternate web page of my choosing...

    In short, I am a photographer and my website (which showcases my photographs) is heavily reliant upon Flash, which as we all know, the iPhone obviously doesn't support. Visiting my website on my iPhone doesn't work at all, and just brings visitors to a page displaying the background color of my site...

    As a solution to this issue, I would like to know how I can redirect mobile safari users to my .mac iPhoto gallery index page if they attempt to visit my website via an iPhone...

    Any ideas about this?



  2. #2
    Developer Array The_Real_BigBuckz's Avatar

    Join Date
    Jan 2008
    Posts
    251
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    32

    Default

    <script language=javascript>
    <!--
    if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
    {
    location.replace("REDIRECT LINK HERE");
    }
    -->
    </script>

  3. #3
    Advanced Array

    Join Date
    Oct 2007
    Posts
    35
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I added the following to my website and it now redirects just as I'd intended!!

    Code:
    <script language=javascript>
    <!--
    if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
    {
    location.replace("*REDIRECT LINK HERE*");
    }
    -->
    </script>
    Does anyone know how I would go about adding a webclip icon to my .Mac Photo Gallery web page so that adding a web clip of the gallery to my iPhone would show a icon graphic icon of my choosing? I know the specs of how to create one of these icons, I just don't know how/where to put it for my .Mac photo gallery...

    Any thoughts?

 

 

Similar Threads

  1. Replies: 0
    Last Post: 06-19-2011, 04:50 AM
  2. MacNN: Windows Mobile app store just a website?
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 03-09-2009, 04:00 PM
  3. MacNN: Safari+ brings desktop features to Mobile Safari
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 01-01-2009, 01:50 AM
  4. MacNN: T-Mobile accidentally shows G1 on website
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 09-19-2008, 10:50 PM
  5. [T-Mobile] Updating phone info on website
    By spec09 in forum General
    Replies: 4
    Last Post: 08-28-2008, 04:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 07:06 AM.
twitter, follow us!