20. Sample Code for Changing Styles <style type="text/css"> .notice { background-color:#FFFFCC; } .roInput { border:none; background-color:#FFFFFF; } </style> <script type="text/javascript"> // get the element to hold updated data var priceLoc = document.getElementById('priceLoc"); // update the data in price loc priceLoc.value = "new data"; // set the style so change will be noticed priceLoc.className = "notice"; // create timer to call clearActive() with element id and style name setTimeout("clearActive('priceLoc','roInput');", 5000); function clearActive(activeId, resetStyle) { var curActive = document.getElementById(activeId); curActive.className = resetStyle; } </script>