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

推荐订阅源

Engineering at Meta
Engineering at Meta
博客园_首页
H
Help Net Security
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
B
Blog
I
InfoQ
SecWiki News
SecWiki News
T
Tailwind CSS Blog
Spread Privacy
Spread Privacy
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Vulnerabilities – Threatpost
N
Netflix TechBlog - Medium
P
Palo Alto Networks Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Vercel News
Vercel News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
K
Kaspersky official blog
M
MIT News - Artificial intelligence
S
Schneier on Security
T
Threat Research - Cisco Blogs
F
Fortinet All Blogs
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
The Cloudflare Blog
Recent Announcements
Recent Announcements
Security Latest
Security Latest
G
GRAHAM CLULEY
IT之家
IT之家
Y
Y Combinator Blog
The Last Watchdog
The Last Watchdog
腾讯CDC
Google DeepMind News
Google DeepMind News
V
V2EX
S
Securelist
TaoSecurity Blog
TaoSecurity Blog
B
Blog RSS Feed
S
SegmentFault 最新的问题
博客园 - 叶小钗
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
Project Zero
Project Zero
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
F
Full Disclosure

博客园 - 传说一梦

在class文件中读取Tomcat站点的根目录 我的新Blog文章 今天,我正式更换了自己的Blog空间 介绍两种国内访问Blogger.com的方式 absolute方式并不是好的Oracle分页查询方式 谈谈Ajax的“异步” 微软也会存在的Ajax误区——强制刷新页面内容 SVN Web Client中文修订版下载 词点——点评词汇,共享您的智慧! Java中从Orcle里取出数据时,为什么提示“无效的列索引” [链接] Ajax相关 推荐两款Firefox加速软件 取当月数据的算法 关于Linux下C语言编译器gcc不认识bool类型的问题 [专题] Ajax三种数据格式的读取实例 关于Ajax中XMLHttpRequest对象的status属性值问题 Window Live Toolbar 初体验 贵的比便宜的好? 庆祝杭州移动电视诞生一周年
Scriptaculous 中的 "... getStyle is not a function." 错误
传说一梦 · 2006-06-20 · via 博客园 - 传说一梦

  Scriptaculous库是建造在Prototype之上的UI组件,主要提供DOM元素的动画效果(如:http://digg.com/spy淡出效果)和拖放。目前针对它的开发很活跃,不断会有新的内容添加进来。

  我在使用Scriptaculous的Effect.SlideDown函数时,出现下列错误:

            错误: $(element.firstChild).getStyle is not a function
            源文件:file:///C:/TDdownload/scriptaculous-js-1.6.1/src/effects.js
            行:699

  查看Scriptaculous自带的示例文件:$scriptaculous-js-1.6.1\test\functional\effects4_test.html,发现在调用Effect.SlideDown函数的标签下,必需再套一层标签(<div>、<font>等都可以):

<href="#" onclick="new Effect.SlideDown('d1',{duration:1.5}); return false;"> SlideDown </a><div id="d1"><div style="overflow:hidden">
Lorem ipsum dolor sit amet, consectetuer adipiscing 
</div></div>

否则,就会出现前面的错误。