noPCtoday
07-19-2007, 02:43 AM
I wrote a simple code to test scriptaculous, no matter what I change, it still wont run. Even this simplest one...
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="/js/prototype.js"></script>
<script src="/js/scriptaculous.js"></script>
<script language="javascript" type="text/javascript">
<!--
function lol()
{
alert ("test");
Effect.SlideUp("Random");
}
-->
</script>
</head>
<body onload="lol();">
<div style="background-color:black; width:200px; height:200px;" id="Random"><div>lollolollllllollllllll</div>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="/js/prototype.js"></script>
<script src="/js/scriptaculous.js"></script>
<script language="javascript" type="text/javascript">
<!--
function lol()
{
alert ("test");
Effect.SlideUp("Random");
}
-->
</script>
</head>
<body onload="lol();">
<div style="background-color:black; width:200px; height:200px;" id="Random"><div>lollolollllllollllllll</div>
</div>
</body>
</html>