[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: change Text Color



If you read the docs, it states that text and links cannot be changed once
that page is drawn.

Andy

At 11:44 PM 2/27/96 -0100, Olaf Walkowiak wrote:
>Hi out there, maybe someone can help me..
>
>I try to change the Color of both background an Text in a function. 
>Background work, but the textcolor doesent change at all...
>
>I put in the code below:
>
>----------------------------------------------
>function ChangeColors()
>{
>	alert("enter changecolor");	
>
>	Obj = self.document.Colors.txtcolor;
>	i = Obj.selectedIndex;
>	var col = Obj.options[i].text;
>	alert("Textcolor will be " + col);
>	top.main.document.fgcolor = col;	
>	alert("Ist der Text jetzt " + col + "?");
>
>	Obj = self.document.Colors.bgcolor;
>	i = Obj.selectedIndex;
>	col = Obj.options[i].text;
>	alert(" The Backgound will be " + col);
>	top.main.document.bgColor = col;	
>}
>---------------------------------------- 
>
>The alerts show the right value, but Text color doesnt change, what am I 
>doing wrong?
>
>Thanks for help
>Olaf
>_____________________________________________________________________
>Olaf Walkowiak, Suedeseestr.14, D-45145 Essen, Phone:+49-201-604594
>si0015@aixrs1.hrz.uni-essen.de			OlafWal@aol.com
>URL:http://www.bikeconn.de/com/bikeconn/hotel/olaf	(Homepage)
>URL:http://www.bikeconn.de/com/bikeconn/hotel/olaf/java (JavaScript)
>_____________________________________________________________________
>Request PGP public key by E-Mail
>PGP fingerprint: 55 BF 58 7A E9 DC FF 28 33 31 A6 B8 FB A1 28 A6
>
>--------------------------------------------------------------------
>This message came from the mailing list javascript. For help using the
>mailing list software, please send a message to 'majordomo@obscure.org'
>with the message body 'help'. To unsubscribe, send a message to
>'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
>
>

--------------------------------------------------------------------
This message came from the mailing list javascript. For help using the
mailing list software, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.