upgraded yui to 2.2.2 and yui-ext to 1.0.1a
This commit is contained in:
parent
4d9af2c691
commit
547ced6500
1992 changed files with 645731 additions and 0 deletions
38
www/extras/yui/examples/dom/removeclass.html
Normal file
38
www/extras/yui/examples/dom/removeclass.html
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>DOM Example: removeClass</title>
|
||||
|
||||
<script type="text/javascript" src="../../build/yahoo/yahoo.js"></script>
|
||||
<script type="text/javascript" src="../../build/event/event.js"></script>
|
||||
<script type="text/javascript" src="../../build/dom/dom.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
YAHOO.namespace('example.dom');
|
||||
|
||||
YAHOO.example.dom.init = function() {
|
||||
|
||||
var remove = function(e) {
|
||||
YAHOO.util.Dom.removeClass('test', 'foo');
|
||||
alert(document.getElementById('test').className);
|
||||
};
|
||||
|
||||
YAHOO.util.Event.addListener(document, 'click', remove);
|
||||
};
|
||||
|
||||
YAHOO.util.Event.addListener(window, 'load', YAHOO.example.dom.init);
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="css/dom.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="doc">
|
||||
<h1>DOM Example: removeClass</h1>
|
||||
<p>This example demonstrates how to use Dom.addClass to remove a class from a given element.</p>
|
||||
<p>Click anywhere to test.</p>
|
||||
<div class="bar foo" id="test"></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue