<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>设计师内容页</title>
</head>
<body> <input name="" type="text" onfocus="if(this.value=='请输入邮箱地址,以便收到编辑的回复') {this.value='';}" onblur="if(this.value=='') {this.value='请输入邮箱地址,以便收到编辑的回复';}" value="请输入邮箱地址,以便收到编辑的回复" />
<textarea name="" rows="" onfocus="if(value=='如果您遇到任何有关服装的问题都可以在此提问') {value=''}" onblur="if(value=='') {value='如果您遇到任何有关服装的问题都可以在此提问'}">如果您遇到任何有关服装的问题都可以在此提问</textarea> </body>
</html>

弹出层,可以写表单

<link href="http://www.dazhongw.com/css/css.css" rel="stylesheet" type="text/css" />
<SCRIPT src="http://www.dazhongw.com/js/jquery.min.js"></SCRIPT> <script language="javascript" type="text/javascript">
function showDiv(){
$("#zxgs").attr('value',$("#gsmc").text());
$("#ly").attr('value',$("#xxly").text());
document.getElementById('popDiv').style.display='block';
document.getElementById('popIframe').style.display='block';
document.getElementById('bg').style.display='block';
}
function closeDiv(){
document.getElementById('popDiv').style.display='none';
document.getElementById('bg').style.display='none';
document.getElementById('popIframe').style.display='none';
}
</script> <script language="javascript">
function checkkey(){
if(form2.realname.value=='请填写您的真实姓名')
{
alert("请填写您的真实姓名!");
form2.realname.focus();
return false;
}
if(form2.mobile.value=='请输入您的手机号')
{
alert("请输入您的手机号!");
form2.mobile.focus();
return false;
}
return true;
}
</script>
<script language="javascript">
function clearDefaultText2(el2, message2) {
var obj2 = el2;
if (typeof (el2) == "string")
obj2 = document.getElementById("mobile");
if (obj2.value == message2) {
obj2.value = "";
}
obj2.onblur = function() {
if (obj2.value == "") {
obj2.value = message2;
}
}
}
</script> <script language="javascript">
function clearDefaultText(el, message) {
var obj = el;
if (typeof (el) == "string")
obj = document.getElementById("realname");
if (obj.value == message) {
obj.value = "";
}
obj.onblur = function() {
if (obj.value == "") {
obj.value = message;
}
}
}
</script>
<div id="popDiv" class="mydiv" style="display:none;">
<h4><span>免费预约</span><a href="javascript:closeDiv()">X 关闭</a></h4>
王gg
</div>
<div id="bg" class="bg" style="display:none;"></div>
<iframe id='popIframe' class='popIframe' frameborder='' ></iframe>
<a href="javascript:showDiv()">open</a>
<a href="javascript:showDiv()">open</a>
<a href="javascript:showDiv()">open</a>
<a href="javascript:showDiv()">open</a>
<a href="javascript:showDiv()">open</a>
<a href="javascript:showDiv()">open</a>
<a href="javascript:showDiv()">open</a>
<a href="javascript:showDiv()">open</a>
<a href="javascript:showDiv()">open</a>
<a href="javascript:showDiv()">open</a>
<a href="javascript:showDiv()">open</a>

input内文字点击消失 弹出层,可以写表单的更多相关文章

  1. fastadmin: layer.open 弹出层如何在表单提交之后自动关闭?

    需要在控制器对应的js文件中添加   Form.api.bindevent($("form[role=form]")); define(['jquery', 'bootstrap' ...

  2. jquery实现点击按钮弹出层和点击空白处隐藏层

    昨天做项目遇到一个问题,和大家分享下,jquery实现点击按钮弹出层和点击空白处隐藏层的问题 if($('.autoBtn').length){                $('.autoBtn' ...

  3. jQuery第三课 点击按钮 弹出层div效果

    jQuery 事件方法 事件方法会触发匹配元素的事件,或将函数绑定到所有匹配元素的某个事件. 触发实例: $("button#demo").click() 上面的例子将触发 id= ...

  4. js 点击 隐藏弹出层

    document.onmousedown = function(e){ var ev = document.all ? window.event : e; var _con = $("#ci ...

  5. ios手机弹出层上表单的操作,收起键盘焦点错乱的问题

    今天遇到了ios手机下 弹出层上form表单 当收起键盘后,焦点错乱,无法再操作的问题 解决办法 function device() { const u = navigator.userAgent; ...

  6. selenium选错弹出层的下拉框

    要先选中这个弹出层的form元素,再找下拉框 public void downSelectBox(){ driver.get("https://www.imooc.com/user/setp ...

  7. Jquery 点击图片在弹出层显示大图

    http://blog.csdn.net/wongwaidah/article/details/28432427(案例链接出处,本人只是转载收藏) <html> <head> ...

  8. jquery---点击弹出层

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...

  9. JS简易弹出层

    目标 实现简易的js弹出框.为了简单灵活的在小项目中使用. 实现思路 研究bootstrap的弹出框效果后,认为层级示意图如下: 层说明 弹出层分为三层.最底层的遮罩层,覆盖在浏览器视口上.它之上是弹 ...

随机推荐

  1. 【瞎搞搞之】 window_x64微信小程序环境搭建

    所需文件地址如下: http://pan.baidu.com/s/1nv0IHhn(ylk7)   1.下载微信开发工具0.7.0_x64 安装完成后,打开程序,进行微信扫码登录 2.下载微信开发工具 ...

  2. sublime text 3 - change snippets folder

    如何整理 sublime text 3 下的 snippets(放在非User目录的时候), 才可以让 sublime text 3 识别到???

  3. Apache Zeppelin

    介绍 用于做数据分析和可视化 一.二进制安装 1)下载二进制包 wget http://mirrors.tuna.tsinghua.edu.cn/apache/incubator/zeppelin/0 ...

  4. ActiveMQ in Action(3) - Persistence

    关键字: activemq 2.3 Persistence2.3.1 AMQ Message Store    AMQ Message Store是ActiveMQ5.0缺省的持久化存储.Messag ...

  5. 判断括号字符串是否为合法+求n对括号的所有组合

    n对括号的有效组合数 参考:https://zh.wikipedia.org/wiki/%E5%8D%A1%E5%A1%94%E5%85%B0%E6%95%B0 import java.util.Ar ...

  6. SharePoint 2013 配置InfoPath 列表表单

    转载来源:http://www.cnblogs.com/jianyus/p/3470113.html SharePoint列表,都是通过表单展示,有时候不太符合要求,这时候,我们可以通过定制表单,来是 ...

  7. ajax 假上传文件

    1. <form name="certForm" id="certForm" method="post" action="x ...

  8. Ubuntu11.10 E: Unable to locate package ubuntu-restricted-extras

    最近在ubuntu11.10下安装支持多媒体播放的插件时遇到一些问题,在此小记一下. 首先是ubuntu11.10的安装,基本上是一键安装,在此不细说. 1.此版本和以前使用的ubuntu版本风格不太 ...

  9. UIKit继承结构和UIView.h文件详解

    @interface UIView : UIResponder<NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem> ...

  10. GRPC: set up..

    get the grpc source file.. git clone https://github.com/grpc/grpc git submodule update --init --recu ...