Mercurial > hg > digilib-old
view client/digitallibrary/jquery/jquery-test-full.html @ 818:eff74cfaaf97 jquery
read regions from HTML (not working yet), show info
author | hertzhaft |
---|---|
date | Mon, 21 Feb 2011 18:37:44 +0100 |
parents | 1a7b14deae3a |
children | 8af71d9d830b |
line wrap: on
line source
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Digilib jQuery Test: fullscreen</title> <style type="text/css"> body { background: grey; } div.digilib { /* padding for buttons and bird-div */ padding-right: 18px; padding-bottom: 100px; /* width: 220px; */ } div.svg { position: absolute; background: transparent; } td { vertical-align: top; } div#test:hover { background-color: cornsilk; } #debug { background-color: beige; position: absolute; opacity: 50%; top: 4px; left: 300px; width: 500px; padding: 0px 5px; font-family: Arial; font-size: 9px; display: none; } div._log { color: grey; } div._debug { color: darkgreen; } div._error { color: red; } </style> <script type="text/javascript" src="jquery-1.4.4.js"></script> <script type="text/javascript" src="jquery.cookie.js"></script> <script type="text/javascript" src="jquery.digilib.js"></script> <script type="text/javascript" src="jquery.digilib.geometry.js"></script> <script type="text/javascript" src="jquery.digilib.birdseye.js"></script> <script type="text/javascript" src="jquery.digilib.regions.js"></script> <script type="text/javascript" src="jquery.digilib.pluginstub.js"></script> <link rel="stylesheet" type="text/css" href="jquery.digilib.css" /> <script type="text/javascript"> $(document).ready(function(){ var opts = { interactionMode : 'fullscreen', scalerBaseUrl : 'http://digilib.biblhertz.it/digilib04/servlet/Scaler', showRegionNumbers : true, includeRegionContent : true }; var $div = $('div.digilib'); $div.digilib(opts); }); </script> </head> <body> <div id="digilib-1" class="digilib"> <img src="http://digilib.biblhertz.it/digilib04/servlet/Scaler?dw=200&dh=200&fn=/digisprint/jquery/FransHals-WillemVanHeythuysen" /> <div class="regioncontent" title="0.1/0.1/0.2/0.2"> <a href="http://www.mpiwg-berlin.mpg.de">MPI fuer Wissenschaftsgeschichte</a> </div> <div class="regioncontent" title="0.8/0.8/0.9/0.9"> <a href="http://www.biblhertz.it">Bibliotheca Hertziana</a> </div> </div> <div id="debug">DEBUG</div> </body> </html>