|
![]() |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
<%@ 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> 返回类别: 教程 上一教程: 在ADO使用SELECT语法一 下一教程: 在ASP中自动创建多级文件夹的函数(使用FSO) 您可以阅读与"ASP编写的一个简朴的颜色吸取器"相关的教程: · 自己写的一个简朴ASP调用存储过程查询 · ASP编写完整的一个IP所在地搜索类 · ASP分页的一个类 · 一个简朴的ASP分页程序 · 用asp.net编写的上传程序 |
![]() ![]() |
快精灵印艺坊 版权所有 |
首页![]() ![]() ![]() ![]() ![]() ![]() ![]() |