<% @ 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) & Hex (I1) & Hex (I2) & Hex (I2) & Hex (I3) & Hex (I3) %>
<Td bgcolor = "# <% = Color %>">
<A href = "#" LANGUAGE = javascript OnMouseOver = "return MakeColor ('# <% = Color %>');">
</a>
</Td>
<%
Next
Next
%>
</Tr>
<Tr>
<%
Next
%>
</Tr>
</Table>
</Center>
</Html>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service