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