| javascript制作浮动的工具条 |
|
作者:网络 文章来源:转载 点击数: 更新时间:2006-1-19 |
| [ 字体:缩小 正常 放大 | 双击自动滚屏 ] |
请选择合适的字体颜色:
|
|
} function removeToggle(el) { var cDisabled = el.cDisabled; cDisabled = (cDisabled != null); var cToggle = el.cToggle; cToggle = (cToggle != null); if (cToggle && !cDisabled) { el.cToggle = null; if (el.value) { toggle(el); } makeFlat(el); if (el.cToggle_onclick != null) { el.onclick = el.cToggle_onclick; el.cToggle_onclick = null; } } } function toggle(el) { el.value = !el.value; if (el.value) el.style.background = "URL()"; else el.style.backgroundImage = ""; } function makeFlat(el) { with (el.style) { background = ""; border = "1px solid buttonface"; padding = "1px"; } } function makeRaised(el) { with (el.style) { borderLeft = "1px solid #2F8BDF"; borderRight = "1px solid #2F8BDF"; borderTop = "1px solid #2F8BDF"; borderBottom = "1px solid #2F8BDF"; padding = "1px"; } } function makePressed(el) { with (el.style) { borderLeft = "1px solid buttonhighlight"; borderRight = "1px solid buttonshadow"; borderTop = "1px solid buttonhighlight"; borderBottom = "1px solid buttonshadow";
paddingTop = "2px"; paddingLeft = "2px"; paddingBottom = "0px"; paddingRight = "0px"; } } function makeGray(el,b) { var filtval; if (b) filtval = "gray()"; else filtval = ""; var imgs = findChildren(el, "tagName", "IMG"); for (var i=0; i<imgs.length; i++) { imgs[i].style.filter = filtval; } } function load(ws) { parent.location.href=ws; } function initDown() { doDown(); moveme_onmousedown(); } function initUp() { doUp(); moveme_onmouseup(); } function initMove() { moveme_onmousemove(); } </script> </HEAD> <BODY onLoad='fix()' onScroll="fix()" onResize="fix()"> <span id="bar" style="position:absolute;left:0px;top:0px;width:500px; height:1px; z-index:9">上一页 [1] [2] [3] [4] [5] [6] 下一页
|
|
| 文章录入:54iter 责任编辑:54iter |
上一篇文章: javascript设计漫天雪花 下一篇文章: javascript制作闪烁的边框 |
| 【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |