首页 域名主机 文章教程 汽车频道 酷车图集 博客之家 网址之家 资源下载 在线音乐 本站论坛
  你现在的位置:首页>>文章教程>>网页编程>>ASP教程>>正文
 
ASP编写的一个简单的颜色吸取器
 
[2004-12-30] 来源: 作者:极点学网收集整理  爱我梅州商务网 
 

<%@ 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 Color
For I1 = 0 to 15 step 3
For I2 = 0 to 15 step 3
For I3 = 0 to 15 step 3
Color = Hex(I1) amp; Hex(I1) amp; Hex(I2) amp; Hex(I2) amp; Hex(I3) amp; Hex(I3)%>
<td bgcolor=#<%=Color%>>
<a href=# LANGUAGE=javascript OnMouseOver=return MakeColor('#<%=Color%>');>
<img src="http://test.lovemz.com/Files/article/059201280228836.gif" width=10 height=10 border=0></a>
</td>
<%
Next
Next
%>
</tr>
<tr>
<%
Next
%>
</tr>
</table>
</center>
</htmlgt
 
上一篇文章:在asp聊天室里实现房间功能和用户显示
下一篇文章:没有了
本文章为原作者版权所有,如有侵犯您的权益请通知我们,我们会在24小时以内删除
最新5篇热点文章
最新5篇推荐文章
相关文章

关于我们 | 广告刊登 | 合作伙伴 | 友情链接 | 意见反馈 | 帮助HELP| 网站地图

版权所有 Copyright © 2002-2005 爱我梅州商务网
粤ICP备05105236号