查看單個文章
  #2  
舊 2013-04-28, 09:23 AM
wufenpu wufenpu 目前離線
進階會員
 
註冊日期: 2007-12-13
文章: 1,703
預設

像這樣?

HTML 代碼:
<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: 8pt; LINE-HEIGHT: 17px; POSITION: absolute; VISIBILITY: hidden; WIDTH: 120px}
..menuitems { PADDING-LEFT: 15px; PADDING-RIGHT: 15px}
</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 class=menuitems onclick="window.open('http://www.dinner.tw','new_window');" >料理美食通</DIV>
<DIV class=menuitems onclick="window.open('http://www.domainclub.org','new_window');" >網域名稱俱樂部</DIV>
<DIV class=menuitems onclick="window.open('http://tw.yahoo.com','new_window');" >Yahoo</DIV>
<DIV class=menuitems 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>
__________________
香水 | 香氛
回覆時引用此篇文章