JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old October 15th, 2003, 09:46 AM
theo7880 theo7880 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 2 theo7880 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation problem with getElementByld ans frames

Hi,

I am changing a site in order to be compatible with Netscape 6+.
I want to make a <div> not visible in order to see the next one .

I know that getElementByld is necessairy but i cant use it.

Here is the code ....

var isNetscape = (navigator.appName.substring(0,8)=="Netscape")
<script...>...

function noMoreFlash() {
if (isNetscape) {
/*code avant document.layers['animationLayer'].visibility = "hide";
*/
document.getElementByld("animationLayer").style.visibility = "hidden";
/*document.layers['missionLayer'].visibility = "show";*/

document.getElementByld
("missionLayer").style.visibility = "visible";
}
else ...
}

</script>

....

<div id="animationLayer" style="position:absolute; width:554; height:402; z-index:0; left: 99px; top: -15px; background-color: #FFCC00; layer-background-color: #FFCC00; border: 1px none #000000 ; visibility: visible">
.......
</div>

...

<div id="missionLayer" style="position:absolute; width:393px; height:32px; z-index:3; left: 67px; top: 12px; visibility: hidden
.... </div>

missionLayer and animationLayer are the id of my DIV.
What i must change..???


Thanks alot, sorry for mu english

Reply With Quote
  #2  
Old October 15th, 2003, 03:43 PM
EiSa EiSa is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Norway
Posts: 184 EiSa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 24 sec
Reputation Power: 6
Not an expert on this (have only done this once with a different code), but I think that you should not use <div ....; visibility: hidden> but instead write it like this:

<div.... style="display:none">

And also try to change

document.getElementByld("animationLayer").style.visibility = "hidden";

into

document.getElementByld("animationLayer").style.display = "none";

I'm not able to find the sources that helped me with my code, but when I did it like this it worked with my code. (Tested with Opera, NS 7.01 and IE 6).

Reply With Quote
  #3  
Old October 15th, 2003, 07:46 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Note that there is a big difference between 'hidden' and 'none'.
http://www.mikepick.com/news/archives/000119.html

Reply With Quote
  #4  
Old October 16th, 2003, 09:30 AM
theo7880 theo7880 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 2 theo7880 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Wink I try but..

Thanks a lot for your help, i tried but nothing happens. IE support with no problem my code but not Setscape 7.
I think that he dont like my frames...

So i will create a simplify version for Netscape


thanks again

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > problem with getElementByld ans frames


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway