开发者

Need horizontal menu option on mouseover on a particular div

开发者 https://www.devze.com 2023-04-08 06:16 出处:网络
My requirement is to make a horizontal menu in the end of a paragraph where on mouseover a menu should appear

My requirement is to make a horizontal menu in the end of a paragraph where on mouseover a menu should appear

Need horizontal menu option on mouseover on a particular div

On mouse over it should show an option to add an item like this

Need horizontal menu option on mouseover on a particular div

On clicking the add option the menu should appear like this

Need horizontal menu option on mouseover on a particular div

Please suggest any jQuery or javascript plugin for this functionality. My preference is a开发者_运维技巧 plugin for this other than writing custom script.


Here is what I have: http://jsfiddle.net/cbARJ/4/

I don't have such background for your Add here buttons, so you will need to add it.


Simple.

EDIT: On mouse over for paragraph?

CSS:

p #add_link { display:none }
p:hover #add_link { display: block }
#links { display:none }

JS:

$('p #add_link').click(function() {
    $(this).parent().append($('#links').html()); // Or anything else
})
0

精彩评论

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

关注公众号