Disable IFRAME scroll in Firefox/Netscape

This is the first question:
http://www.experts-exchange.com/Web/Browser_Issues/Q_21403669.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


deek22Asked:
Who is Participating?
 
BatalfCommented:
You cannot have flash files as background images.

To your problem with scrolling in Firefox.

What you could do is to add an outer div and set position:fixed on it

example:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</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>
0
 
deek22Author Commented:
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
0
 
BatalfCommented:
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>
0
 
BatalfCommented:
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>
0
 
deek22Author Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.