There is a custom IE mouse right button pop-up

Source: Internet
Author: User
Tags tagname visibility
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<title> Customizing the right mouse button pop-up menu </title>
<style type= "Text/css" >
. div1 {border-top:buttonface 1px solid;border-left:buttonface 1px solid;border-bottom:windowframe 1px solid; Border-right:windowframe 1px solid;}
. div2 {border-top:window 1px solid;border-left:window 1px solid;border-bottom:buttonshadow 1px solid;border-right: Buttonshadow 1px solid;}
. MouseOver {background-color:highlight;color:highlighttext;font-size:12px;cursor:hand;font-size:12px;}
. mouseout {background-color:buttonface;color:buttontext;font-size:12px;cursor:default;font-size:12px;}
<script language= "JavaScript" >
function Popupmouserightbuttonupmenu ()
if ( ' visible ') ' hidden ';
if (event.srcelement.tagname== ' A ' | | | event.srcelement.tagname== ' TEXTAREA ' | | | event.srcelement.tagname== ' INPUT ' | | document.selection.type!= ' None ')
return true;
if (event.clientx+150 > Document.body.clientWidth) document.body.scrollleft-150;
if (Event.clienty+divh > Document.body.clientHeight) DOCUMENT.BODY.SCROLLTOP-DIVH;
else; ' visible ';
return false;
function Drawmouserightbuttonupmenu () {
Oselection = document.selection;
var hrstr= ' <tr><td align= "center" valign= "Middle" height= "2" ><table border= "0" cellpadding= "0" cellspacing= "0" width= "128" height= "2" ><tr><td height= "1" bgcolor= "Buttonshadow" ></td></tr &GT;&LT;TR&GT;&LT;TD height= "1" bgcolor= "Buttonhighlight" ></td></tr></TABLE></td>< /tr> ';

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.