在创建之前调用id [英] calling an id before he was created
问题描述
嗨大家
i需要在创建之前调用一个ID因为我想更改他的
显示状态(无:阻止)而我不想加载他并且只有在
之后才加载他来改变他的显示设置。
i尝试了一个unValid techniuqe-在体内动态写入,
couse只有在那里我可以这样做,一个样式标签,它使显示器变得明显,但我不能在体内放置样式标签。
任何想法?
Hi Guys
i need to call an ID before he was created cause i want to change his
display status (none:block) and i dont want to load him and only after
he was loaded to change his display settings.
i tried an unValid techniuqe- to write on the fly inside the body,
couse only there i can do so, a style tag that chage the display
definitions, but i cannot place a style tag inside the body.
any ideas?
推荐答案
neoswf在1/11/2006上午5:12发表以下内容:
neoswf said the following on 1/11/2006 5:12 AM:
嗨大家
我需要在创建之前调用一个ID因为我想改变他的显示状态(无:阻止)而且我不想加载他并且只有在
之后他被装上以改变他的显示设置。
Hi Guys
i need to call an ID before he was created cause i want to change his
display status (none:block) and i dont want to load him and only after
he was loaded to change his display settings.
< style type =" text / css">
#IDThatDoesntExistYet {
display:none;
}
< / style>
-
兰迪
comp.lang.javascript常见问题 - http://jibbering.com/faq &新闻组每周
Javascript最佳实践 - http://www.JavascriptToolbox .com / bestpractices /
<style type="text/css">
#IDThatDoesntExistYet{
display: none;
}
</style>
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
但这个ID还不存在
生病再尝试解释 - 我使用JS,并通过JS我问是否和id存在。如果他还没有在HTML中创建,那么
不能问他是否存在。
现在你看到我的观点了吗?
***通过开发人员指南 http://www.developersdex.com 发送* **
but this ID isnt exist yet
ill try to explain again- i use JS, and by JS i ask if and id exist. i
cannot ask if he exist if he havent been created yet in the HTML.
now u see my point?
*** Sent via Developersdex http://www.developersdex.com ***
neoswf写道:
neoswf wrote:
并且只有在他加载后才能更改他的显示设置。
and only after he was loaded to change his display settings.
不要这样做。新闻:57 **************** @ PointedEars.de
PointedEars
Do not do that. news:57****************@PointedEars.de
PointedEars
这篇关于在创建之前调用id的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!