This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> | |
<style> | |
#div1 input {background:#CCC;} | |
#div1 .active {background:yellow;} | |
#div1 div {width:200px; height:200px; background:#CCC; display:none;} | |
</style> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>无标题文档</title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script> | |
function getstyle(obj,attr) | |
{ | |
if(obj.currentStyle) | |
{ | |
return obj.currentStyle[attr]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created with JetBrains WebStorm. | |
* User: Administrator | |
* Date: 13-3-27 | |
* Time: 下午8:15 | |
* To change this template use File | Settings | File Templates. | |
*/ | |
function getstyle(obj,attr) | |
{ | |
if(obj.currentStyle) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title> New Document </title> | |
<meta name="Generator" content="EditPlus"> | |
<meta name="Author" content=""> | |
<meta name="Keywords" content=""> | |
<meta name="Description" content=""> | |
<style> | |
.demo{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<style> | |
*{margin:0;padding:0;} | |
div{ | |
width:80px; | |
height:200px; | |
background:#ccc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<!--[if lt IE 10]> | |
<script type="text/javascript" src="pie/PIE.js"></script> | |
<![endif]--> | |
<script language="javascript"> | |
$(function() { | |
if (window.PIE) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<link href="style/zns_common.css" type="text/css" rel="stylesheet" /> | |
<link href="style/zns_headerbar.css" type="text/css" rel="stylesheet" /> | |
<!--[if IE 6]> | |
<script type="text/javascript" src="js/DD_belatedPNG_0.0.8a-min.js"></script> | |
<script type="text/javascript" src="js/ie6Fixpng.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onload=function() | |
{ | |
var oDiv=document.getElementById('div1'); | |
var oNavBox=oDiv.children[0]; | |
var oUl=oDiv.children[1]; | |
var aLi=oUl.children; | |
var opened=false;/*点击选择,是否显示还是隐藏*/ | |
var t=true;/*看看是否完成了显示,防止出现重影*/ | |
oNavBox.onclick=function() |