- 博客(7)
- 收藏
- 关注
原创 currentTarget对象介绍
var show = function (e) {/*这样按下鼠标由于onclick事件是由冒泡触发的,所以event.srcElement || event.target是IMG对象,而不是A对象IE解决方法是当前获得焦点的对象即document.activeElement,则FF和OP是event.currentTarget对象具体代码如下*/ alert((e.currentTarge
2007-09-26 16:14:00 984
原创 树型二级菜单特效
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">CMenu3#CMenu3 { width:160px; background-color:#F6F6F6; padding:1px 10px 10px 10px; *padding:11px 10px
2007-09-25 15:15:00 1199
原创 web颜色拾取器。。。
Color#Color { width:282px; height:156px; padding:10px; background-color:#F4F4F4; border:#CCCCCC 1px solid; position:absolute; display:none;}#Color .Color_left { float:left;
2007-09-21 17:30:00 2165 3
原创 翻页特效。。。
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">Bookhtml, body { margin:0px;}body { text-align:center;}#book {/*设置书本*/ width:700px; margin:auto;}
2007-09-20 14:09:00 3860 2
原创 鼠标选择框特效。。。。
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">鼠标特效(function (bool) {//兼容FF一些方法 var html; window.IE = /MSIE/.test(window.navigator.userAgent);
2007-09-20 13:32:00 1202
原创 JS控制CSS
JS控制样式.entry { display:block;}//目前暂对styleSheets没有研究。。。这东西兼容起来貌似挺麻烦的var Browser = { IE : /MSIE/.test(navigator.userAgent) , FF : /Firefox/.test(navigator.userAgent) , OP
2007-09-12 12:30:00 2103
原创 获取网页内所有图片地址
打开页面,当页面全部载入完毕后,从地址栏 运行,以下code中的javascript:.........那个即可。。 window.onload = function () { (function (is) { var i, r = /"([^"]+)"/, o = {}, a = []; for (i = 0; i if (is[
2007-09-12 12:00:00 2717
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人