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.
[ad]
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!
nice post, friend.please come to my blog to see MY picture and friend [http://girly-photo.blogspot.com/]
Very nice info.i hope you come to my blog here Kampanye Damai Pemilu indonesia 2009
Your site is very good, will ever read!
Thanks
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.
[...] iPhone Webtricks [...]