問題FacebookのようにボタンをWindows Firefox
-
28-09-2019 - |
質問
私のfacebookのようなボタン(iFrame版)を重ねの上にフルブラウザのFlash。のようにボタンを接続のような別々の画像に適用し、それぞれの新しい画像を表示するようなボタンでリフレッシュデータを用いExternalInterface.
のようにボタン薄出のための新しい画像を用JQuery fadeIn()/fadeOut()もって呼び出されExternalInterface.
にんにはWindowsではないようにしたがってアルバイトをするためにFirefox具体的には...
CSS:
html {
height: 100%;
overflow: hidden;
min-width: 800px;
min-height: 600px;
}
#flashContent {
position: absolute;
top: 0px;
left: 0px;
height: 100%;
width: 100%;
z-index: 1;
}
body {
margin: 0;
padding: 0;
background-color: #000000;
}
#fb-like {
position: absolute;
bottom: 32px;
left: 510px;
width: 280px;
z-index: 9999;
display: none;
}
fbでは、本部長を含むiFrameでのz-indexが9999だけであることを確認しい。
こちらはJS利用
<script type="text/javascript">
var isVisible = false;
function showLikeButton( visible ){
if( visible == true )
{
$('#fb-like').fadeIn( 'slow' );
isVisible = true;
}
else if ( isVisible )
{
$('#fb-like').fadeOut( 'slow' );
isVisible = false;
}
}
var begOfUrl = "http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmywebsite.com%2fdirectory";
var endOfUrl = "&layout=button_count&show_faces=false&width=150&action=like&colorscheme=dark&height=21";
function sendIdToLikeButton( title, id ){
$( '#facebook-like' ).attr( 'src', begOfUrl + "%3Fid=" + id + endOfUrl );
}
</script>
のsendIdToLikeButton方法は、idの写真から送信されFlashを使用ExternalInterfaceを再現するsrc属性のiFrame.
もちろん、これはflashアプリケーションの最小限のHTML:
<body>
<div id="fb-like">
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnfb.designaxiom.com/build13&layout=button_count&show_faces=false&width=150&action=like&colorscheme=dark&height=21" scrolling="no" frameborder="0" style="position: absolute; border:none; overflow:hidden; width:300px; height:40px;" allowTransparency="true" id="facebook-like"></iframe>
</div>
<div id="flashContent">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
</div>
</body>
この作品のものを除き、Firefox Windowsをお使いいただくことによっています。私はこではエラーのCSS、Javascriptのどこかということです。
のお役に立てるようですぞよろしくお願い申し上げます。
よろしくお願いします。
文法
解決
やっとねこのしカップルの週のです。その問題をiframeとされる以上のflashコンテンツ
これにより決定されたものを追加するparamのswfobject通話の設定wmode透明:
var params = {};
params.bgcolor = "#000000";
params.allowfullscreen = "true";
params.allowscriptaccess = "true";
params.wmode = "transparent";
var attributes = { id: "nfb", name:"nfb" };
var swfUrl = "Runner.swf";
swfobject.embedSWF( swfUrl, "flashContent", "100%", "100%", "10.0.0", false, flashvars, params, attributes );
設定のwmode透明の"透明"iframeに配置される以上に各ブラウザです。
でもこなかったのfacebookのようなボタンですべてがiframesびます。もちろんを使用しているのではない場合SWFObject表示にswfファイルのwmodeが可能なパラメータセットの公開性フラッシュ時公開するswf
乾杯