Skip to content

Commit

Permalink
* add hand cursor
Browse files Browse the repository at this point in the history
 * strip imageStyle


git-svn-id: svn+ssh://svn.disense.org/var/svn/niw/zoommy@1452 377c1d59-e109-0410-9795-f258d49c5719
  • Loading branch information
niw committed Oct 19, 2008
1 parent 6c520b5 commit 618c648
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions javascripts/zoommy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ var config = {
imagesPath: "images/zoommy",
// the most bottom z-index for the zoom ui elements
baseZIndex: 900,
// style for zoom image (this example adds 10px white border)
imageStyle: {
background: '#fff',
padding: '10px'
}
};

function createChild(parent, tagName, func) {
Expand Down Expand Up @@ -231,6 +226,7 @@ var CloseButton = Class.create({
tag.style.width = '30px';
tag.style.height = '30px';
tag.style.zIndex = config.baseZIndex + 3;
tag.style.cursor = Prototype.Browser.IE ? 'hand' : 'pointer';
setBackgroundImage(tag, config.imagesPath + '/close_button.png');
});
Event.observe(this.tag, 'click', (function(event) {
Expand Down Expand Up @@ -268,7 +264,8 @@ var Zoom = Class.create({
}).bind(this));
this.canvas = createChild(document.body, 'img', function(tag) {
tag.hide();
tag.setStyle(config.imageStyle);
tag.style.background = '#fff';
tag.style.padding = '10px';
tag.style.position = 'absolute';
});

Expand Down

0 comments on commit 618c648

Please sign in to comment.