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

推荐订阅源

P
Proofpoint News Feed
Vercel News
Vercel News
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 聂微东
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
小众软件
小众软件
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Apple Machine Learning Research
Apple Machine Learning Research
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
B
Blog RSS Feed
U
Unit 42
Y
Y Combinator Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
The Register - Security
The Register - Security
量子位
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Privacy & Cybersecurity Law Blog
Scott Helme
Scott Helme
GbyAI
GbyAI
Know Your Adversary
Know Your Adversary
月光博客
月光博客
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Stack Overflow Blog
Stack Overflow Blog
S
Secure Thoughts
L
Lohrmann on Cybersecurity
腾讯CDC
P
Palo Alto Networks Blog
MongoDB | Blog
MongoDB | Blog
T
Tor Project blog
博客园_首页
W
WeLiveSecurity
G
Google Developers Blog
K
Kaspersky official blog
爱范儿
爱范儿
V
Visual Studio Blog
T
Threat Research - Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
F
Fortinet All Blogs
T
The Exploit Database - CXSecurity.com
N
News and Events Feed by Topic
Last Week in AI
Last Week in AI
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans

博客园 - 真的很菜

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