1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Prototype Test</title>
<style>
.hide {display:none;}
</style>
<script src="//ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js"></script>
<script type="text/javascript">
document.observe('dom:loaded', function() {
$('showme').removeClassName('hide');
});
</script>
</head>
<body>
<h1>Prototype Test</h1>
<p class="hide" id="showme">If you see this, Prototype is working.</p>
</body>
</html>
|