[Javascript] crossbrowser problems

Tim Laureska hometeam at goeaston.net
Tue Jun 11 13:05:58 CDT 2002


Laurent.... thank you... that wasn't the only problem...it turned out to be
a simple synatax thing..
many thanks
Tim
----- Original Message -----
From: "Muchacho, Laurent (TWIi London)" <LMuchacho at twii.net>
To: <javascript at LaTech.edu>
Sent: June 11, 2002 10:38 AM
Subject: RE: [Javascript] crossbrowser problems


> Hi tim
> Try that way
>
> var div_array = new Array("divOne", "divTwo", "divThree", "divFour");
> function changeDiv(the_div, change)
> {
> getObj(the_div).visibility = change;
> }
>
> function getObj(divName)
> {
>   if (document.getElementById)
>   {
> this.style= document.getElementById(divName).style;
>   }
>   else if (document.all)
>   {
> this.style = document.all[divName].style;
>   }
>   else if (document.layers)
>   {
>    this.style = document.layers[divName];
>   }
> return this.style;
> }
> function closeAll()
> {
>     for (var loop=0; loop < div_array.length; loop++)
>     {
>        changeDiv(div_array[loop], "hidden");
>
>     }
> }
>
> I test it and it's almost working you must check the name of the first div
> you call it theDiv and in your array the name is divOne
>
> Good luck Laurent
>
>
> -----Original Message-----
> From: Tim Laureska [mailto:hometeam at goeaston.net]
> Sent: 10 June 2002 22:38
> To: javascript at LaTech.edu
> Subject: [Javascript] crossbrowser problems
>
>
> Hello... i'm new to this list (and new to javascript) but am hoping for
some
> patient help :-)
> Can someone help me understand why this menu won't display the correct
> columns underneath the headings.... I had to change the javascript for
cross
> browser comaptibility and ever since then, I've been stuck...
>
> This link shows you the way the menu should look, but this only works in
IE
> 5+
> http://63.151.47.189/menu_old2.html
>
> This link shows the one I'm struggling with to get it to work "cross
> browser" (graphics & text content aside)
> http://63.151.47.189/menu_netscape6_test5.html
>
>
> The code can be seen in the source at
> Thanks in Advance
> Tim Laureska
>
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
> DISCLAIMER - The preceding e-mail message (including any attachments)
> contains information that may be confidential, may be protected by the
> attorney-client or other applicable privileges, or may constitute
non-public
> information.  It is intended to be conveyed only to the designated
> recipient(s) named above.  If you are not an intended recipient of this
> message, or have otherwise received it in error, please notify the sender
by
> replying to this message and then delete all copies of it from your
computer
> system.  Any use, dissemination, distribution, or reproduction of this
> message by unintended recipients is not authorized and may be unlawful.
The
> contents of this communication do not necessarily represent the views of
> this company.
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>






More information about the Javascript mailing list