请查看http://www.schillmania.com/content/entries/2004/10/24/application-xhtml+xml/
每当鼠标指针悬停在右侧列上的每个链接上时,都会发出很小的“碰撞”声。
我检查了 CSS 中的链接,但没有发现任何相关内容。
这是怎么做到的?
请查看http://www.schillmania.com/content/entries/2004/10/24/application-xhtml+xml/
每当鼠标指针悬停在右侧列上的每个链接上时,都会发出很小的“碰撞”声。
我检查了 CSS 中的链接,但没有发现任何相关内容。
这是怎么做到的?
使用 Google Chrome,我右键单击其中一个<li>
“颠簸”并选择Inspect Element。
从那里,我选择了Event Listeners > mouseover
> div#right
。
节目listenerBody
如下:
$('right').onmouseover = function(e) {
// so dirty.
var o = (e.target?e.target:e.srcElement);
if (o.tagName && o.tagName.toLowerCase() == 'a' || (o.parentNode && o.parentNode.tagName.toLowerCase() == 'a') || (o.className && Y.D.hasClass(o,'noisy'))) {
soundManager.play('beep');
}