网站首页
技术文章
客户案例
联系方式
信息搜索
深山工作室
>
网页链接十字显示就像CAD十字做标一样,效果非常好
以下为详细代码
网页链接十字显示就像CAD十字做标一样,效果非常好 <!--要完成此效果需要两个步骤--> 第一步:把如下代码加入到<head>区域中--> <style type="text/css"> #leftright{ position:absolute; left:0; top:0; width:1px; height:1px; layer-background-color:black; background-color:#CC9900; z-index:100; font-size:0px; } #topdown { position:absolute; left:0; top:0; width:1px; height:1px; layer-background-color:black; background-color:#CC9900; z-index:100; font-size:0px; } a { color: #CC9900; text-decoration: none; cursor: default} a:hover { color: #FF0000; text-decoration: none; cursor: default} .article { BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; FILTER: revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5); POSITION: absolute; VISIBILITY: hidden ; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; color: #CC9900} </style> <SCRIPT> function high(which2){ theobject=which2 highlighting=setInterval("highlightit(theobject)",50) } function low(which2){ clearInterval(highlighting) which2.filters.alpha.opacity=40 } function highlightit(cur2){ if (cur2.filters.alpha.opacity<100) cur2.filters.alpha.opacity+=10 else if (window.highlighting) clearInterval(highlighting) } function navChange(formName, popupName, target) { var popup = document[formName].elements[popupName]; if (popup.options[popup.selectedIndex].value != "") { window.open(popup.options[popup.selectedIndex].value, target); popup.selectedIndex=0; } } function Show(divid) { divid.filters.revealTrans.apply(); divid.style.visibility = "visible"; divid.filters.revealTrans.play(); } function Hide(divid) { divid.filters.revealTrans.apply(); divid.style.visibility = "hidden"; divid.filters.revealTrans.play(); } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } </script> <script> function tmt_LayerSlider(targetNN, targetIE, x, y, step, delay) { var changed = false; if (document.layers) { target = eval(targetNN); if (eval(target.moving)) { clearTimeout(target.tmtSlide); } if (target.left > x) { target.left -= eval(step); changed = true; } if (target.left < x) { target.left += eval(step); changed = true; } if (target.top > y) { target.top -= eval(step); changed = true; } if (target.top < y) { target.top += eval(step); changed = true; } if (changed) { target.moving = true; target.tmtSlide = setTimeout("tmt_LayerSlider(\"" + targetNN + "\",\"" + targetIE + "\",\"" + x + "\",\"" + y + "\",\"" + step + "\",\"" + delay + "\")", delay); } else { target.moving = false; } } else { if (document.all) { IEobjStr = targetIE.replace("['", "."); target = eval(IEobjStr.replace("']", "")); if (eval(target.moving)) { clearTimeout(target.tmtSlide); } if (target.style.pixelLeft > x) { target.style.pixelLeft -= eval(step); changed = true; } if (target.style.pixelLeft < x) { target.style.pixelLeft += eval(step); changed = true; } if (target.style.pixelTop > y) { target.style.pixelTop -= eval(step); changed = true; } if (target.style.pixelTop < y) { target.style.pixelTop += eval(step); changed = true; } if (changed) { target.moving = true; target.tmtSlide = setTimeout("tmt_LayerSlider(\"" + targetNN + "\",\"" + targetIE + "\",\"" + x + "\",\"" + y + "\",\"" + step + "\",\"" + delay + "\")", delay); } else { target.moving = false; } } } } </script> <!--第二步:把如下代码加入到<body>区域中--> <div id="leftright" style="width:expression(document.body.clientWidth-2)"></div> <div id="topdown" style="height:expression(document.body.clientHeight-2)"></div> <div id="Layer1" style="position:absolute; left:328px; top:216px; width:50px; height:20px; z-index:101; visibility: hidden" class="article">010101101010101010100101010101010 </div> <div id="Layer2" style="position:absolute; left:328px; top:116px; width:50px; height:20px; z-index:102" class="article">10101110010110101010101010101</div> <p> </p> <p> </p> <p> </p> <table width="300" border="0" cellspacing="0" cellpadding="0" height="128"> <tr> <td height="50" align="right" class="my001"><a href="#" onMouseOut="tmt_LayerSlider('document.layers[\'leftright\']','document.all[\'leftright\']','0','0','22','50');tmt_LayerSlider('document.layers[\'topdown\']','document.all[\'topdown\']','0','0','32','50');Hide(Layer2)" onMouseOver="tmt_LayerSlider('document.layers[\'leftright\']','document.all[\'leftright\']','0','150','22','50');tmt_LayerSlider('document.layers[\'topdown\']','document.all[\'topdown\']','260','0','32','50');Show(Layer2)" class="my001" onFocus="if(this.blur)this.blur()">jojoo </a></td> </tr> <tr> <td height="120" align="right"><a href="#" onMouseOut="tmt_LayerSlider('document.layers[\'leftright\']','document.all[\'leftright\']','0','0','22','50');tmt_LayerSlider('document.layers[\'topdown\']','document.all[\'topdown\']','0','0','32','50');Hide(Layer1)" onMouseOver="tmt_LayerSlider('document.layers[\'leftright\']','document.all[\'leftright\']','0','223','22','50');tmt_LayerSlider('document.layers[\'topdown\']','document.all[\'topdown\']','260','0','32','50');Show(Layer1)" onFocus="if(this.blur)this.blur()">linlin </a></td> </tr> </table>
前一页:
防止点击空链接时,页面往往重置到页首端
后一页:
设置个性的文字链接样式,集齐网页上常见的链接样式
相关阅读
网页链接十字显示就像CAD十字做标一样,效果非常好
CSS光标属性一览表
Photoshop中精典实用技巧
JavaScript的40种网页常用小技巧
更多>>
链接特效相关信息
a标签的javascript链接
网站内容中某个关键字相关右键菜单
利用锚点做纯CSS的图片展示效果
QQ邮箱文件中转站点击下载效果
Div+CSS+JS树型菜单,可刷新
更多>>
最新添加
dw里面查找替换使用正则删除sqlserver里面的CONSTRAINT
Android移动端自动化测试:使用UIAutomatorViewer与Selenium定位元素
抖音直播音挂载小雪花 懂车帝小程序
javascript获取浏览器指纹可以用来做投票
火狐Mozilla Firefox出现:无法载入您的Firefox配置文件 它可能已经丢失 或是无法访问 问题解决集合处理办法
百度小程序开发
HTML
微信小程序开发
微信公众号开发
uni-app
asp函数库
ASP
下载类信息
DIV+CSS
个人空间
代码生成
SEO搜索引擎忧化
asp.net
电商
python
页面特效
表格特效
导航菜单
图形特效
表单特效
时间日期
色彩类别
链接特效
网页特效
系统硬件
网站公告
网页学习
技术类文章
网站类信息
旅行社网站案例
旅行社微信案例
头条抖音小程序案例
百度小程序案例
微信小程序案例
小程序案例
旅行社网站案例
投票案例
企业网站建设案例
Copyright ©
深山工作室
All Rights Reserved
服务QQ:
565449214
手机:
13961347334
ICP备案:
苏ICP备15019627号
苏公网安备 32070502010230号
网站首页
业务范围
服务案例
投票系统
联系方式
电话联系