﻿{"id":199,"date":"2010-05-25T12:16:32","date_gmt":"2010-05-25T04:16:32","guid":{"rendered":"http:\/\/nick.workao.org\/?p=199"},"modified":"2010-05-25T12:16:32","modified_gmt":"2010-05-25T04:16:32","slug":"flash-wmode%e5%8f%82%e6%95%b0%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/nick.txtcc.com\/index.php\/other\/199","title":{"rendered":"flash wmode\u53c2\u6570\u8be6\u89e3"},"content":{"rendered":"<div>\n\n\u5728\u505aweb\u5f00\u53d1\u4e2d\u53ef\u80fd\u4f1a\u9047\u5230flash\u906e\u6321\u9875\u9762\u4e2d\u5143\u7d20\u7684\u60c5\u51b5\uff0c\u65e0\u8bba\u600e\u4e48\u8bbe\u7f6eflash  \u5bb9\u5668\u548c\u5c42\u7684\u6df1\u5ea6(z-index)\u4e5f\u65e0\u6d4e\u4e8e\u4e8b\uff0c\u73b0\u6709\u7684\u89e3\u51b3\u65b9\u6848\u662f\u5728\u63d2\u5165flash\u7684embed\u6216object\u6807\u7b7e\u4e2d\u52a0\u5165\u201dwmode\u201d\u5c5e\u6027\u5e76\u8bbe\u7f6e\u4e3a  wmode=\u201ctransparent\u201d\u6216\u201dopaque\u201d\uff0c\u4f46wmode\u5c5e\u6027\u5230\u5e95\u662f\u4ec0\u4e48\u610f\u4e49\uff0c\u4e3a\u4ec0\u4e48\u53ef\u4ee5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u5462\uff1f\n\n<strong>window mode(wmode)<\/strong>\n\nwmode\u5373\u7a97\u53e3\u6a21\u5f0f\u603b\u5171\u6709\u4e09\u79cd\uff0c\u770b\u770b\u5f53\u5e74Macromedia\u5b98\u65b9\u7684\u8bf4\u6cd5\uff1a\n<ul>\n    <li>Window: Use the Window value to play a Flash Player movie in its  own rectangular window on a web page. This is the default value for  wmode and it works the way the classic Flash Player works. This normally  provides the fastest animation performance.<\/li>\n    <li>Opaque: By using the Opaque value you can use JavaScript to move  or resize movies that don\u2019t need a transparent background. Opaque mode  makes the movie hide everything behind it on the page. Additionally,  opaque mode moves elements behind Flash movies (for example, with  dynamic HTML) to prevent them from showing through.<\/li>\n    <li>Transparent: Transparent mode allows the background of the HTML  page, or the DHTML layer underneath the Flash movie or layer, to show  through all the transparent portions of the movie. This allows you to  overlap the movie with other elements of the HTML page. Animation  performance might be slower when you use this value.<\/li>\n<\/ul>\n<strong>window \u6a21\u5f0f<\/strong>\n\n\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u7684\u663e\u793a\u6a21\u5f0f\uff0c\u5728\u8fd9\u79cd\u6a21\u5f0f\u4e0bflash  player\u6709\u81ea\u5df1\u7684\u7a97\u53e3\u53e5\u67c4\uff0c\u8fd9\u5c31\u610f\u5473\u7740flash\u5f71\u7247\u662f\u5b58\u5728\u4e8eWindows\u4e2d\u7684\u4e00\u4e2a\u663e\u793a\u5b9e\u4f8b\uff0c\u5e76\u4e14\u662f\u5728\u6d4f\u89c8\u5668\u6838\u5fc3\u663e\u793a\u7a97\u53e3\u4e4b\u4e0a\u7684\uff0c\u6240\u4ee5flash\u53ea   \u662f\u8c8c\u4f3c\u663e\u793a\u5728\u6d4f\u89c8\u5668\u4e2d\uff0c\u4f46\u8fd9\u4e5f\u662fflash\u6700\u5feb\u6700\u6709\u6548\u7387\u7684\u6e32\u67d3\u6a21\u5f0f\u3002\u7531\u4e8e\u4ed6\u662f\u72ec\u7acb\u4e8e\u6d4f\u89c8\u5668\u7684HTML\u6e32\u67d3\u8868\u9762\uff0c\u8fd9\u5c31\u5bfc\u81f4\u9ed8\u8ba4\u663e\u793a\u65b9\u5f0f\u4e0bflash\u603b\u662f\u4f1a\u906e  \u4f4f\u4f4d\u7f6e\u4e0e\u4ed6\u91cd\u5408\u7684\u6240\u6709DHTML\u5c42\u3002\n\n\u4f46\u662f\u5927\u591a\u6570\u82f9\u679c\u7535\u8111\u6d4f\u89c8\u5668\u4f1a\u5141\u8bb8DHTML\u5c42\u663e\u793a\u5728flash\u4e4b\u4e0a\uff0c\u4f46\u5f53flash\u5f71\u7247\u64ad\u653e\u65f6\u4f1a\u51fa\u73b0\u6bd4\u8f83\u8be1\u5f02\u7684\u73b0\u8c61\uff0c\u6bd4\u5982DHTML\u5c42\u50cf\u88ab flash\u522e\u6389\u4e00\u5757\u4e00\u6837\u663e\u793a\u5f02\u5e38\u3002\n\n<strong>Opaque \u6a21\u5f0f<\/strong>\n\n\u8fd9\u662f\u4e00\u79cd\u65e0\u7a97\u53e3\u6a21\u5f0f\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0bflash player\u6ca1\u6709\u81ea\u5df1\u7684\u7a97\u53e3\u53e5\u67c4\uff0c\u8fd9\u5c31\u9700\u8981\u6d4f\u89c8\u5668\u9700\u8981\u544a\u8bc9flash  player\u5728\u6d4f\u89c8\u5668\u7684\u6e32\u67d3\u8868\u9762\u7ed8\u5236\u7684\u65f6\u95f4\u548c\u4f4d\u7f6e\u3002\u8fd9\u65f6flash\u5f71\u7247\u5c31\u4e0d\u4f1a\u5728\u9ad8\u4e8e\u6d4f\u89c8\u5668HTML\u6e32\u67d3\u8868\u9762\u800c\u662f\u4e0e\u5176\u4ed6\u5143\u7d20\u4e00\u6837\u5728\u540c\u4e00\u4e2a\u9875\u9762\u4e0a,\u56e0\u6b64\u4f60\u5c31\u53ef  \u4ee5\u4f7f\u7528z-index\u503c\u6765\u63a7\u5236DHTML\u5143\u7d20\u662f\u906e\u76d6flash\u6216\u8005\u88ab\u906e\u76d6\u3002\n\n<strong>Transparent \u6a21\u5f0f<\/strong>\n\n\u900f\u660e\u6a21\u5f0f\uff0c\u5728\u8fd9\u79cd\u6a21\u5f0f\u4e0bflash  player\u4f1a\u5c06stage\u7684\u80cc\u666f\u8272alpha\u503c\u5c06\u4e3a0\u5e76\u4e14\u53ea\u4f1a\u7ed8\u5236stage\u4e0a\u771f\u5b9e\u53ef\u89c1\u7684\u5bf9\u8c61\uff0c\u540c\u6837\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528z-index\u6765\u63a7\u5236flash\u5f71\u7247\u7684  \u6df1\u5ea6\u503c\uff0c\u4f46\u662f\u4e0eOpaque\u6a21\u5f0f\u4e0d\u540c\u7684\u662f\u8fd9\u6837\u505a\u4f1a\u964d\u4f4eflash\u5f71\u7247\u7684\u56de\u653e\u6548\u679c\uff0c\u800c\u4e14\u57289.0.115\u4e4b\u524d\u7684flash  player\u7248\u672c\u8bbe\u7f6ewmode=\u201dopaque\u201d\u6216\u201dtransparent\u201d\u4f1a\u5bfc\u81f4\u5168\u5c4f\u6a21\u5f0f\u5931\u6548\u3002\n\n\u4e86\u89e3\u4e86\u5404\u79cd\u6a21\u5f0f\u7684\u5b9e\u73b0\u65b9\u5f0f\u548c\u610f\u4e49\u5728\u4ee5\u540e\u7684\u5f00\u53d1\u4e2d\u5c31\u53ef\u4ee5\u6309\u7167\u5177\u4f53\u60c5\u51b5\u9009\u62e9\u8bbe\u7f6ewmode\u5c5e\u6027\u7684\u503c\u4e86\u3002\n\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\u5728\u505aweb\u5f00\u53d1\u4e2d\u53ef\u80fd\u4f1a\u9047\u5230flash\u906e\u6321\u9875\u9762\u4e2d\u5143\u7d20\u7684\u60c5\u51b5\uff0c\u65e0\u8bba\u600e\u4e48\u8bbe\u7f6eflash \u5bb9\u5668\u548c\u5c42\u7684\u6df1\u5ea6(z-index)\u4e5f\u65e0\u6d4e\u4e8e\u4e8b\uff0c\u73b0\u6709\u7684\u89e3\u51b3\u65b9\u6848\u662f\u5728\u63d2\u5165flash\u7684embed\u6216object\u6807\u7b7e\u4e2d\u52a0\u5165\u201dwm&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[142,143],"class_list":["post-199","post","type-post","status-publish","format-standard","hentry","category-other","tag-flash","tag-wmode"],"_links":{"self":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=199"}],"version-history":[{"count":1,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/199\/revisions"}],"predecessor-version":[{"id":200,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/199\/revisions\/200"}],"wp:attachment":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}