There's a very interesting thing here! (Original: Jaguar)

Source: Internet
Author: User
Tags visibility
Test.htm
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" >
<title> document leaving Marks </title>
<STYLE>
v:* {behavior:url (#default #vml)}
</STYLE>
<link rel= "stylesheet" href= "Pub_document.css" >
<script language= "JScript" >
var nowid=0;
var popid=0;
var padheight=0;
function init ()
{
Newid=parseint (document.all ("n"). value);
}
function Createdelline (num)
{
var newmark=document.createelement ("<div id= ' Mark" +num+ "' ></div>");
Memo.insertbefore (NewMark);
var orcts = otemprange.getclientrects ();
for (Var i=0;i<orcts.length;i++)
{
var t=orcts[i].top;
var l=orcts[i].left;
var r=orcts[i].right;
var B=orcts[i].bottom;
var newrect=document.createelement ("<v:roundrect oncontextmenu=" popid= "+num+";p opup (); ' id= ' Rect ' +num+ ' no ' +i+ ' ' style= ' Position:absolute;visibility:hidden ' filled=t fillcolor=red strokecolor=red strokeWeight=1pt></v: Roundrect> ");
Newmark.insertbefore (Newrect);
newrect.style.postop=t+document.body.scrolltop-2+ (B-T)/2;
Newrect.style.posleft=l-2;
Newrect.style.width=r-l;
newrect.style.height=2;
Newrect.style.visibility= "";
}
}
function Createrect (num)
{
var newmark=document.createelement ("<div id= ' Mark" +num+ "' ></div>");
Edit.insertbefore (NewMark);
var orcts = otemprange.getclientrects ();

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: info-contact@alibabacloud.com 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.