2010-12-08 39 views
0

I am using supersized plugin to have a rotating fullscreen image background with <a>s. But as it sits behind my site content it can't be clicked. So i was wondering if it is possible to have an <a> be swap to top onrollover and be clickable?可以在<a href always on top by using jquery?

+1

你想要点击哪些东西,图像背景或链接?你的问题不清楚。 – 2010-12-08 15:19:26

回答

0

尝试使用:

$(".floating-links").hover(function() { 
    $(this).css({ "z-index": 1000 }); 
}, function() { 
    $(this).css({ "z-index": 0 }); 
}); 
0

如果认为你需要检查你的元素的CSS的z-index。

a { 
    z-index: 1000 /* Put in front of other objects */ 
} 

将Z-index想象成Photoshop中的图层。

相关问题