Mercurial > hg > digilib
comparison client/digitallibrary/jquery/jquery.digilib.js @ 607:dc6b2e7f3621 jquery
highlight hovered buttons
author | hertzhaft |
---|---|
date | Sun, 16 Jan 2011 14:05:17 +0100 |
parents | d08d095430c3 |
children | 5de82bb5022d |
comparison
equal
deleted
inserted
replaced
606:d08d095430c3 | 607:dc6b2e7f3621 |
---|---|
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); |