Link to home
Start Free TrialLog in
Avatar of deek22
deek22

asked on

Disable IFRAME scroll in Firefox/Netscape

This is the first question:
https://www.experts-exchange.com/questions/21403669/Prevent-scrolling-in-IFRAME-Firefox-Netscape-even-with-wheel-mouse.html

When telling an IFRAME not to scroll or scrolling="no" the IFRAME scrolls anyway using Firefox/Netscape with a wheel mouse.  My previous question used a .jpg file and the solution was to add this:

<style type="text/css">
<!--
BODY {background: #DCE5EB url(cristal.1986.jpg) top left fixed no-repeat; }
-->
</style>

Now I would need to do the same thing but with a .swf file instead of a .jpg.

Is this possible?

here a link to my problem:
http://www.iframeissue.yesyall.com/?path=test.htm


ASKER CERTIFIED SOLUTION
Avatar of Batalf
Batalf
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of deek22
deek22

ASKER

That worked great.  You da man now Batalf!!  

However, there is about  1/3 inch difference in how much of the IFRAME that shows in Netscape/Firefox than IE.  Hmm
Could be a problem with missing doctype.

Try changing the HTML code in the iframe to

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<style type="text/css">
body{
      width:100%;
      height:100%;
      padding:0px;
      margin:0px;
}
</style>
</head>

<body>
<div style="position:fixed;top:0px;left:0px">
<p>
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="277" height="194">
    <param name="movie" value="Flash/Movie1.swf">
    <param name="quality" value="High">
    <embed src="Flash/Movie1.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="277" height="194"></object>

</p>
</div>
</body>

</html>
A doctype in the main window is also an idea


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>IFRAME scroll problem</title>
<style type="text/css">
body{
  width:100%;
  height:100%;
  padding:0px;
  margin:0px;
}
</style>
</head>

<body>

<p>IFRAME scroll problem.</p>
<p>
<iframe name="I1" src="test_2.htm" scrolling="no" border="1" frameborder="1"  style="width:300px;height:164px">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe></p>

<p>You can scroll down in Firefox with a wheel mouse (Not what I want) </p>
<p>Open this page up in IE and you cannot scroll down even if you have a wheel
mouse (This is what I want for all browsers if possible).</p>
<p>If you want to play around with this you can download the swf file
<a href="Movie1.zip">HERE</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

</body>

</html>
Avatar of deek22

ASKER

Same problem even with the DOC TYPE added.  I adjusted the iframe so I could see a clear distinction between browsers.

In IE you can see the word "sneak" inside iframe

In Netscape you cannot see the word "sneak"

In Firefox you cannot see the word "sneak" either

The link again:
http://www.iframeissue.yesyall.com/?path=test.htm