笨笨網站超級論壇 (綠色版本)


頁: [1]

#1  變色立體視窗框邊 -  (Administrator) 發表於 12-5-2012 09:18

立體窗框上下轉動時會變顏色


<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='ridge';
borderColor=colours[clrPos];
}}
if (document.all)window.document.body.onscroll=gs;
// -->
</SCRIPT>

#2  複製上列語法 -  (Administrator) 發表於 25-5-2013 09:06

<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='ridge';
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>
頁: [1]

Powered by Discuz Simply! 0.54 Released © wxyuan90