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

推荐订阅源

K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
腾讯CDC
The Cloudflare Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
D
Docker
W
WeLiveSecurity
L
LINUX DO - 最新话题
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
Recent Announcements
Recent Announcements
Application and Cybersecurity Blog
Application and Cybersecurity Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
S
Secure Thoughts
The Last Watchdog
The Last Watchdog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Y
Y Combinator Blog
月光博客
月光博客
N
News | PayPal Newsroom
WordPress大学
WordPress大学
Webroot Blog
Webroot Blog
Cloudbric
Cloudbric
F
Full Disclosure
有赞技术团队
有赞技术团队
Security Archives - TechRepublic
Security Archives - TechRepublic
T
Tailwind CSS Blog
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
P
Privacy & Cybersecurity Law Blog
H
Hacker News: Front Page
T
Troy Hunt's Blog
SecWiki News
SecWiki News
美团技术团队
博客园 - 司徒正美
S
Schneier on Security
P
Palo Alto Networks Blog
宝玉的分享
宝玉的分享
Attack and Defense Labs
Attack and Defense Labs
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
PCI Perspectives
PCI Perspectives
Cyberwarzone
Cyberwarzone
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
IT之家
IT之家
V2EX - 技术
V2EX - 技术
Vercel News
Vercel News
C
CERT Recently Published Vulnerability Notes

博客园 - 真的很菜

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