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

推荐订阅源

The Last Watchdog
The Last Watchdog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
Y
Y Combinator Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
博客园_首页
小众软件
小众软件
I
InfoQ
J
Java Code Geeks
月光博客
月光博客
S
Secure Thoughts
Microsoft Security Blog
Microsoft Security Blog
V
Visual Studio Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Stack Overflow Blog
Stack Overflow Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
N
News and Events Feed by Topic
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Cloudflare Blog
T
Threat Research - Cisco Blogs
A
About on SuperTechFans
H
Help Net Security
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Latest news
Latest news
G
GRAHAM CLULEY
IT之家
IT之家
C
Cisco Blogs
Last Week in AI
Last Week in AI
Engineering at Meta
Engineering at Meta
L
LangChain Blog
The Register - Security
The Register - Security
SecWiki News
SecWiki News
M
MIT News - Artificial intelligence
NISL@THU
NISL@THU
T
Tenable Blog
博客园 - Franky
美团技术团队
I
Intezer
U
Unit 42
雷峰网
雷峰网
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
SegmentFault 最新的问题
C
Cyber Attacks, Cyber Crime and Cyber Security

博客园 - 真的很菜

用户中心 - 博客园 求助:DataGrid加行号的问题 C++Builder 2007 对谷歌输入发的一点疑虑 开始练习VS2003了 VC++.NET编译的问题 SQL查询结果的合并问题 Visual studio 2005 sdk 安装引起的后果 几个微软的好东西! SQL 查询,请帮忙 Visual studio 已安装模版错误怎么解决? 想学ASP建站,有几个问题,请帮忙解决,谢谢! Win2003 IIS配置asp的问题 不要轻易删除/windows/install下文件 xp下安装sqlserver2000提示有挂起 Daemon Tools手工完全卸载方案 [转]将visual studio 2005 SP1补丁整合到安装文件 转:FTP命令全集(收藏) TurboTweaks-解除Turbo Explorer限制
一个JS的问题,请帮下忙!
真的很菜 · 2007-05-26 · via 博客园 - 真的很菜

做一个树,可以展开,我刚学JS,一下午都没搞出,头疼的很,问下大家

主文件

<body onclick="menuChange();">
<div align="left">Windows核心编程</div>
<span class="menu"  id="menu1">程序员必读</span>

<div id="submenu1" style="display:none">
<div class="indent">
<p><href="11.html">定义自己的错误代码</a></p>
<p><href="12.html">字符集</a></p>
<p><href="13.html">需要注意的问题</a></p>
<p><href="14.html">对COM的简单说明</a></p>
</div>
</div>

<link href="tree.css" rel="stylesheet" type="text/css">
<script language="javascript" type="text/javascript" src="tree.js"></script>
<style type="text/css">

tree.js

<!--
function menuChange()
{
    
var src;
    
var subId;
    
if(window.event.srcElement.className=="menu")
    
{
        subId
="sub"+window.event.srcElement.id;
        
if(document.all(subId).style.display=="none")
        
{
        document.all(subId).style.display
=="block";
            
            
            }

            
else
            
{
                document.all(subId).style.display
=="none";
                }

        }

}

//-->
        

打开时,停在“程序员必读”上,怎么点也展不开,我怀疑是subid=....这句错了,但对JS真的不懂,请指点下