Re: how to change selection color?

Pascal Serwe <[email protected]> Fri, 3 Nov 2006 12:31:37 +0100
Newsgroups gmane.comp.mozilla.jrex
Message-ID <OFDA38210F.1063B494-ONC125721B.003E6775-C125721B.003F5AB1@adesso.de>
Hallo:

I do not know for sure, but you can get a node with 

getAnchorNode()
getFocusNode() 

If this node is an element you can set style atrributes:
selectedElement.setAttribute("style", "border-color: red; border-style: 
solid; border-width: 1");

If its not an Element you could take the parent (?).

Thats what i suggest but i never used selections.


Greetings,
Pascal









rĂ©mi <rpatriar-wMUr/[email protected]> 
Gesendet von: [email protected]
03.11.2006 11:53
Bitte antworten an
Java Browser Component based on Mozilla <[email protected]>


An
[email protected]
Kopie

Thema
[JRex] how to change selection color?






Hi Medappa and everybody!

Please could you tell me how to change the color of the selection?

Thanks for your help (it's very urgent)

Best regards,

Remi

_______________________________________________
JRex mailing list
[email protected]
http://mozdev.org/mailman/listinfo/jrex

_______________________________________________
JRex mailing list
[email protected]
http://mozdev.org/mailman/listinfo/jrex