I asked this question my question
An I managed to put a div tag with image inside. I switch the flash player with the div when I start dragging the extjs window. And it works well but still when I hover over the div tag the dragging stops because browser puts the focus on the div tag.
Is it possible to remove/stop the focus of the div tag while I drag the extjs window using some javascript/jquery function?
I tried even without image, just div tag with background color and still when mouse hovers over the div it still stops dragging the window.
here is a sample code
win = Ext.create('widget.window',
{
title: "My Player",
id: "my_player",
width: 750,
height: 290,
x:startXPlayer,
y:startYPlayer,
ghost: false,
modal: false,
resizable: false,
disableCaching : true,
closeAction: 'destroy',
items: [],
html: '<iframe src="./index.php/myplayer?'+url+'&d='+new Date()+'" style="width: 735px; height: 280px; border: none;"></iframe>'
});
Ok here is simplified html which is embeded in the iframe
<html>
<head>
<title>my page</title>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("myPlayer", "9.0.0", "expressInstall.swf");
</script>
</head>
<body>
<div id="window">
<div id="static_image" class="image">
<img src="test.jpg"/>
</div>
<div id="flash" class="flobject">
<object id="myPlayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="720" height="240">
<param name="movie" value="test.swf" />
<param name="wmode" value="transparent">
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="test.swf" width="300" height="120">
<!--<![endif]-->
<div>
<h1>Alternative content</h1>
<p><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></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</div>
</body>
</html>