[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Background color problem with dynamic XSL transfor

Subject: Re: Background color problem with dynamic XSL transformations
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Mon, 16 Jul 2001 13:20:56 -0400
xsl dynamic background color
[Kevin Nardi]
>
>
> >I've noticed that IE interprets HTML differently depending on whether it
is
> >static or dynamic.  The dynamic HTML seems to be interpreted much more
> >strictly.  Try "silver" instead of "Silver", or if that doesn't work, try
a
> >hexidecimal value.
> >

How are you trying to change the bgcolor dynamically, and what object are
you trying to change the color of?

When I change the bgcolor of the document, I can only change it during the
onload event, otherwise the new color flashes for a second and then goes
away.  However, If I set it in the onload event, I do get silver when I ask
for 'silver'.  I got the same behavior on IE5.5, NS4.73, and NS 6.1.

Here's what I did:

<html>
<head>
<script language='javascript'>

function changecolor(){
 document.bgColor='silver'
}

</script>
</head>

<body onload='changecolor()'>
<h3>This is a test of dynamically setting the document bgcolor</h3>

</body>
</html>

Tom P


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.