※ 捲軸快速連結 ※
|
<span id="staticcombo" style="position: absolute; left: 0; top: 0; visibility: hidden; width: 280; height: 56"> <form name="jumpy"> <p><select name="example" size="1" onChange="gone()"> <option value="#">快速連結!</option> <option value="power-1.htm">動力資訊網</option> <option value="http://www.24cc.com">免費轉址</option> <option value="http://www.kimo.com.tw">奇摩站</option> <option value="http://www.hinet.net">中華電信</option> </select> <script language="javascript"> <!-- function gone() { location=document.jumpy.example.options[document.jumpy.example.selectedIndex].value } //--> </script> <input type="button" name="test" value="Go!" onClick="gone()"></p> </form> </span><script language="JavaScript1.2"> var combowidth='' var comboheight='' function initialize(){ if (document.all){ combowidth=staticcombo.offsetWidth comboheight=staticcombo.offsetHeight setInterval("staticit_ie()",50) staticcombo.style.visibility="visible" } else if (document.layers){ combowidth=document.staticcombo.document.width comboheight=document.staticcombo.document.height setInterval("staticit_ns()",50) document.staticcombo.visibility="show" } } function staticit_ie(){ staticcombo.style.pixelLeft=document.body.scrollLeft+document.body.clientWidth-combowidth-30 staticcombo.style.pixelTop=document.body.scrollTop+document.body.clientHeight-comboheight } function staticit_ns(){ document.staticcombo.left=pageXOffset+window.innerWidth-combowidth-30 document.staticcombo.top=pageYOffset+window.innerHeight-comboheight } window.onload=initialize </script> |