Html5 pop-up dialog box, html5 pop-up dialog box

Source: Internet
Author: User

Html5 pop-up dialog box, html5 pop-up dialog box

<! DOCTYPE html>
<Html>

<Head>
<Meta charset = "UTF-8">
<Meta name = "apple-touch-fullscreen" content = "YES"/>
<Meta name = "viewport" content = "width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no "/>
<Meta name = "apple-mobile-web-app-capable" content = "yes"/>
<Meta name = "format-detection" content = "telephone = no"/>
<Title> html5 pop-up dialog box for mobile phone pop-up messages -webkfa.com </title>
<Style>
*{
Margin: 0; padding: 0;
-Webkit-touch-callout: none;/* prevent callout to copy image, etc when tap to hold */
-Webkit-text-size-adjust: none;/* prevent webkit from resizing text to fit */
-Webkit-tap-highlight-color: rgba (210,210,210, 0.35);/* make transparent link selection, adjust last value opacity 0 to 1.0 */
-Webkit-user-select: none;/* prevent copy paste, to allow, change 'none' to 'text '*/
}
Body {font-family: ""; font-size: 12px; background: url (http://image.kuwo.cn/kdt2014/bg.png) repeat ;}
Ul, li {list-style: none ;}

. Black_overlay {
Display: block;
Position: fixed; top: 0%;
Left: 0%;
Width: 100%;
Height: 100%;
Background-color: black;
Z-index: 1001;
-Moz-opacity: 0.8;
Opacity:. 80;
Filter: alpha (opacity = 80 );
}
. White_content {
Display: block;
Position: fixed;
Top: 15%; left: 0;
Width: 100%;
Background-color: white;
Z-index: 1002;
Overflow: hidden;
}
. Tcw {width: 100%; min-width: 320px ;}
# DituContent textarea {color: #868686; width: 92%; padding: 2%; height: 122px; border: 1px solid # b6b6b6; border-radius: 2px; line-height: 18px; margin: 2% ;}

. Huati_btn2 {width: 30%; height: 32px; background: #34a0f0; border-radius: 3px; font: 14px/32px ""; display: block; overflow: hidden; margin: 0 auto; text-align: center; color: # fff; text-decoration: none; margin: 2% 10% ;}
. Im {overflow: hidden; padding: 4% 0 2% 0; margin-top: 0px}/* change */
. Im span {width: 33%; float: left; text-align: center; vertical-align: absmiddle}
. Im input {vertical-align: middle; margin:-3px 5px 0 0}

. Huati_btn {width: 175px; height: 32px; background: #34a0f0; border-radius: 3px; font: 14px/32px ""; display: block; overflow: hidden; margin: 0 auto; text-align: center; color: # fff; text-decoration: none ;}
. Huati {height: 40px; padding-top: 9px; border-bottom: 1px dashed # cecece}


. Text_w {color: #282828; font-size: 14px; padding: 0 2%; height: 28px ;}
. Input {padding: 0 2% ;}
. Input {color: #868686; width: 96%; padding: 0 2%; height: 32px; border: 1px solid # b6b6b6; border-radius: 2px ;}
</Style>
</Head>

<Body>
<Div class = "black_overlay" id = "blackoverlayid"> </div>
<Div id = "light" class = "white_content">
<Div class = "tcw" style = "" id = "dituContent">
<Div>
<Textarea id = "userText" onkeyup = "ckeyup ();" cols = "" rows = "" class = "textarea" onfocus = "if (this. value = 'enter up to 200 words') {this. value = ''; this. style. color = '#313131';} "onblur =" if (this. value = '') {this. value = 'enter up to 200 words'; this. style. color = '# 000000';} "style =" color: rgb (868686); "> enter up to 134,134,134 words </textarea>
</Div>
<P class = "text_w"> what do you want to be called? </p>
<Div class = "input">
<Input type = "text" value = "" id = "userName" onfocus = "if (this. value = def_uname) {this. value = ''; this. style. color = '#313131';} "onblur =" if (this. value = '') {this. value = def_uname; this. style. color = '#868686';} "maxlength =" 20 ">
</Div>
<P class = "im">
<Span style = "width: 50%; color: #34A0F0; "> <input name =" fsfanName "type =" checkbox "value =" mofen "> mofen </span>
<Span style = "width: 50%; color: # FF6E6E; "> <input name =" fsfanName "type =" checkbox "value =" powdered "> powdered pork </span>
</P>
<Div>
<A href = "javascript: hidetc ();" class = "huati_btn2" style = "float: left;"> cancel </a>
<A href = "javascript: addmess ();" class = "huati_btn2" style = "float: right;"> Leave a message </a>
</Div>
</Div>
</Div>
<Script type = "text/javascript">
Function hidetc (){
Var obj1 = document. getElementById ("blackoverlayid ");
Obj1.style. display = 'none ';
Var obj2 = document. getElementById ("light ");
Obj2.style. display = 'none ';
}
Function addmess (){
Alert ("Please implement it yourself ");
}
</Script>
</Body>

</Html>

Online browsing code

Related Article

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.