Jump to content
  • 0

Контент поверх флеша


Torkvemada
 Share

Question

Уже несколько раз затрагивалась эта тема, но для себя эту задачу я так и не решил. Вполне вероятно, что решение, как всегда, елементарно и находиться где-то рядом, но я его еще не нашел.

Контент поверх флеша не хочет отображаться, как бы его не позиционировал, как бы не игрался со слоями.

<style type="text/css">
.flash {
width: 300px; height: 300px;
z-index: 1;
}
.content {
width: 100px; height: 100px;
background-color: green;
position: absolute;
top: 0; left: 0;
z-index: 2;
}
</style>

<div class="flash">
<div class="content">Text</div>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="300" height="300" id="fl" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="fl.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#b9b4e4" /><embed src="fl.swf" quality="high" bgcolor="#b9b4e4" width="300" height="300" name="fl" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>

Пример кода приведен тут:

http://www.world.in.ua/flash/fl.html

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Нужно добавить

<style type="text/css">
.content {
width: 150px; height: 100px;
background-color: green;
position: absolute;
top: 0;
left: 0;
z-index: 5;
}

.flash {
width: 300px; height: 300px;
z-index: 1;
}
</style>

<div class="content">Text</div>

<object class="flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="300" height="300" id="fl" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="fl.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#b9b4e4" />
<param name="wmode" value="transparent" />
<embed src="fl.swf" quality="high" bgcolor="#b9b4e4" width="300" height="300" name="fl" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

Подробнее можно прочесть здесь: http://community.livejournal.com/webdistortion/904.html

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy