textbox右键菜单 时间:2020-05-11 人气:0 Page 1 <script language=JavaScript1.2> var menuskin = "skin1"; // skin0, or skin1 var display_url = 0; // Show URLs in status bar? var selInputOb = null; function showmenuie5() { selInputOb = event.srcElement; var rightedge = document.body.clientWidth-event.clientX; var bottomedge = document.body.clientHeight-event.clientY; if (rightedge < ie5menu.offsetWidth) ie5menu.style.left = document.body.scrollLeft + event.clientX - ie5menu.offsetWidth; else ie5menu.style.left = document.body.scrollLeft + event.clientX; if (bottomedge < ie5menu.offsetHeight) ie5menu.style.top = document.body.scrollTop + event.clientY - ie5menu.offsetHeight; else ie5menu.style.top = document.body.scrollTop + event.clientY; ie5menu.style.visibility = "visible"; return false; } function hidemenuie5() { ie5menu.style.visibility = "hidden"; } function highlightie5() { if (event.srcElement.className == "menuitems") { event.srcElement.style.backgroundColor = "highlight"; event.srcElement.style.color = "white"; if (display_url) window.status = event.srcElement.url; } } function lowlightie5() { if (event.srcElement.className == "menuitems") { event.srcElement.style.backgroundColor = ""; event.srcElement.style.color = "black"; window.status = ""; } } function jumptoie5() { if (event.srcElement.className == "menuitems") { if (event.srcElement.getAttribute("target") != null) window.open(event.srcElement.url, event.srcElement.getAttribute("target")); else window.location = event.srcElement.url; } } </script> 返回 输入数据 下一页 <script language=JavaScript1.2> if (document.all && window.print) { ie5menu.className = menuskin; document.forms[0].EditBox0.oncontextmenu = showmenuie5; document.forms[0].EditBox1.oncontextmenu = showmenuie5; document.body.onclick = hidemenuie5; } </script> [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 加载全部内容