Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I hide the components in IE as well as Netscape....

 
Sanjay Bahrani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I am trying to hide the link in Netscape but was not successful cauze Netscape doesnt support <div> tags and if I use layers then IE doesnt support layers.
How can i achieve this thing if i run the same html file on Netscape as well as IE....
If you have any suggessions plz. fwd it to me.
Thankz....
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a couple of ideas:
1) Use style sheets and set the visibility attribute to hidden or visible as appropriate for the element you wish to hide/show.
2) Use javascript to write your component dynamically based upon which browser is viewing it. For example, if you determine that I am using NS to view your page, use document.write() to add your layers. If I am in IE then you could use DIV.
HTH
[This message has been edited by Bodie Minster (edited May 08, 2001).]
 
Sanjay Bahrani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bodie Minster:
I have a couple of ideas:
1) Use style sheets and set the visibility attribute to hidden or visible as appropriate for the element you wish to hide/show.
2) Use javascript to write your component dynamically based upon which browser is viewing it. For example, if you determine that I am using NS to view your page, use document.write() to add your layers. If I am in IE then you could use DIV.
HTH
[This message has been edited by Bodie Minster (edited May 08, 2001).]

Hi there,
Yeah you are right, Can you send me some code for example.....
Thankz.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like this, for example:

The other suggestion that I made was to test for which browser you are using and write your elements dynamically based on that. For example:

HTH Bodie ���
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic