查看單個文章
  #4  
舊 2013-04-28, 08:25 PM
668 的頭像
668 668 目前離線
進階會員
 
註冊日期: 2004-04-14
文章: 4,060
預設

可以了..

代碼:
<STYLE type=text/css>
A:link {COLOR: #007500; TEXT-DECORATION: none}
A:visited {COLOR: #007500; TEXT-DECORATION: none}
A:hover {COLOR: #800080; TEXT-DECORATION: none}
#ie5menu { BACKGROUND-COLOR: #d6e7e7; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; CURSOR: default; FONT-FAMILY: Verdana; FONT-SIZE: 10pt; LINE-HEIGHT: 18px; POSITION: absolute; VISIBILITY: hidden; WIDTH: 150px;   PADDING-LEFT: 10px; PADDING-RIGHT: 10px}

</STYLE>


<SCRIPT language=JavaScript1.2>
var display_url=0

function showmenuie5(){
ie5menu.style.left=document.body.scrollLeft+event.clientX
ie5menu.style.top=document.body.scrollTop+event.clientY
ie5menu.style.visibility="visible"
return false
}

function hidemenuie5(){
ie5menu.style.visibility="hidden"
}

function highlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor="highlight"
event.srcElement.style.color="white"
if (display_url==1)
window.status=event.srcElement.url
}
}

function lowlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor="#D6E7E7"
event.srcElement.style.color="black"
window.status=''
}
}

function jumptoie5(){
if (event.srcElement.className=="menuitems")
window.location=event.srcElement.url
}
</SCRIPT>

<DIV id=ie5menu onclick=jumptoie5() onmouseout=lowlightie5() 
onmouseover=highlightie5()>
<DIV  onclick="window.open('http://www.dinner.tw','new_window');" >料理美食通</DIV>
<DIV  onclick="window.open('http://www.domainclub.org','new_window');" >網域名稱俱樂部</DIV>
<DIV  onclick="window.open('http://tw.yahoo.com','new_window');" >Yahoo</DIV>
<DIV  onclick="window.open('http://www.0204.net','new_window');" >免費視訊</DIV>
<HR>

<DIV class=menuitems  
onclick="window.external.addFavorite('http://www.domainclub.org','網域名稱俱樂部') ;"  
url="javascript:history.go(0)">加入我的最愛</DIV></DIV> 
<SCRIPT language=JavaScript1.2>                                                                       
document.oncontextmenu=showmenuie5                                                                       
if (document.all&&window.print)                                                                       
document.body.onclick=hidemenuie5                                                                       
</SCRIPT>
回覆時引用此篇文章