开发者

how to attach a show method?

Sorry if the title is a little vague, Im currently learning jQuery and would like to fade a content div in and out on hover whilst displaying a rea开发者_如何学God more link when hovered and hiding it when unhovered. I can get the div to fade and the read more link to display although at the moment the read more link is inheriting the opacity of the fade of .25, I understand that I have to add this show method but Im not sure what function or method I have to use.

code is here http://jsfiddle.net/kyllle/a4mPS/

if anyone could explain anything to me that would be great as i would love to fully understand as much as possible.


Since the Read More is inside the widget div it will fade with the rest of the widget's contents. Instead, just put it outside but within the article: http://jsfiddle.net/a4mPS/1/


You should put the Read More link in a new div outside of the other div and have it positioned where you want it and modify it's visibility or opacity opposite of the "hover" div.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜