#1
變色視窗框邊 - 蛙 (Administrator) 發表於 12-5-2012 09:06
<DIV class=t_msgfont><STRONG><FONT color=purple>框邊顏色會跟視窗上落而轉變</FONT></STRONG></DIV>
<DIV class=t_msgfont><STRONG><BR><BR></STRONG><FONT color=blue><SCRIPT LANGUAGE="JavaScript"><BR><!--<BR><!--修改邊框顏色--><BR>colours=new Array('FF0000','FF9900','FFFF00','00FF00','00FFFF','0000FF','FF00FF')<BR>function gs(){<BR>var clrPos=Math.floor(Math.random()*colours.length)<BR>with (window.document.body.style){<BR><!--修改邊框寬度--><BR>borderWidth=15;<BR>borderStyle='dotted';<BR>borderColor=colours[clrPos];<BR>}}<BR>if (document.all)window.document.body.onscroll=gs;<BR>// --><BR></SCRIPT></FONT></DIV>
#2
複製上列語法 - 蛙 (Administrator) 發表於 25-5-2013 09:03
<form name="copy">
<textarea cols="40" name="txt" rows="4" style="BACKGROUND-COLOR:#ffffff; COLOR:#000000; FONT-SIZE:9pt">
<SCRIPT LANGUAGE="JavaScript">
<!--
<!--修改邊框顏色-->
colours=new Array('FF0000','FF9900','FFFF00','00FF00','00FFFF','0000FF','FF00FF')
function gs(){
var clrPos=Math.floor(Math.random()*colours.length)
with (window.document.body.style){
<!--修改邊框寬度-->
borderWidth=15;
borderStyle='dotted';
borderColor=colours[clrPos];
}}
if (document.all)window.document.body.onscroll=gs;
// -->
</SCRIPT>
</textarea><br>
<input onclick="javascript:this.form.txt.focus();this.form.txt.select();" type="button" value="全選">
</form>
<BR>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4078143172638881";
/* 336X280 */
google_ad_slot = "3268225205";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>