1 | <!doctype html> |
---|
2 | <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
---|
3 | <head> |
---|
4 | <title>BorderColor Test</title> |
---|
5 | <style type="text/css"> |
---|
6 | .C { border-width: 2px; border-style: solid; border-color: #ff40ff; } |
---|
7 | .C1 { border-color: yellow purple; } |
---|
8 | </style> |
---|
9 | <script type="text/javascript" src="http://jquery-ui.googlecode.com/svn/trunk/jquery-1.3.2.js"></script> |
---|
10 | <script type="text/javascript" src="../trunk/ui/effects.core.js"></script> |
---|
11 | <script type="text/javascript"> |
---|
12 | $(function() { |
---|
13 | $('#go').click(function() { $("#d").addClass('C1', 1000); }); |
---|
14 | }) |
---|
15 | </script> |
---|
16 | </head> |
---|
17 | <body> |
---|
18 | <div id="d" class="C">This border should change color when you click animate</div> |
---|
19 | <button id="go">Animate</button> |
---|
20 | </body> |
---|