网页十字显现
要完成此效果需要两个步骤
第一步:把如下代码加入到<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);
|