惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
SecWiki News
SecWiki News
Project Zero
Project Zero
C
Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
P
Privacy International News Feed
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Scott Helme
Scott Helme
A
Arctic Wolf
Security Latest
Security Latest
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy & Cybersecurity Law Blog
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
The Hacker News
The Hacker News
T
Tenable Blog
雷峰网
雷峰网
有赞技术团队
有赞技术团队
V
V2EX
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threat Research - Cisco Blogs
T
Threatpost
AWS News Blog
AWS News Blog
L
LINUX DO - 热门话题
Application and Cybersecurity Blog
Application and Cybersecurity Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
SegmentFault 最新的问题
月光博客
月光博客
Spread Privacy
Spread Privacy
S
Secure Thoughts
宝玉的分享
宝玉的分享
博客园 - 三生石上(FineUI控件)
Forbes - Security
Forbes - Security
T
The Exploit Database - CXSecurity.com
G
GRAHAM CLULEY
The Last Watchdog
The Last Watchdog
Y
Y Combinator Blog
I
Intezer
博客园 - 【当耐特】
B
Blog RSS Feed
Attack and Defense Labs
Attack and Defense Labs
I
InfoQ
博客园 - 叶小钗
Cyberwarzone
Cyberwarzone
V2EX - 技术
V2EX - 技术
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
H
Help Net Security
C
CERT Recently Published Vulnerability Notes

博客园 - 上善若水-water

TextBox 的 KeyEventArgs事件触发 【转】- 回车键触发Button按钮事件 【转】- 按回车键实现登录-- JS实现 【转】silverlight中文英文版本不匹配问题解决方法 【转】-ajax中Accordion动态生成菜单代码 【转】大白话之C#系列-- C#委托与事件 【转】【收藏】- LINQ体验(7)——LINQ to SQL语句之Group By/Having和Exists/In/Any/All/Contains 【转】十天学会php【之前收藏,出处未知】 【转】仿google首页下端图片文字导航下载-【之前收藏,出处未知】 【转】Visual Studio 快捷键 【转】10 个强大的开源 Web 流量分析工具 【转】ubuntu下PHP环境搭建 安装HDwiki 【转】 推荐几款功能强大的PHP编辑器 【转】.NET开源项目介绍及资源推荐:日志记录 【转】【ObfusPro 2010】 .NET混淆保护工具发布 【转】使用Dotfuscator混淆处理融入DotNet ClickOnce发布(超经典,测试已通过,转发的,吐血推荐,不看也收藏了)简称:混淆发布 【转】工作感言:任务分配及管理 - 上善若水-water - 博客园 OpenExpressApp 框架 ,是一个组合体 【转】Sandcastle----强大的C#文档生成工具
JS 显示/隐藏 的例子 - 上善若水-water
上善若水-water · 2010-05-18 · via 博客园 - 上善若水-water

JS 显示/隐藏 的例子

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>js显示隐藏层</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function showdiv(targetid,objN){
  
      var target=document.getElementById(targetid);
      var clicktext=document.getElementById(objN)

            if (target.style.display=="block"){
                target.style.display="none";
                clicktext.innerText="点击查看详细信息";
 

            } else {
                target.style.display="block";
                clicktext.innerText='关闭详细信息信息';
            }
  
}
-->
</script>
<style type="text/css">
<!--

body { font: normal 14px "宋体" }

a { text-decoration: none; }

#showtext { cursor: hand; cursor:pointer;}
#showtext2 { cursor: hand; cursor:pointer;}
#contentid { margin-top: 10px; width: 470px; border: 1px solid #CCC; background: #F1F1F1; padding: 15px; }
#contentid2 { margin-top: 10px; width: 470px; border: 1px solid #CCC; background: #F1F1F1; padding: 15px; }
.none { display: none; }
-->
</style>
</head>

<body>
<a id="showtext" onClick="showdiv('contentid','showtext')">点击查看详细信息</a>
<div id="contentid" class="none">打开的内容</div>
<p></p>
<a id="showtext2" onClick="showdiv('contentid2','showtext2')">点击查看详细信息</a>
<div id="contentid2" class="none">1、帅有个屁用!到头来还不是被卒吃掉!<br />
2.不怕被人利用,就怕你没用。<br />
3.人生自古谁无死,哪个拉*不用纸。<br />
4.生的伟大,死在花下!<br />
5.有钱人终成眷属。<br />
6.废话是人际关系的第一句。 <br />
7.只要锄头舞的好,那有墙角挖不倒?<br />
8.要在江湖混,最好是光棍!! <br />
9.大部分人一辈子只做三件事:自欺、欺人、被人欺。<br />
10.不要和我比懒,我懒得和你比<br />
11.别人的钱财乃我的身外之物。<br />
12.女为悦己者容男为悦己者穷! <br />
13.是镜子,总会反光的… 是金子,总会花光的;<br />
14.天赐你一双翅膀,就应该被红烧… <br />
15.唯女人与英语难过也(看到这句话我真难过,不过我家门前有条小溪更难过的),唯老婆与工作难找也.<br />
</div>

</body>


</html>