12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <#--
- <div class="weui-footer">
- <p class="weui-footer__links">
- <a href="javascript:void(0);" class="weui-footer__link">博锋管家提供技术支持</a>
- </p>
- <p class="weui-footer__text">Copyright © 2008-2016</p>
- </div>
- -->
- </body>
- </html>
- <script src="${s3('/jquery/1.11.0/jquery.min.js')}"></script>
- <script src="${s3('/jquery-weui/1.2.1/js/jquery-weui.min.js')}"></script>
- <script src="${s3('/jquery-weui/1.2.1/js/swiper.min.js')}"></script>
- <script src="${s3('/jquery-weui/1.2.1/js/city-picker.min.js')}"></script>
- <#--<script src="https://www.w3cways.com/demo/vconsole/vconsole.min.js?v=2.2.0"></script>-->
- <script>
- Window.prototype.alert = function(){
- //创建一个大盒子
- var box = document.createElement("div");
- //创建一个关闭按钮
- var button = document.createElement("button");
- //定义一个对象保存样式
- var boxName = {
- width:"500px",
- height:"180px",
- backgroundColor:"#f8f8f8",
- border:"1px solid #ccc",
- position:"absolute",
- top:"50%",
- left:"50%",
- margin:"-90px 0 0 -250px",
- zIndex:"999",
- textAlign:"center",
- lineHeight:"180px"
- }
- //给元素添加元素
- for(var k in boxName){
- box.style[k] = boxName[k];
- }
- //把创建的元素添加到body中
- document.body.appendChild(box);
- //把alert传入的内容添加到box中
- if(arguments[0]){
- box.innerHTML = arguments[0];
- }
- button.innerHTML = "关闭";
- //定义按钮样式
- var btnName = {
- border:"1px solid #ccc",
- backgroundColor:"#fff",
- width:"70px",
- height:"30px",
- textAlign:"center",
- lineHeight:"30px",
- outline:"none",
- position:"absolute",
- bottom:"10px",
- right:"20px",
- }
- for(var j in btnName){
- button.style[j] = btnName[j];
- }
- //把按钮添加到box中
- box.appendChild(button);
- //给按钮添加单击事件
- button.addEventListener("click",function(){
- box.style.display = "none";
- })
- }
- </script>
|