上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 42 下一页
摘要: JavaScript中的this javascript中的this是一个很有意思的东西,它指的是执行环境,而非申明环境; 具体的我们来看代码: var name="global"; var obj={ name:"obj", fun:function (){ alert(name); } }; ob 阅读全文
posted @ 2016-02-04 10:16 咕-咚 阅读(163) 评论(0) 推荐(0)
摘要: 临时记录和总结的; 阅读全文
posted @ 2016-02-03 11:36 咕-咚 阅读(167) 评论(0) 推荐(0)
摘要: JavaScript实现tab选项卡 第一种:通过交替的改变display:none 和display:block html: <div id="content"> <div id="tag"> <input class="active" type="button" value="a" /> <in 阅读全文
posted @ 2016-01-30 17:31 咕-咚 阅读(938) 评论(0) 推荐(0)
摘要: JavaScript实现右侧悬浮框 HTML代码: <body> <div id="div1"> </div> </body> css代码: #div1{ height:150px; width:100px; background:red; position:absolute; right:0px; 阅读全文
posted @ 2016-01-30 15:14 咕-咚 阅读(1406) 评论(0) 推荐(0)
摘要: javascript中的匀速运动 不要小看这个东西呀,机关重重呀 html: <input type="button" value="start" onclick="show()"/> <div id="move"> </div> css: #move{ height:100px; width:10 阅读全文
posted @ 2016-01-29 21:40 咕-咚 阅读(750) 评论(0) 推荐(0)
摘要: javascript实现减速运动 html: <input type="button" value="start" onclick="show()"/> <div id="content"> </div> css: #content{ height:100px; width:100px; backg 阅读全文
posted @ 2016-01-29 20:52 咕-咚 阅读(519) 评论(0) 推荐(0)
摘要: javascript实现图片的淡入淡出 这个只是一个简单的实例,后面我会加强滴 我们以div例子: html: <div id="content"> </div> css: #content{ height:200px; width:200px; background:green; position 阅读全文
posted @ 2016-01-29 20:51 咕-咚 阅读(457) 评论(0) 推荐(0)
摘要: javascript实现(分享到的小实例) 这个算值运动的一个实例应用吧 HTML代码: <div id="tag"> <span id="showInfo">分享到</span> </div> css代码: #tag{ height:200px; width:200px; background:g 阅读全文
posted @ 2016-01-29 20:49 咕-咚 阅读(863) 评论(0) 推荐(0)
摘要: javascript中奇怪事件 为啥叫奇怪事件了,应该是我目前掌握的知识暂时不能解释这种现象滴呀(也许可以用事件流的概念来解释滴呀) 看布局: #hideInfo{ height:100px; width:100px; background:green; position:absolute; top 阅读全文
posted @ 2016-01-29 20:48 咕-咚 阅读(182) 评论(0) 推荐(0)
摘要: javascript方式实现无缝滚动(之一) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html 阅读全文
posted @ 2016-01-28 19:01 咕-咚 阅读(713) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 42 下一页