Create Code in the Ajax prompt box

Source: Internet
Author: User

<HTML>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> deep-sea technical support-Prompt box creation </title>
<Style type = "text/CSS">
A {color: #000; font-size: 12px; text-Decoration: None}
A: hover {color: #900; text-Decoration: underline}
Body {Background:; filter: progid: DXImageTransform. Microsoft. gradient (gradienttype = 0, startcolorstr = # ffffff, endcolorstr = #003366); overflow: hidden}
# Massage_box {position: absolute; left: expression (body. clientWidth-350)/2); top: expression (body. clientHeight-200)/2); width: 350px; Height: 200px; filter: dropshadow (color = #666666, offx = 3, offy = 3, positive = 2); Z-index: 2; visibility: hidden}
# Mask {position: absolute; top: 0; left: 0; width: expression (body. scrollwidth); Height: expression (body. scrollheight); Background: #666; filter: alpha (opacity = 60); Z-index: 1; visibility: hidden}
. Massage {border: #036 solid; border-width: 1 1 3 1; width: 95%; Height: 95%; Background: # FFF; color: #036; font-size: 12px; line-Height: 150%}
. Header {Background: #036; Height: 10%; font-family: verdana, Arial, Helvetica, sans-serif; font-size: 12px; padding: 3 5 0 5; color: # fff}
</Style>
<! -- Implement layer movement -->
<Script language = "JavaScript">
VaR OBJ =''
Document. onmouseup = MUP
Document. onmousemove = mmove

Function mdown (object ){
OBJ = object. ID
Document. All (OBJ). setcapture ()
Px = event. x-document.all (OBJ). style. pixelleft;
Py = event. y-document.all (OBJ). style. pixeltop;
}

Function mmove (){
If (OBJ! = ''){
Document. All (OBJ). style. Left = event. X-Px;
Document. All (OBJ). style. Top = event. Y-py;
}
}

Function MUP (){
If (OBJ! = ''){
Document. All (OBJ). releasecapture ();
OBJ = '';
}
}
</SCRIPT>
</Head> <body>
<Div id = "massage_box"> <Div class = "massage">
<Div class = "Header" onmousedown = mdown (massage_box)> <Div style = "display: inline; width: 150px; position: absolute"> deep-sea tip </div>
<Span onclick = "massage_box.style.visibility = 'den den '; mask. style. visibility = 'den den '"style =" float: Right; display: inline; cursor: Hand "> × </span> </div>
<Ul style = "margin-Right: 25"> <li>
I declare that all the articles (including illustrations) on this blog are original articles. If you need to quote or repost them, please indicate the source.
</LI> <li> you are welcome to leave comments on your opinions in this blog post. Do not drop the complaints of bored people who have no quality or opinion. </LI> <li> background music has been set up on this site. when listening to music collected in the music box, close the background music at the bottom of the page. </LI> </ul> </div>
<Div id = "Mask"> </div>
<Span onclick = "Mask. style. visibility = 'visable'; massage_box.style.visibility = 'visable' "style =" cursor: hand "> <a href =" http://blog.csdn.net/lfywy "Title =" "target =" _ blank "> display prompt information </a> </span>
<Br> <BR> <br>> <br> <a href = "http://blog.csdn.net/lfywy" Title = "Deep Sea Software technical Information Service Network "target =" _ blank "> deep-sea Software Technology Information Service Network </a>
</Body>
</Html>

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.