Skip to content

Instantly share code, notes, and snippets.

@ashaw
Created August 4, 2011 15:13
Show Gist options
  • Save ashaw/1125395 to your computer and use it in GitHub Desktop.
Save ashaw/1125395 to your computer and use it in GitHub Desktop.
<html>
<head>
<script type="text/javascript" src="http://www.propublica.org/js/public/assets/glass_core.js"></script>
<style>
#coverup {
width:495px;
height:795px;
position:absolute;
top:0;
left:0;
background:#000;
opacity:.20;
z-index:999;
overflow:scroll;
}
</style>
<script type="text/javascript">
$(function() {
$("#coverup").bind("mousewheel DOMMouseScroll", function(e) {
var d = e.wheelDelta || -e.detail;
$("#frame").scroll(d) // nope
})
})
</script>
</head>
<body>
<div id="coverup">&nbsp;</div>
<iframe id="frame" src="http://propublica.org" width="500" height="800">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment