ASP编写的一个简单的颜色吸取器

王朝asp·作者佚名  2006-01-09
宽屏版  字体: |||超大  

<%@ Language=VBScript %>

<%

' ASP Code will run on server and Make HTML Page

' Java Script will run on Client Side and Change the background color

' according to movement of Mouse

%>

<html>

<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>

<!--

function MakeColor(ThisColor) {

document.bgColor = ThisColor;

}

//-->

</SCRIPT>

<center>

<table cellspacing=2 Border="0">

<tr>

<%

Dim I1, I2, I3' Looping variables for RGB ColorFor I1 = 0 to 15 step 3

For I2 = 0 to 15 step 3

For I3 = 0 to 15 step 3

Color = Hex(I1) & Hex(I1) & Hex(I2) & Hex(I2) & Hex(I3) & Hex(I3)%>

<td bgcolor="#<%=Color%>">

<a href="#" LANGUAGE=javascript OnMouseOver="return MakeColor('#<%=Color%>');"><img src="clear.gif" width=10 height=10 border="0"></a>

</td>

<%

Next

Next

%>

</tr>

<tr>

<%

Next

%>

</tr>

</table>

</center>

</html>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有