The function is called when the value of any textbox on the page changes, and simply says: document.getElementById("box").style=backgroundColorccblack; Should I have quotes somewhere in here? I do not deal much with the style attrib.
Have a great day, Alex
----- Original Message ----- From: "Holdsworth, Lynn" <Lynn.Holdsworth@xxxxxxxxxxx To: <programmingblind@xxxxxxxxxxxxx Date sent: Thu, 18 Jun 2009 08:23:46 +0100 Subject: RE: box in html?
Hi Alex,
What are you doing with JS to change the background colour of the
span?
Have you tried adding the background to the span's inline CSS
just to
see if it does create a black box?
Cheers, Lynn -----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Alex
Hall
Sent: 18 June 2009 05:08 To: programmingblind@xxxxxxxxxxxxx Subject: box in html?
Hi all,I am trying to create a black box on a page. I adjust the color
with
js, but why does the following html not create the box itself? <span style="height:100; width:100"></span> Thanks.
Have a great day, Alex __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
-- DISCLAIMER:
NOTICE: The information contained in this email and any
attachments is
confidential and may be privileged. If you are not the intendedrecipient you should not use, disclose, distribute or copy any of
the
content of it or of any attachment; you are requested to notify
the
sender immediately of your receipt of the email and then to
delete it
and any attachments from your system.
RNIB endeavours to ensure that emails and any attachments
generated by
its staff are free from viruses or other contaminants. However,
it
cannot accept any responsibility for any such which are
transmitted.
We therefore recommend you scan all attachments.
Please note that the statements and views expressed in this email
and
any attachments are those of the author and do not necessarily
represent
those of RNIB.
RNIB Registered Charity Number: 226227
Website: http://www.rnib.org.uk
This message has been scanned for viruses by Websense Hosted
Security -
http://www.websense.com/content/HostedEmailSecurity.aspx
__________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind