欢迎光临
我们一直在努力

ASP编写的一个简单的颜色吸取器-ASP教程,ASP应用

建站超值云服务器,限时71元/月

<%@ 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>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » ASP编写的一个简单的颜色吸取器-ASP教程,ASP应用
分享到: 更多 (0)