title: Embedding PDF files within HTML/ Problem with unwanted mousewheel movement
body: <p>Does anyone out there embed PDF files for browser viewing?</p>
  
  <p>I am using embedded PDF files as a way to easily display reports through a browser (FireFox).  The actual PDF is about 10 pages long, but the HTML page is coded with the embed tag and uses the Open Parameters to display just a few aspects of the PDF, in an easy to read format.  The annoying part is that the embedded PDF sections can accidentally be scrolled with the mousewheel, which ruins the look of the report in the browser.  Is there a way to disable this?</p>
  
  <p>The html has about 16 different divs, all with embed tags within, pointing to separate sections of the same pdf document using the open parameters... here is the code:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html&gt;
  
  
  &lt;head&gt;
  
  &lt;META HTTP-EQUIV="REFRESH" CONTENT="2000"&gt;
  &lt;link rel="stylesheet" type="text/css" href="db.css" /&gt;
  
  
  &lt;script type="text/javascript"&gt;
  if(document.addEventListener){ /* Chrome, Safari, Firefox */
      document.addEventListener('DOMMouseScroll', stopWheel, false);
  } 
  function stopWheel(e){
      if(e.preventDefault) { e.preventDefault(); } /* Chrome, Safari, Firefox */
  }
  &lt;/script&gt;
  
  &lt;/head&gt;
  
  
  &lt;body id="pdf"&gt;
  
  &lt;div id="mid" onMouseOver="stopWheel(e);"&gt;&lt;embed src="run_rate_original_test.pdf#page=1&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=100,135,400" width="900" height="325"/&gt;&lt;/div&gt;
  &lt;div id="l1"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,134,105" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l2"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,484,105" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l3"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,835,105" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l4"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,134,233" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l5"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,484,233" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l6"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,835,233" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l7"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,134,361" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l8"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,484,361" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l9"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,835,361" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l10"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,134,489" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l11"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,484,489" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l12"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,835,489" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l13"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,134,617" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l14"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,484,617" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l15"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,835,617" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l16"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,134,745" width="119" height="83"/&gt;&lt;/div&gt;
  &lt;div id="l17"&gt;&lt;embed src="run_rate_original_test.pdf#page=5&amp;toolbar=0&amp;navpanes=0&amp;scrollbar=0&amp;zoom=75,484,745" width="119" height="83"/&gt;&lt;/div&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>As you can see in the first div, i was trying to use javascript to disable the mouse wheel, which did not work.  Is there a possible javascript, html, css or maybe even another solution to stop unwanted mousewheel scrolling within an embedded pdf document?</p>