Results 1 to 12 of 12

Thread: layers-Netscape

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2001
    Posts
    150

    layers-Netscape

    Does anybody know what is the propriety we have to put here

    document.layers['uuu'].?????? = 'orange';

    it's program in Netscape so it's not color

    and if anyone know ow to make your text bold, it would be awsome

    thanxs

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    I'm sorry, I don't ever use "layers" because I'm not finding it as part of any standard. Check the standards documentation. I would be very interested to know if "layers" is part of the standard.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2001
    Posts
    150
    If your using Netscape it.....

    Netscape only support layers when you want to use your <DIV> tags, and play with the font,color, etc.......

  4. #4
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140

    Uhm, again... no.

    Funny, this code works in Netscape, IE, and Opera, and there is no layer since layer isn't part of any standard.

    Code:
    <html>
    
      <head>
        <script type="text/javascript">
          function ChangeColor(myColor) {
            var currEl = document.getElementById("myText");
    
            currEl.style.color = myColor;
          }
        </script>
      </head>
    
      <body>
    
        <div id="myText">This is my test text.</div>
    
        <table>
          <tr>
            <td><a href="JavaScript:ChangeColor('#0000ff');">Blue</a></td>
            <td><a href="JavaScript:ChangeColor('#00ff00');">Green</a></td>
          </tr>
        </table>
    
      </body>
    
    </html>
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2001
    Posts
    150
    This element of codes makes me an error....don't know

    var currEl = document.getElementById("myText");

    do you have to write something in that function??

    Thanxs

  6. #6
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Are you using Netscape or Navigator?

    In other words, what version are you using?
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Oct 2001
    Posts
    150
    Netscape 4.7......i'me sorry my english, it's because i'me french

    so my langage can be hard to understand sometimes

  8. #8
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Ah, that is your problem. Navigator came out before the standards were set. Thus it came out with Sun/Netscape's JavaScript bindings.

    Sorry, the code I posted is all standards compliant. You need to use a newer browser.

    Netscape 6, Internet Explorer 5.5, or Opera 5.12.

    Older browsers (Netscape Navigator, Netscape Communicator, and IE 4.x) came out before the standard and as such, do not support the standard.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Oct 2001
    Posts
    150
    I see.........

    Thanxs anyway, you've bin a great help

    I'll just have to work with layers

  10. #10
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    As an aside...

    J'ai étudié la français pours duex ans dans lycee.

    I know enough to know that punctuation rules are the same in these two languages.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Oct 2001
    Posts
    150
    Comme sa tu es un "smart", oh excusé moi Monsieur!!!

    Tu as quel age??

    Sa fait pas des années que je programme, et non c'est completement différent s'exprimer en anglais lorsque vient le temps de discuter en langage informatique

    Excuse moi Monsieur CYBERHUG

  12. #12
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    A few points...

    You use better punctuation in your French than in your English. Since these rules are the same, I can only assume it is meant as disrespect.

    Ciber is spelled with an I. It is the name of a company, it is not a misspelling of "cyber".

    I am 26. The last time I studied French was in '92.

    And you are excused.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width