iPhone Webtricks

When creating a website specifically aimed at the iPhone, there are some cool things you can do to improve your visitor’s iPhone web-experience.

Show a movie
It’s very easy to add a movie to a webpage. But, if you put an image in there instead, and link to the movie, the movie will open in the iPhone’s videoplayer instead of Safari.

<embed src=”mymovie.jpg” href=”mymovie.mov” widt=”380″ height=”290″>

Link to a telephonenumber
To add a link to a telephonenumber on a webpage, that will automatically be dialled when clicked, use this code:

<a href=”tel:01234567890″>Tel: 01234567890</a>

Hide the statusbar
Safari gives you the opportunity to automatically hide the statusbar when your webpage is being loaded:

<script type=”text/javascript”>
window.onload=function(){
window.scrollTo(0,1);
}
</script>

Enjoy!

Related posts:

  1. Recognizing the iPhone for webpages As said in my 2009 predictions, the...
  2. Web app icon for iPhone By default, when you add a bookmark...
  3. 20+ iPhone Apps for Bloggers and such While Digging away through my shouts on...
  4. Changing the iPhone Homescreen layout. When you finally lay your hands on...
  5. Links of the week (Wk01/09) Especially for the beginning of the year,...

5 Responses to iPhone Webtricks
  1. MyPicture and friend
    February 23, 2009 | 8:38 am

    nice post, friend.please come to my blog to see MY picture and friend

  2. Kampanye Damai Pemilu Indonesia 2009
    February 23, 2009 | 3:00 pm

    Very nice info.i hope you come to my blog here Kampanye Damai Pemilu indonesia 2009

  3. Projetato
    May 4, 2009 | 2:54 pm

    Your site is very good, will ever read!
    Thanks

  4. F. Meissner
    June 17, 2009 | 11:03 pm

    Showing a movie not only improves user experience, it also improves the average time-on-site. This is a signal to google that your site is worthy of some attention, leading to better rankings.

Trackbacks/Pingbacks
  1. Read This Link » iPhone Webtricks
Leave a Reply


Wanting to leave an <em>phasis on your comment?

CommentLuv Enabled
Trackback URL http://www.icantinternet.org/2008/12/iphone-webtricks/trackback/

Bad Behavior has blocked 1931 access attempts in the last 7 days.