| javascript制作浮动的工具条 |
|
作者:网络 文章来源:转载 点击数: 更新时间:2006-1-19 |
| [ 字体:缩小 正常 放大 | 双击自动滚屏 ] |
请选择合适的字体颜色:
|
|
window.event.cancelBubble = true; } } if (document.all) { document.onmousedown = moveme_onmousedown; document.onmouseup = moveme_onmouseup; document.onmousemove = moveme_onmousemove; } function doOver() { var toEl = getReal(window.event.toElement, "className", "coolButton"); var fromEl = getReal(window.event.fromElement, "className", "coolButton"); if (toEl == fromEl) return; var el = toEl; var cDisabled = el.cDisabled; cDisabled = (cDisabled != null); if (el.className == "coolButton") el.onselectstart = new Function("return false"); if ((el.className == "coolButton") && !cDisabled) { makeRaised(el); makeGray(el,false); } } function doOut() { var toEl = getReal(window.event.toElement, "className", "coolButton"); var fromEl = getReal(window.event.fromElement, "className", "coolButton"); if (toEl == fromEl) return; var el = fromEl; var cDisabled = el.cDisabled; cDisabled = (cDisabled != null); var cToggle = el.cToggle; toggle_disabled = (cToggle != null); if (cToggle && el.value) { makePressed(el); makeGray(el,true); } else if ((el.className == "coolButton") && !cDisabled) { makeFlat(el); makeGray(el,true); } } function doDown() { el = getReal(window.event.srcElement, "className", "coolButton"); var cDisabled = el.cDisabled; cDisabled = (cDisabled != null); if ((el.className == "coolButton") && !cDisabled) { makePressed(el) } } function doUp() { el = getReal(window.event.srcElement, "className", "coolButton"); var cDisabled = el.cDisabled; cDisabled = (cDisabled != null); if ((el.className == "coolButton") && !cDisabled) { makeRaised(el); } } function getReal(el, type, value) { temp = el; while ((temp != null) && (temp.tagName != "BODY")) { if (eval("temp." + type) == value) {上一页 [1] [2] [3] [4] [5] [6] 下一页
|
|
| 文章录入:54iter 责任编辑:54iter |
上一篇文章: javascript设计漫天雪花 下一篇文章: javascript制作闪烁的边框 |
| 【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |