2022年javascript制作浮动的工具条CSSHTML教程.docx
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《2022年javascript制作浮动的工具条CSSHTML教程.docx》由会员分享,可在线阅读,更多相关《2022年javascript制作浮动的工具条CSSHTML教程.docx(13页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、2022年javascript制作浮动的工具条CSSHTML教程该程序是我从别人的网站上分析出来的!由于对方的网站运用了框架,而且又取消了鼠标的右键功能,因此费了好长时间!当你阅读该页时,工具条始终浮在左上角,你若不喜爱,可以自己调整摆放位置!若想多页运用该代码,可以把JSP程序部分写成JS的文件,然后再通过调用来实现,有不明白的地方,欢迎各位与我沟通!<HTML><HEAD><TITLE></TITLE><META http-equiv=Content-Type content=text/html; charset=gb2312&
2、gt;<STYLE type=text/css>.wdBlack{ font-size:9pt; line-height:11pt; font-family:宋体; color:black }.wdGray{ font-size:9pt; line-height:11pt; font-family:宋体; color:#CCCCCC }.wdBlue{ font-size:9pt; line-height:11pt; font-family:宋体; color:#2F8BDF }.wdRed{ font-size
3、:9pt; line-height:11pt; font-family:宋体; color:red }.wdWhite{ font-size:9pt; line-height:11pt; font-family:宋体; color:white }.moveme{cursor: move;}.handle{cursor: move;}.coolBar{background: #fffffc;border-top: 1px solid buttonhighlight; border-left: 1px solid bu
4、ttonhighlight; border-bottom: 1px solid buttonshadow; border-right: 1px solid buttonshadow; padding: 2px; font: menu;}.coolButton{font-size:9pt;border: 1px solid buttonface; padding: 1px; text-align: center; cursor: hand;color:#555555}.coolButton IMG {filter: gray();} div
5、23; font-size:9pt; line-height:11pt; font-family:宋体; color:black }Text{ font-size:9pt; line-height:11pt; font-family:宋体; color:black }INPUT{ font-size:9pt; line-height:11pt; font-family:宋体; color:black }table{ font-size:9pt; line-height:11pt; font-family:宋体; color:black
6、 }body{ font-size:9pt; line-height:11pt; font-family:宋体; color:black }form{ font-size:9pt; line-height:11pt; font-family:宋体; color:black }A:link{ font-size:9pt; font-family:宋体; text-decoration: none; color:#2F8BDF }A:visited{ font-size:9pt; font-family:宋体; tex
7、t-decoration: none; color:#2F8BDF }A:hover{ font-size:9pt; font-family:宋体; text-decoration: underline; color:#FF0000 }</STYLE><script language=javascript>var dragobject = null;var tx;var ty;document.onmouseover = doOver;document.onmouseout = doOut;document.onmousedown = do
8、Down;document.onmouseup = doUp;document.onmousedown=initDown;document.onmouseup=initUp;document.onmousemove=initMove;function stat(){var a = pageYOffset;document.bar.top = a;setTimeout(stat(),2);}function fix(){nome=navigator.appNameif(nome=Netscape) stat();else{var a=document.bo
9、dy.scrollTop;var b=document.body.scrollLeft;bar.style.top = a;bar.style.left = b;}}function getReal(el) {temp = el;while (temp != null) (temp.tagName != BODY) {if (temp.className = moveme) | (temp.className = handle){el = temp;return el;}temp = temp.parentElement;}
10、return el;}function moveme_onmousedown() {el = getReal(window.event.srcElement)if (el.className = moveme) {dragobject = el;ty = (window.event.clientY - dragobject.style.pixelTop);tx = (window.event.clientX - dragobject.style.pixelLeft);window.event.returnValue = false;window.event.can
11、celBubble = true;}else if (el.className = handle) {tmp = el.getAttribute(for);if (tmp != null) {el = eval(tmp);dragobject = el;ty = (window.event.clientY - dragobject.style.pixelTop);tx = (window.event.clientX - dragobject.style.pixelLeft);window.event.returnValue = false;window.event
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022 106 avascript 制作 浮动 工具条 CSSHTML 教程
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内