摘要: move.js 利用jq实现 阅读全文
posted @ 2016-03-06 14:11 mingjixiaohui 阅读(181) 评论(0) 推荐(0) 编辑
摘要: <style> #outer{ position: relative; width: 800px; height: 450px; margin: 30px auto 0; overflow: hidden; } #inner{ position: absolute; left: 0; top: 0; 阅读全文
posted @ 2016-03-06 14:09 mingjixiaohui 阅读(316) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css"> *{ margin: 0; padding: 0; } #outer{ position: relative; margin: 30px auto 0; width: 800px; height: 450px; overflow: hidden; } 阅读全文
posted @ 2016-03-06 14:04 mingjixiaohui 阅读(871) 评论(0) 推荐(0) 编辑
摘要: <style> *{ margin:0; padding:0; } #outer{ width:800px; height:450px; overflow:hidden; position:relative; } #inner{ position:absolute; width:4800px; ov 阅读全文
posted @ 2016-03-06 14:01 mingjixiaohui 阅读(175) 评论(0) 推荐(0) 编辑
摘要: <style> *{ margin:0; padding:0; } ul{ list-style:none; overflow:hidden; } ul li{ width:100px; height:40px; border:1px solid black; float:left; text-al 阅读全文
posted @ 2016-03-06 14:00 mingjixiaohui 阅读(555) 评论(0) 推荐(0) 编辑
摘要: <style> #mainBox{ overflow:hidden; position:relative; width:320px; height:568px; background:url(images/background_1.png) no-repeat; margin:30px auto 0 阅读全文
posted @ 2016-03-06 13:59 mingjixiaohui 阅读(352) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> // var person1 = new Object(); // person1.name = "syz"; // person1.age = "26"; // person1.say = function(){ // alert(" 阅读全文
posted @ 2016-03-06 13:57 mingjixiaohui 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 面向对象的语言有一个标志,即拥有类的概念,抽象实例对象的公共属性与方法,基于类可以创建任意多个实例对象,一般具有封装、继承、多态的特性!但JS中对象与纯面向对象语言中的对象是不同的,ECMA标准定义JS中对象:无序属性的集合,其属性可以包含基本值、对象或者函数。可以简单理解为JS的对象是一组无序的值 阅读全文
posted @ 2016-03-06 13:56 mingjixiaohui 阅读(171) 评论(0) 推荐(0) 编辑
摘要: <script> window.onload = function(){ var oTxt= document.getElementById("txt1"); var oBtn = document.getElementById("btn1"); oBtn.onclick = function(){ 阅读全文
posted @ 2016-03-06 13:49 mingjixiaohui 阅读(182) 评论(0) 推荐(0) 编辑
摘要: <script> window.onload = function(){ var oTxt1 = document.getElementById("txt1"); var oTxt2 = document.getElementById("txt2"); var oBtn = document.get 阅读全文
posted @ 2016-03-06 13:48 mingjixiaohui 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-03-06 13:47 mingjixiaohui 阅读(283) 评论(0) 推荐(0) 编辑
摘要: //search substring(start,end)截取字符串 slice(start,end)不包括end substr(start,length)后一个参数是长度 charAtvar str ='adfasdf'; //search查找的事下标 // alert(str.search('a 阅读全文
posted @ 2016-03-06 13:46 mingjixiaohui 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 账号:<input type="text" id="username" /> 密码: <input type="password" id="pwd" /> <input type="checkbox" name="check" id="check" value=""/> 记住账号密码 <input 阅读全文
posted @ 2016-03-06 13:26 mingjixiaohui 阅读(281) 评论(0) 推荐(0) 编辑
摘要: <script> function setCookie(name,value,iDay) { var oDate = new Date(); oDate.setDate(oDate.getDate()+iDay) document.cookie = name +'='+ value +';expir 阅读全文
posted @ 2016-03-06 13:22 mingjixiaohui 阅读(166) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css"> *{ margin:0; padding:0; } div{ float:left; } </style> 初始版 <script type="text/javascript"> var oBody = document.getElementsByTa 阅读全文
posted @ 2016-03-06 13:17 mingjixiaohui 阅读(350) 评论(0) 推荐(0) 编辑
摘要: <li>0000000</li> <li>11111111</li> <li>22222222</li> <li>33333333</li> script type="text/javascript"> var aLi = document.getElementsByTagName("li"); / 阅读全文
posted @ 2016-03-06 13:08 mingjixiaohui 阅读(496) 评论(0) 推荐(0) 编辑
摘要: <script> // var x = 0 ; // function a(){ // x++; // } // a();//没有结果 x++ // a();//没有结果 x++ // console.log(x);//2 // function a(){ // var x = 0; // x++; 阅读全文
posted @ 2016-03-06 13:04 mingjixiaohui 阅读(184) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> window.onload = function(){ var oInp = document.getElementById("inp"); oInp.onclick = function(){ //获取text中的数据 // ajax 阅读全文
posted @ 2016-03-06 12:48 mingjixiaohui 阅读(412) 评论(0) 推荐(0) 编辑
摘要: ajax("get","1.get.php","username=jh&password=123",function(data){ // alert(data); var data = JSON.parse(data); }); // function ajax(method,url,data,fn 阅读全文
posted @ 2016-03-06 12:39 mingjixiaohui 阅读(164) 评论(0) 推荐(0) 编辑
摘要: *{ margin:0; padding:0; } #outer{ width:1000px; margin:0 auto; overflow:hidden; } #outer div{ width:250px; float:left; } #outer div img{ width:220px; 阅读全文
posted @ 2016-03-06 12:36 mingjixiaohui 阅读(233) 评论(0) 推荐(0) 编辑