'palette' Example : palette « Javascript Properties « JavaScript Reference

'palette' Example

    
<html>
<body>
<embed id="myE" 
       palette="foreground" 
       src="youtfile.swf" 
       quality="high"
       pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" 
       width="250" 
       height="230">
</embed> 
<button onclick="function1();">Click Here</button>
<script language="JavaScript">
function function1() {
    var m = document.all.myE.palette;
    alert(m); 
} 
</script>
</body>
</html>

    
      
      








Related examples in the same category

1.'palette' Syntax and Note
2.'palette' is applied to