问题描述
asp.net中做web开发的时候怎么为你的网页添加右键菜单啊都说用contextmenu可是为什么我得工具箱里面没有那个控件呢
解决方案
解决方案二:
http://labs.abeautifulsite.net/archived/jquery-contextMenu/demo/http://www.abeautifulsite.net/blog/2008/09/jquery-context-menu-plugin/
解决方案三:
<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.0Transitional//EN"><html><head><TITLE>Popup对象实现右键菜单</TITLE><scriptlanguage="JavaScript">varoPopup=window.createPopup();functioncontextMenu(){varleft=event.offsetX+10;vartop=event.offsetY+10;oPopup.document.body.innerHTML=oContext.innerHTML;oPopup.show(left,top,120,80,window.document.body);}</script></head><bodyoncontextmenu="contextMenu();returnfalse;"><h1>Popup对象实现右键菜单</h1>单击鼠标右键查看效果<divID="oContext"style="DISPLAY:none;BACKGROUND:#e4e4e4;"><divonmouseover="this.style.background='gold'"onmouseout="this.style.background='#e4e4e4'"<spanonclick='parent.location.href="http://www.zol.com.cn"'>中关村在线</span></div><divonmouseover="this.style.background='gold'"onmouseout="this.style.background='#e4e4e4'"<spanonclick="parent.location.href='http://www.cfan.com.cn'">电脑爱好者</span></div><divonmouseover="this.style.background='gold';"onmouseout="this.style.background='#e4e4e4';"><spanonclick="parent.location.href='http://www.sina.com.cn'">新浪网</span></div><divonmouseover="this.style.background='gold'"onmouseout="this.style.background='#e4e4e4'"<spanonclick="parent.location.href='http://www.xinhuanet.com'">新华网</span></div></div></body></html>