?
Solved

Disable IFRAME scroll in Firefox/Netscape

Posted on 2005-04-27
5
Medium Priority
?
1,074 Views
Last Modified: 2008-02-01
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


0
Comment
Question by:deek22
  • 3
  • 2
5 Comments
 
LVL 32

Accepted Solution

by:
Batalf earned 2000 total points
ID: 13878467
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
 

Author Comment

by:deek22
ID: 13878881
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
 
LVL 32

Expert Comment

by:Batalf
ID: 13878932
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
 
LVL 32

Expert Comment

by:Batalf
ID: 13879055
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
 

Author Comment

by:deek22
ID: 13879396
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently found myself in a Corporate Situation where the client had requested blocking access to any and all websites except his own Domain? Easy? I am sure this would be your answer but their requirement was, this has to be done without using…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Suggested Courses
Course of the Month16 days, 13 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question