網域名稱俱樂部


返回   網域名稱俱樂部 > 其他 > 問題意見與求助 > 網頁代碼特效求助
論壇幫助 社區 日曆事件 今日新文章 搜尋

主題: 網頁代碼特效求助 回覆主題
您的用戶名稱: 按此登入
隨機問題
標題:
  
訊息:
資訊圖示
您可以從下面的清單中選擇資訊圖示:
 

附加選項
其他選項

主題回顧 (新文章在前)
2013-04-28 09:40 PM
wufenpu ......
2013-04-28 08:25 PM
668 可以了..

代碼:
<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>
2013-04-28 05:25 PM
668 十分感謝...
但是原來的網頁卻連不上
桌面\undefined
你的會不會這樣?
2013-04-28 09:23 AM
wufenpu 像這樣?

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>
2013-04-28 08:23 AM
668
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 url="http://www.domainclub.org">網域名稱俱樂部</DIV>
<DIV class=menuitems url="http://tw.yahoo.com">Yahoo</DIV>
<DIV class=menuitems url="http://www.0204.net">免費視訊</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>

這個代碼特效可以自訂右鍵連結內容
如果更改內碼使其連結為開新視窗
請高手解答

發文規則
您可以發表新主題
您可以發表回覆
您不可以上傳附件
您不可以編輯自己的文章

啟用 BB 代碼
論壇啟用 表情符號
論壇啟用 [IMG] 代碼
論壇禁用 HTML 代碼


所有時間均為 +8。現在的時間是 04:01 PM。


本站主機由網易虛擬主機代管
Powered by vBulletin® 版本 3.8.4
版權所有 ©2000 - 2026,Jelsoft Enterprises Ltd.