# HG changeset patch # User robcast # Date 1134126552 -3600 # Node ID dbeb240fa1705157bc1cdcd2709586defe7f0d37 # Parent be66c85821ff012b24fbe0e7a2aa88c6296352aa use css-only highlight on buttons fix red div for zoom area diff -r be66c85821ff -r dbeb240fa170 client/digitallibrary/greyskin/diginew.jsp --- a/client/digitallibrary/greyskin/diginew.jsp Thu Dec 08 13:16:43 2005 +0100 +++ b/client/digitallibrary/greyskin/diginew.jsp Fri Dec 09 12:09:12 2005 +0100 @@ -45,6 +45,7 @@ a.icon { margin: 0px; padding: 0px; } img.png { border: none; } + img.png:hover { background-image: url('corona.png'); } img.mark { border: none; } div.button { padding: 0px; } @@ -53,7 +54,7 @@ div#buttons { position: absolute; right: 5px; top: 5px; background-color: #E0E0E0; } div#dloptions { position: absolute; right: 5px; top: 5px; background-color: #E0E0E0; visibility: hidden; } - div#zoom { position: absolute; border: 2px solid #f0cccc; visibility: hidden; } + div#zoom { position: absolute; border: 2px solid red; visibility: hidden; } @@ -158,8 +159,7 @@ @@ -175,8 +175,7 @@ @@ -192,8 +191,7 @@ @@ -203,14 +201,13 @@
@@ -226,8 +223,7 @@ @@ -243,8 +239,7 @@ @@ -260,8 +255,7 @@ @@ -277,8 +271,7 @@ @@ -294,8 +287,7 @@ @@ -310,14 +302,13 @@
@@ -333,8 +324,7 @@ @@ -350,8 +340,7 @@ @@ -367,8 +356,7 @@ @@ -384,8 +372,7 @@ @@ -401,8 +388,7 @@ @@ -418,8 +404,7 @@ @@ -435,8 +420,7 @@ @@ -452,8 +436,7 @@ @@ -469,8 +452,7 @@ @@ -486,8 +468,7 @@ @@ -503,8 +484,7 @@ @@ -520,8 +500,7 @@ @@ -537,8 +516,7 @@ diff -r be66c85821ff -r dbeb240fa170 client/digitallibrary/greyskin/dllib.js --- a/client/digitallibrary/greyskin/dllib.js Thu Dec 08 13:16:43 2005 +0100 +++ b/client/digitallibrary/greyskin/dllib.js Fri Dec 09 12:09:12 2005 +0100 @@ -366,14 +366,14 @@ // first click -- start moving click = 2; pt1 = evtPosition(evt); - moveElement(zoomdiv, Rectangle(pt1.x, pt1.y, 0, 0)); + moveElement(zoomdiv, new Rectangle(pt1.x, pt1.y, 0, 0)); showElement(zoomdiv, true); // show moving registerEvent("mousemove", elemScaler, zoomMove); registerEvent("mousemove", zoomdiv, zoomMove); // enable drag-to-zoom registerEvent("mouseup", elemScaler, zoomClick); - registerEvent("mouseup", zoomdiv, zoomClick); + //registerEvent("mouseup", zoomdiv, zoomClick); } else { // second click -- end moving pt2 = evtPosition(evt); @@ -403,7 +403,8 @@ // mouse move handler pt2 = evtPosition(evt); // restrict marks to move right and down - moveElement(zoomdiv, Rectangle(pt1.x, pt1.y, Math.abs(pt1.x - pt2.x), Math.abs(pt1.y - pt2.y))); + var newrect = new Rectangle(pt1.x, pt1.y, Math.abs(pt1.x - pt2.x), Math.abs(pt1.y - pt2.y)); + moveElement(zoomdiv, newrect); } // starting event capture