JavaScript Reference/Javascript Properties/palette

Материал из Web эксперт
Перейти к: навигация, поиск

"palette" Example

    
<html>
<body>
<embed id="myE" 
       palette="foreground" 
       src="youtfile.swf" 
       quality="high"
       pluginspage="http://www.macromedia.ru/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>



"palette" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<embed>                                                       |
+----------------+--------------------------------------------------------------+



"palette" Syntax and Note

Note:
Read-only property. 
Returns the palette for <embed> element.
    
Syntax:
    
document.all.embedID.palette