中文(繁体)
<!--完整的HTML檔代碼如下:--> <HTML> <HEAD> <TITLE>建站學院-特效代碼->>滾動條顏色產生器IE5.5+</TITLE> <META http-equiv= Content-Type content="text/html; charset=gb2312"> <STYLE type=text/css> BODY { MARGIN: 25px 25px 25px } #all TD { FONT-SIZE: 12px; LINE-HEIGHT: 15pLY FONTFx; : "Verdana", "Arial","新宋體", "宋體" } INPUT { FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋體", "宋體" } SELECT { FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋體", "宋體" } P { FONT-SIZE: 12px; LINE-HEIGHT:; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋體", "宋體" } TEXTAREA { FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial", "新宋體", "宋體"; overflow: hidden; clip: rect( )} #all A:active { COLOR: #7d070c } #all A:visited { COLOR: #7d070c } #all A:hover { COLOR: #336699 } #all A:link { COLOR: #7d070c } .high { background-color: #006699; color: #FFFFFF; cursor: default} .target { color: #FFFFFF; background-color: #006699; border: 2px # CCCCCC solid} font { cursor: default} .hi { border: none; cursor: hand} </STYLE> <SCRIPT language=JavaScript> <!-- function MM_goToURL() { //v3.0 var i, args=MM_goToURL=MM_goToURL .arguments; document.MM_returnValue = false; for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+ "'"); } function JM_cc(ob){ var obj=MM_findObj(ob); if (obj) { obj.select();js=obj.createTextRange();js.execCommand("Copy");} } function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d. all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length ;i++) x=MM_findObj(n,d.layers[i].document); if(!x && document.getElementById) x=document.getElementById(n); return x; } //--> </SCRIPT> <META content="MSHTML 5.50.4134.600" name=GENERATOR> <script language="JavaScript"> function UpdateScroll(el) { //reCreated By downcodes.com var sB='<STYLE>nBODY {n';sE ='n}n</STYLE>';sR=/;/g if (document.body) { document.body.style[el.name] = el.value var obj=MM_findObj('js_1'); if (obj) { nCssText=document.body.style.cssText.replace(sR,";n"); obj.value=sB+nCssText+sE} } } function setColorPanel(colorStep){ //Created By Jimmy var colorPanelHTML="";colorCount=Math.round(255/colorStep); for (k=colorStep;k>=0;k--){ for (j=0;j<=colorStep;j++){ for (i= 0;i<=colorStep;i++){ colorPanelHTML+='<font size=3 color=RGB('+k*colorCount+','+i*colorCount+','+j*colorCount+')>■</font>' ; } } } //alert(colorPanelHTML); return colorPanelHTML; } function makeColorPanel(){ var cValueObj=MM_findObj('colorStepValue'); if(cValueObj){colorPanel.innerHTML=setPanorPanel(omfg; colorPa){ var colorPanelHTML=""; var cObj=MM_findObj('colorPa'); colorPa=cObj.value; //alert(cValueObj.value); for (i=0;i<=517;i++){ colorPanelHTML+==517;i++){ colorPanelHTML+= '<font size=3 color=RGB('+Math.round(Math.random()*colorPa)+','+Math.round(Math.random()*colorPa)+','+Math.round( Math.random()*colorPa)+')>■</font>'; } //alert(colorPanelHTML); colorPanel.innerHTML=colorPanelHTML } function showHideSet(ob){ ob.style.display=(ob.style. display)?'':'none'; } function high(ob){ ob.className=(ob.className=='target')?'target':'high'; } function low(ob){ ob.className =(ob.className=='target')?'target':''; } function setTarget(tob){ for (i=1;i<9;i++){ eval('e'+i).className= ''; } event.srcElement.className='target' obcurrentSet=MM_findObj('currentSet') obcurrentSet.value=tob //alert(obcurrentSet.value); } function setScroll(el) { //reCreated By 51JS.COM - Jimmy & Tantom var sB='<STYLE>nBODY {n';sE='n}n</STYLE>';sR=/;/g if (document.body) { document.body.style[ el.value] = el.value var obj=MM_findObj('js_1'); if (obj) { nCssText=document.body.style.cssText.replace(sR,";n"); obj.value=sB+ nCssText+sE} } } function choiceColor(){ obt=MM_findObj('currentSet') ob=MM_findObj(obt.value) ob.value=event.srcElement.color if (document.body) { document.body.style[obt .value] = ob.value var sB='<STYLE>nBODY {n';sE='n}n</STYLE>';sR=/;/g var obj=MM_findObj('js_1') ; if (obj) { nCssText=document.body.style.cssText.replace(sR,";n"); obj.value=sB+nCssText+sE} } } function hi(){ event.srcElement.className= 'hi'; } function lo(){ event.srcElement.className=''; } </script> </HEAD> <BODY id=all text=#000000 bgColor=#336699> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TR bgColor=#ffffff> <TD></TD> <TD width="100%"></TD> <TD></TD> </TR> </ TABLE> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TR bgColor=#ffffff> <TD></TD> <TD width="100%"> <table width="100% " border="0" cellpadding="8"> <tr> <td align="center"> <script language="JavaScript"> document.write("<font color=#7d070c style="font-size: 14px">"+document.title+"</font>"); </script> </td> </tr> <tr> <td bgcolor="#f7f7f7"> <font color="#990000">提示:</font>請注意你正在使用的瀏覽是否<font color="#990000"><b>IE5.5 </b> </font>:隨著IE6與wishter的出現,這種效果將被大量使用。 <br> <font color="#990000">注意:</font>複製使用時請註明出處<font color="#990000">www.downcodes.com</font><br> 使用:<br > 先選擇一種屬性然後點擊該屬性,你會看見屬性被選擇了.<br> <img src="imgs/step2.gif" width="30" height="30" align="absmiddle"> 現在你可以在顏色輸入內輸入顏色代碼[如Red,#ff000]或在調色盤中選擇一種色彩,<font color="#990000">此時請留意滾動條顏色的變化</font>! <br> 將程式碼顯示框內的程式碼複製到頁內.ok. <table id=props style="TABLE-LAYOUT: fixed"> <colgroup> <col width=130> <col width=250> <tbody> <tr> <th width="200" bgcolor="lightgrey"> <input type="hidden" name="currentSet" value="scrollbarBaseColor"> 顏色</th> <th bgcolor="lightgrey">屬性</ th> <th nowrap> </th> </tr> <tr> <td> <input onChange=UpdateScroll(this) name=scrollbar3dLightColor> </td> <td onMouseOver=high(this) onMouseOut=low(this) onClick=setTarget('scrollbar3dLightColor') id=e1>滾動條亮邊的顏色</td> <td rowspan="8"> <table width="100%" border="0" cellspacing="0" cellpadding= "0" align="center"> <tr> <td id=colorPanel style=display:'' onClick=choiceColor() onMouseOver=hi() onMouseOut=lo()> <object id="colorPicker1" type="text /x-scriptlet" data="http://www.downcodes.com"> </object> <script language="JScript" for="colorPicker1" event="onscriptletevent(name, eventData)"> <!-- if (name == "oncolorchange") { colorstr = "rgb(" + Math.round(256*eventData.r) + ", " + Math.round(256*eventData.g) +", " + Math.round (256*eventData.b) + ")"; newSetColor(colorstr) } //--> </script> <br> <script language="JavaScript"> function newSetColor(color_value){ obt=MM_findObj('currentSet' ) ob=MM_findObj(obt.value) ob.value=color_value if (document.body) { document.body.style[obt.value] = ob.value var sB='<STYLE>nBODY { n';sE ='n}n</STYLE>';sR=/;/g var obj=MM_findObj('js_1'); if (obj) { nCssText=document.body.style.cssText.replace(sR,"; n"); obj.value=sB+nCssText+sE} } } </script> </td> </tr> </table></td> </tr> <tr> <td> <input onChange =UpdateScroll(this) name=scrollbarArrowColor> </td> <td onMouseOver=high(this) onMouseOut=low(this) onClick=setTarget('scrollbarArrowColor') id=e2 >上下按鈕上三角箭頭的顏色</td> </tr> <tr> <td> <input onChange=UpdateScroll(this) name=scrollbarBaseColor> </td> <td onMouseOver=high(this) onMouseOut=low(this) onClick=setTarget('scrollbarBaseColor') id= e3 class="target">滾動條的基本顏色</td> </tr> <tr> <td> <input onChange=UpdateScroll(this) name=scrollbarDarkShadowColor> </td> <td onMouseOver=high(this) onMouseOut=low(this) onClick=setTarget('scrollbarDarkShadowColor') id=e4>滾動條強陰影的顏色</td> </tr> <tr> <td> <input onChange=UpdateScroll(this) name=scrollbarFaceColor> </td> <td onMouseOver=high(this) onMouseOut=low(this) onClick=setTarget('scrollbarFaceColor') id=e5>滾動條凸出部分的顏色</td> </tr> <tr> <td > <input onChange=UpdateScroll(this) name=scrollbarHighlightColor> </td> <td onMouseOver=high(this) onMouseOut=low(this) onClick=setTarget('scrollbarHighlightColor') id=e6>滾動條空白部分的顏色< /td> </tr> <tr> <td> <input onChange=UpdateScroll(this) name=scrollbarShadowColor> </td> <td onMouseOver=high(this) onMouseOut=low(this) onClick=setTarget('scrollbarShadowColor' ) id=e7>立體滾動條陰影的顏色</td> </tr> <tr> <td> <input onChange=UpdateScroll(this) name=scrollbarTrackColor> </td> <td onMouseOver=high(this) onMouseOut =low(this) onClick=setTarget('scrollbarTrackColor') id=e8>捲軸的背景顏色</td> </tr> </tbody> </table> </td> </tr> <tr> < td>1.將下面的程式碼複製到<head> 內<input type="button" name="Button" value="複製到我的剪貼簿" onClick=JM_cc('js_1')> <br> <form name="form1" method="post" action=""> <textarea name="js_1" wrap="VIRTUAL" cols="80" rows="10"></textarea> </form> </td> </tr> </table> </TD> <TD><IMG src="/images/space.gif" width=11 height="1"></TD> </TR> </TABLE> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TR bgColor=#ffffff> <TD></TD> <TD width="100%"></TD> <TD></TD> </TR> </TABLE> </BODY> </HTML>