reset and begin
8/13/2010

tạo dialog cơ bản

<html>
<body>
<script type="text/javascript">
function my_alert(title,content){
document.getElementById("dialog_title").innerHTML=title;
document.getElementById("dialog_content").innerHTML=content;
document.getElementById("dialog").style.display="block";
}
</script>
<div id="dialog" style="top:50px;left:100px;background-color:#ffffff;position:absolute;border:#ff0000 solid 1px; display:none;width:200px;margin:auto;z-index:1000">
<div id="dialog_title" style="background-color:blue; height:20px"></div>
<div id="dialog_content" style="height:200px"></div>
<div id="button" style="width:50px;cursor:default" onclick="document.getElementById('dialog').style.display='none'">OK</div>
</div>
<a href="javascript:my_alert('title here','content here');">Show</a>
</body>
</html>

Bloger Comments
G+ Comments
Comments FaceBook

No comments:

List

Profiles Information


About me : Nothing is 1 vài thứ - 1985

Places I've Lived : I Hà Nội

Home Page : http://www.shimivn.blogspot.com/

Think : 1:1000000000

Languages spoken : Vietnamese,English.

Mobile : sony C2305

dell : i3-Ram 3GB- HDD 250GB .