dinsdag 22 april 2008

I touch/phone

Did you know that, on the iPhone, you can do “mouse over” events in Safari, like on a regular computer?
If a link has an “hover” or “OnMouseOver” property, simply touch and hold the link for a couple seconds and you will see a “tooltip” pop up with the word “Action” in it. Now you can lift your finger and the “hover” action will be triggered.
This is extremely useful for sites like flickr, since you can use the drop-down menus like “You” or for adding people to your contacts…

iphone_hover_small.jpg
Left: keep your finger pressed to activate the “hover” action. Right: lift your finger to trigger the action.

Note that, when you do this on a link that has no “hover” properties, it simply shows you the regular link tooltip, that is the “title” or “alt” attribute value.
If the link has both an action and a title/alt associated to it, the tooltip will display both, as can be seen in the screenshot above.
This works both for JavaScript and CSS “hover” actions.
Note: I write “iPhone” because I own one, but there is no reason it shouldn’t work on an iPod touch.

Now, if someone knows a trick for doing “drag-and-drop”, that would be amazing…

Geen opmerkingen: