javascript 效果

弹出信息框,支持多种浏览器,很多的配置参数。
http://www.walterzorn.com/tooltip/tooltip_e.htm

使用javascript实现层和图片的拖拽。
http://www.walterzorn.com/dragdrop/dragdrop_e.htm

javascript画图库
http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm

javascript 隐藏div

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ded.aspx.cs" Inherits="ded" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>oec2003</title>
<style type="text/css">
<!--
#layout {
 border: 2px solid #A9C9E2;
 background-color: #E8F5FE;
 height: 200px;
  300px;
}
-->
</style>

<script language="JavaScript" type="text/JavaScript">
function toggle(targetid)
{     if (document.getElementById)
        {         target=document.getElementById(targetid);            
      if (target.style.display=="block")
   {  target.style.display="none";}
   else {target.style.display="block";}} }
             </script>
    <style type="text/css">
     < #layout{ background-color:#000000; height:400px; 400px;

display:none; }>
              </style>
</head>
<body>
<input type="button" id="butn" value="显示/隐藏" onClick="toggle('layout')" />
<center> <div id="layout"></div></center> 居中的DIV </body>
</html>

原文地址:https://www.cnblogs.com/quanhai/p/1438867.html