zoukankan      html  css  js  c++  java
  • 公告显示为提示层

    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>开始使用layer</title>
    <script type="text/javascript" src="http://www.cpw998.com/c9/Public/static/js/lib/jquery.min.js"></script>
    <script type="text/javascript" src="http://www.cpw998.com/c9/Public/static/layer/layer.js"></script>
    <script>
    //弹出一个页面层
    //弹出一个页面层
    $(document).ready(function(){
    	$(".info_title").click(function(){
    		ggtitle=$(this).children("#ggtitle").text();
    		infoCnt =$(this).siblings(".info_cnt").text();
    	  layer.open({
    	  type: 1,
    	  area: ['600px', '360px'],
    	  shadeClose: true, //点击遮罩关闭
    	  title:ggtitle,
    	  content: '<div style="padding:20px;">'+ infoCnt +'</div>'
    	  });
    		
    	});	
    });
    
    </script>
    </head>
    <body>
    
    <div class="info_title">ddd<span id="ggtitle">提示标题</span></div>
    <div class="info_cnt" style="display:none;"><b>hello word</b></div>
    </body>
    </html>
    

      

  • 相关阅读:
    mysql 性能监控
    拼接字符
    mysql 存储 2
    mysql 存储过程
    flock
    readfile() file_get_content f
    url_encode和base64
    jsdetox反混淆js内容,解密前端加密参数
    前端加密之使用firefox来解密
    v to ray做渗透测试
  • 原文地址:https://www.cnblogs.com/bchome/p/7019658.html
Copyright © 2011-2022 走看看