swf in iframe and mousewheel
hi there,
I have a little problem to understand some function i js.
I don't know what I must to write in the <script>
to disable mouse wheel scrolling the whole page
when I want to zoom in/out on a panorama in a swf file.
Of course I need to disable for all browsers, now I'm working on FF
I tried this:
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8"> google.load("jquery", "1.4.2"); </script>
<script type="text/javascript">
if(document.addEventListener){ /* Chrome, Safari, Firefox */
document.addEventListener('DOMMouseScroll', stopWheel, false);
}
function stopWheel(e){
if(e.preventDefault) { e.preventDefault(); } /* Chrome, Safari, Firefox */
}
</script>
in the link of the iframe:
<div align="center">
<iframe id="frame" onMouseOver="stopWheel(e);" src="http://www......e/800" style="width: 780px; height: 350px" scrolling="no" marginwidth="0" marginheight="8" frameborder="0" vspace="100" hspace="0" allowfullscreen="true"></iframe>
</div>
Please a little help i get crazy.