Anda di halaman 1dari 2

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.

dtd"> <html> <head> <title>xkcd: Money Chart</title> <meta http-equiv="imagetoolbar" content="no" /> <style type="text/css"> @import url(styles/panojs.css); </style> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqu ery/1.7.0/jquery.min.js"></script> <script type="text/javascript" src="panojs/utils.js"></script> <script type="text/javascript" src="panojs/PanoJS.js"></script> <script type="text/javascript" src="panojs/controls.js"></script> <script type="text/javascript" src="panojs/pyramid_imgcnv.js"></script> <script type="text/javascript" src="panojs/control_thumbnail.js"></script> <script type="text/javascript" src="panojs/control_info.js"></script> <script type="text/javascript" src="panojs/control_svg.js"></script> <script type="text/javascript" src="panojs/control_hash.js"></script> <style type="text/css"> body { font-family: sans-serif; margin: 0; padding: 10px; color: #000000; background-color: #FFFFFF; font-size: 0.7em; } </style> <script type="text/javascript"> // <![CDATA[ PanoJS.MAX_OVER_ZOOM = 0; PanoJS.MSG_BEYOND_MIN_ZOOM = null; PanoJS.MSG_BEYOND_MAX_ZOOM = null; PanoJS.CREATE_INFO_CONTROLS = false; var viewer1 = null; function OsdItemInfo(viewer) { this.viewer = viewer; this.dom_element = this.viewer.viewerDomElement(); this.dom_info = document.createElement('span'); this.dom_info.className = 'info'; this.dom_element.appendChild(this.dom_info); this.dom_info.setAttribute("style", PanoJS.INFO_CONTROL_STYLE ); this.dom_info.style.cssText = PanoJS.INFO_CONTROL_STYLE; this.viewer.addViewerZoomedListener(this); this.dom_info.innerHTML = '<a href="http://store.xkcd.com/xkcd/#MoneyPoster

">Purchase as a poster.</a> <a href="http://xkcd.com/980/sources/DataDump.csv" >Review the Sources</a> <a href="http://imgs.xkcd.com/comics/money_huge.png">D ownload the full Image</a>'; } function createViewer( viewer, dom_id, url, prefix, w, h ) { if (viewer) return; var var var var var var MY_URL MY_PREFIX MY_TILESIZE MY_WIDTH MY_HEIGHT myPyramid = = url; = prefix; = 256; = w; = h; new ImgcnvPyramid( MY_WIDTH, MY_HEIGHT, MY_TILESIZE);

var myProvider = new PanoJS.TileUrlProvider('','',''); myProvider.assembleUrl = function(xIndex, yIndex, zoom) { return MY_URL + '/' + MY_PREFIX + myPyramid.tile_filename( zoom, xIndex, yIndex ); } viewer = new PanoJS(dom_id, { tileUrlProvider : myProvider, tileSize : myPyramid.tilesize, maxZoom : myPyramid.getMaxLevel(), imageWidth : myPyramid.width, imageHeight : myPyramid.height, blankTile : 'images/blank.gif', loadingTile : 'images/blank.gif' }); viewer.init(); if (!viewer.maximized) { viewer.toggleMaximize(); }; viewer.hash_control.restorePossition(); viewer.hash_control.setListeners(); OsdItemInfo(viewer); viewer1 = viewer; }; function initViewers() { createViewer( viewer1, 'viewer1', 'http://imgs.xkcd.com/money_tilesB', 'tile_' , 12528, 8352); } window.onload = initViewers; // ]]> </script> </head> <body> <div style="width: 100%; height: 400px;"> <div id="viewer1" class="viewer" style="width: 100%; height: 100%;" ></div > </div> </body> </html>