"MrKillington" <Mr*****************@mail.forum4designers.com> wrote in
message news:Mr*****************@mail.forum4designers.com. ..
<snip>
... . all i get, though, is an error on the page.
You don't see any reason to mention what that error actually was?
here's what i've pared it down to:
How? Why?
var Temp = document.all[("s"+divNum)];
Temp.style["display"] = "block";
Assuming the browser implements the Microsoft proprietary -
document.all - collection, the mark-up is as described, the ID is unique
on the page (and does not correspond with any NAME attributes), the
browser implements a - style - object on its element objects and
recognises and responds to the dynamic setting of the - display -
property on that - style - object, then the above code should behave as
expected.
Of course you are the only person in a position to tell if all of those
assumptions are correct, as you have not provided that information to
us.
... javascript:openMenu(0).
So is that a javascript: pseudo protocol HREF on a link (in which case:-
<URL: http://www.jibbering.com/faq/#FAQ4_24 >
- and don't do that) or is it an event handling attribute with a
superfluous label, and if so, with which element is it associated? The
DIV? Some other element?
<snip>p.s. sorry for the capitalization, the shift key on
this keyboard doesn't work very well >_<
In a plain text medium like Usenet details like capitalisation and
formatting can go a long way towards improving communication. Simple
things like separating paragraphs (and code blocks) with a blank line
make reading posts considerably easier. And you do not encourage people
to help by discouraging them from reading your question.
<snip> Posted via http://www.forum4designers.com
<snip>
Beyond the fact that the totally inappropriate presentation of
comp.lang.javescript on forum4designers.com serves to inhibit the
comprehension of most of the code presented on the group, the fact that
forum4designers.com attempted to perpetrate a deception as to the nature
of the service they were providing and still do not adequately attribute
the sources of their content has resulted in a certain level of enmity
for forum4designes.com developing on Usenet. As a result
forum4designers.com is probably an unwise place to ask for help from,
and it is certainly not a good place to read comp.lang.javascript from.
You would probably be best off accessing Usenet through some sort of
newsreader software (and your ISP's news server(s)), and if web based
assess is all that is possible for you groups.coogle.com present
comp.lang.javascript in an undistorted from and allow posting to the
group. There are also numerous other providers of web based access, some
of which do a reasonable job of presenting the group, and none of which
have yet achieved the negative reputation of forum4designers.com.
Richard.