Mercurial > hg > digilib-old
comparison client/digitallibrary/jquery/jquery.digilib.js @ 614:0bd19b6cede4 jquery
highlight hovered buttons
author | hertzhaft |
---|---|
date | Sun, 16 Jan 2011 14:05:17 +0100 |
parents | 53ee659e2d00 |
children | ec131e9699a6 |
comparison
equal
deleted
inserted
replaced
613:53ee659e2d00 | 614:0bd19b6cede4 |
---|---|
311 var buttonName = buttonNames[i]; | 311 var buttonName = buttonNames[i]; |
312 var buttonSettings = settings.buttons[buttonName]; | 312 var buttonSettings = settings.buttons[buttonName]; |
313 // construct the button html | 313 // construct the button html |
314 var $button = $('<div class="button"></div>'); | 314 var $button = $('<div class="button"></div>'); |
315 var $a = $('<a/>'); | 315 var $a = $('<a/>'); |
316 var $img = $('<img/>'); | 316 var $img = $('<img class="button"/>'); |
317 $buttonsDiv.append($button); | 317 $buttonsDiv.append($button); |
318 $button.append($a); | 318 $button.append($a); |
319 $a.append($img); | 319 $a.append($img); |
320 // add attributes and bindings | 320 // add attributes and bindings |
321 $button.attr('title', buttonSettings.tooltip); | 321 $button.attr('title', buttonSettings.tooltip); |