2007-12-27

Rico.Shadow Example

关键字: rico.shadow
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Rico LiveGrid-Example 4</title>


<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/rico.js" type="text/javascript"></script>
<script src="js/ricoCommon.js" type="text/javascript"></script>

<link href="js/css/ricoGrid.css" type="text/css" rel="stylesheet" />

<div id="aaa" name="aaa" class="ricoLG_messageDiv">------<br>-----------</div>

<script type="text/javascript">

$("aaa").style.top='0px';
$("aaa").style.left='0px';

var sa = new Rico.Shadow( $("aaa") );


$("aaa").innerHTML="hello!";

function sss()
{
$("aaa").style.display = "";
sa.show();

}

function hss()
{
$("aaa").style.display = "none";
sa.hide();
}


</script>

</head>

<body>


<br><br><br><br><br><br><br><br><br>
<input type='button' value="show me" onclick="sss()"><br>
<input type='button' value="hide me" onclick="hss()"><br>

</body>
</html>
评论
发表评论

您还没有登录,请登录后发表评论