Code Snippets

CSS pseudoclass :hover for IE

2010/05/26 | Permalink | Comment?

IE6 and IE7 in quirks mode don’t support :hover pseudoclass for non-anchor (<a>) elements.

This little css trick can workaround the problem (example on a <tr> element):

tr { background: #ffffff; hover:expression(this.onmouseover=new Function("this.style.background='#ff0000';"),this.onmouseout=new Function("this.style.background='#ffffff';")); }
tr:hover { background:#ff0000; }

First line define background color for generic <tr> element and implement hover behaviour for IE, second line catch hover for standard-compliant browsers.

Share and Enjoy:
  • Tumblr
  • Twitter
  • FriendFeed
  • Digg
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • RSS
Tags: , ,

Bookmarks

ZURB jQuery Annotation Plugin

| Permalink | Comment?

The ZURB jQuery Annotation is a useful plugin for easily annotate (and afterwards retrieve) position of user-defined points on an image.

via ZURB Playground – ZURB.com

Share and Enjoy:
  • Tumblr
  • Twitter
  • FriendFeed
  • Digg
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • RSS
Tags: , , ,

Bookmarks

Complete reference to HTML5 video tag

2010/05/25 | Permalink | Comment?

Dive into HTML5 video, now with WebM compatibility tables and a WebM encoding guide:

Via Video on the Web – Dive Into HTML5.

Share and Enjoy:
  • Tumblr
  • Twitter
  • FriendFeed
  • Digg
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • RSS
Tags: ,

» Next Entries