Kaie"s Blog 2.0 beta!
Back to "Top"

My Secret Notebook
 Show "Table of Contents"
Contact Me
Subscribe to my Posts feed
Subscribe to my Comments feed
My Flickr
Back to "Top"
My Secret Notebook
 Show "Table of Contents"
Contact Me
Subscribe to my Posts feed
Subscribe to my Comments feed
My Flickr

Wednesday, May 14, 2008

[CSS/htc] whatever:hove for IE

  當你遇到要在IE6上支援簡單不過的:hover事件時,發現這個大多數人使用的Browser竟然只能在<a> tag上使用:hover 囧囧囧...但是,IE有支援了一種所謂的 .htc 或 .hta 之類的behaviors檔,可以讓你針對某些Element在遇到某些事件發生時,反應出你所定義的行為。在IE6還沒消失在地球上之前,趕緊作個記錄,以後有機會用到。
※資料來源: Whatever:hover

※Online Demo: 官網: http://www.xs4all.nl/~peterned/examples/cssmenu.html
這個站,真是將whatever:hover使用的淋漓盡致呀 : http://4umi.com/web/css/hover.php

2 Comments:

Who: Anonymous Class:
When: August 31, 2008 6:43 AM  

Hi Kaie, what is the code to show the class icon of the author's comment?
Example: Author | Class Icon | Date
Thanks



(div class='commentelem')
(a expr:name='"comment-" + data:comment.id'/)
(b:if cond='data:comment.authorUrl')
(a expr:href='data:comment.authorUrl' rel='nofollow')(data:comment.author/)(/a)
(b:else/)
(data:comment.author/)
(/b:if)

|(**********HERE************)|

(span class='comment-timestamp')
(a expr:href='"#comment-" + data:comment.id' title='comment permalink')
(data:comment.timestamp/)
(/a)
(b:include data='comment' name='commentDeleteIcon'/)
(/span)

Who: Unknown Class:
When: August 31, 2008 12:21 PM  

To Anonymous:
You should refer to this post ^_^
http://chenkaie.blogspot.com/2007/12/blogger-openid-commenting-openid.html

in the above post, it mentions that replce
--
<dt expr:class='comment-author' expr:id='data:comment.anchorName'>
--
with
--
<dt expr:class='"comment-author " + data:comment.authorClass' expr:id='data:comment.anchorName'>
--