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

推荐订阅源

Jina AI
Jina AI
The Hacker News
The Hacker News
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
IT之家
IT之家
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
AI
AI
罗磊的独立博客
B
Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Check Point Blog
D
DataBreaches.Net
T
Threat Research - Cisco Blogs
I
InfoQ
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
L
Lohrmann on Cybersecurity
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - Franky
C
Cybersecurity and Infrastructure Security Agency CISA
C
Cisco Blogs
MongoDB | Blog
MongoDB | Blog
P
Privacy & Cybersecurity Law Blog
Cisco Talos Blog
Cisco Talos Blog
P
Privacy International News Feed
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
博客园_首页
I
Intezer
云风的 BLOG
云风的 BLOG
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
美团技术团队
Simon Willison's Weblog
Simon Willison's Weblog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
腾讯CDC
T
Troy Hunt's Blog
Know Your Adversary
Know Your Adversary
U
Unit 42

博客园 - 真的很菜

用户中心 - 博客园 求助: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真的不懂,请指点下