Block body scroll over iframe
Hi.
I've placed iframe on my site. Iframy includes swf object which interact with mousewheel (zoom in / zoom out). I would like to block page scrolling when mouse is over iframe.
code
-
-
$j
(
'#myiframe'
).
load
(
function
(
)
{
-
$j
(
this
).
contents
(
).
bind
(
'mousewheel DOMMouseScroll'
,
function
(e
)
{
-
var delta
= e.
wheelDelta
||
-e.
detail
;
-
this.
scrollTop
+=
( delta
< 0
? 1
:
-1
)
*
30
;
-
e.
preventDefault
(
)
;
-
}
)
;
}
)
;
It works ok in firefox. In rest of browsers it block also swf events (zoom in / zoom out). Is there any way to fix that?
Thanks in advance,