Cross Domain iframe scroll
- jQuery
- not works on file://
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="xframe.js"></script>
<div id="tv"></div>
var xframe = new XFrame("div#tv");
load page
xframe.load("http://shokai.org");
scroll
xframe.scrollX(10);
xframe.scrollY(100);
xframe.top = 200;
xframe.left = 50;
enable/disable mouse scroll
xframe.mouseScroll = true;
xframe.mouseScroll = false;
edit "HEADER.txt"
% npm install -g uglify-js
% make build
=> xframe.js