摘要: window.onload = function () { var div = getClassNames('lg' , 'div'); function getClassNames(classStr,tagName){ if (document.getElementsByClassName) { 阅读全文
posted @ 2018-02-08 14:45 Olivia_Guo 阅读(283) 评论(0) 推荐(0) 编辑
摘要: //屏蔽右键菜单document.oncontextmenu = function (event){ if(window.event){ event = window.event; }try{ var the = event.srcElement; if (!((the.tagName == "IN 阅读全文
posted @ 2018-01-17 10:05 Olivia_Guo 阅读(520) 评论(0) 推荐(0) 编辑
摘要: Date curDate = new Date();var preDate = new Date(curDate.getTime() - 24*60*60*1000); //前一天var nextDate = new Date(curDate.getTime() + 24*60*60*1000); 阅读全文
posted @ 2018-01-08 15:20 Olivia_Guo 阅读(2873) 评论(0) 推荐(0) 编辑
摘要: <div id="menu2" class="menu clearfix" style="position: relative;z-index: 1111111;"> <ul> <li><a href="#">首 页</a></li> <li><a href="#">政务公开</a></li> <l 阅读全文
posted @ 2017-11-24 11:34 Olivia_Guo 阅读(186) 评论(0) 推荐(0) 编辑
摘要: <script> function getInfo() { var s = ""; s += " 网页可见区域宽:"+ document.body.clientWidth; s += " 网页可见区域高:"+ document.body.clientHeight; s += " 网页可见区域宽:"+ 阅读全文
posted @ 2017-11-16 10:20 Olivia_Guo 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 一、鼠标经过图标变换 <script src="images/jquery.1.9.1.js"></script><style type="text/css">.xxgk_list li {display: inline-block;float: left;position: relative;ma 阅读全文
posted @ 2017-11-09 10:50 Olivia_Guo 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 译者按: 很多时候,大家可能只是依靠console.log来调试JavaScript代码,这样做的局限性不言而喻,这篇博客将教你几招实用的调试技巧。 原文: The 14 JavaScript debugging tips you probably didn’t know) 译者: Fundebug 阅读全文
posted @ 2017-11-08 10:18 Olivia_Guo 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 刚做了一个ie8 兼容问题的网站,有比较多的兼容问题出现 1.input的placeholder显示兼容问题 <input type="text" value="输入搜索关键词" onfocus="javascript: if (this.value == '输入搜索关键词') { this.val 阅读全文
posted @ 2017-11-06 15:04 Olivia_Guo 阅读(1322) 评论(0) 推荐(0) 编辑
摘要: 最近弄了一个类似于QQ空间的留言问题,弄得我一个头两个大,一开始我弄了可以回复的功能,结果,顶部的那条内容可以回复,但是接下来的留言就不可以回复了,以为是自己后台的问题,结果一直在改后台,改了半天,居然是js的问题。 这个务必要记录下来,以后遇到这种问题就好办了!!! C# MVC View前台: 阅读全文
posted @ 2017-09-14 09:47 Olivia_Guo 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 今天用了差不多一天的时间做了表单的取值并且保存到数据库,显示出来,算是自己的一个小小的进步吧,笔记下来,多看看。 是类似于发布留言功能: 前台代码: <div id="dialog" class="animated"> <img class="dialogIco" width="50" height 阅读全文
posted @ 2017-09-12 17:48 Olivia_Guo 阅读(323) 评论(0) 推荐(0) 编辑
摘要: $.ajax({ url : "", 请求的Url data : { }, 参数Json格式 dataType : "json", 请求的返回类型 这里为json type : "post", 提交方式 cache : false, 是否异步提交 success : function(result) 阅读全文
posted @ 2017-09-12 10:58 Olivia_Guo 阅读(148) 评论(0) 推荐(0) 编辑
摘要: jquery中的ajax方法参数总是记不住,这里记录一下。 1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分 阅读全文
posted @ 2017-09-11 17:17 Olivia_Guo 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1、http://demo.mycodes.net/houtai/hangkongdaili_admin/ 2、http://demo.mycodes.net/houtai/H-ui.admin/ 3、http://demo.mycodes.net/houtai/Ylsat_admin/ 4、htt 阅读全文
posted @ 2017-09-11 14:07 Olivia_Guo 阅读(238) 评论(0) 推荐(0) 编辑
摘要: style属性很有用,但最大不足是无法通过它来提取到通过外部CSS设置的样式信息,然而在jQuery中,这些都是非常的简单。CSS-DOM技术简单来说就是读取和设置style对象的各种属性。 效果演示 欢迎访问简明现代魔法图书馆 简单易懂的PHP魔法 简单易懂的JavaScript魔法 简单易懂的J 阅读全文
posted @ 2017-08-17 10:39 Olivia_Guo 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 先附上效果图: 这种是用Jq做的,因为我前台用的是<ul>和<li>,所以不能纯粹做成是ajax的效果。 以下是我做的页面介绍: <div class="sidebar"> <ul class="sidebar-menu"> <li><a href="javascript:;"><i class=" 阅读全文
posted @ 2017-08-17 10:25 Olivia_Guo 阅读(943) 评论(0) 推荐(0) 编辑
摘要: 摘自:http://blog.csdn.net/sollion/article/details/5777475 一、网络上的一般说法 1、ViewState 对象为Null。2、DateSet 空。3、sql语句或Datebase的原因导致DataReader空。4、声明字符串变量时未赋空值就应用变 阅读全文
posted @ 2017-08-16 14:18 Olivia_Guo 阅读(204967) 评论(0) 推荐(3) 编辑
摘要: <html> <head> <meta http-equiv="content-Type" content="text/html;charset=utf-8"> <meta name="keywords" content="111" /> <meta name="description" conte 阅读全文
posted @ 2017-08-09 17:10 Olivia_Guo 阅读(1903) 评论(0) 推荐(0) 编辑