Changeset 5938 in spip-zone


Ignore:
Timestamp:
Oct 6, 2006, 8:02:07 AM (15 years ago)
Author:
fil@…
Message:

:hover compatible MSIE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_dev_/widgets/widgets.js

    r5935 r5938  
    108108$(function() {
    109109  $('head')
    110   .prepend('<style>.widget:hover { background-image: url("dist/images/edit.gif"); background-repeat:no-repeat; background-position:right top; background-color: #e3eeee;}</style>');
     110  .prepend('<style>.widget-hover { background-image: url("dist/images/edit.gif"); background-repeat:no-repeat; background-position:right top; background-color: #e3eeee;}</style>');
    111111  $(".widget")
     112  .hover( // obligatoire pour MSIE
     113    function(){$(this).addClass('widget-hover');},
     114    function(){$(this).removeClass('widget-hover');}
     115  )
    112116  .attr('title', 'Cliquez pour modifier')  // pas terrible ;-)
    113117  .click($.clickwidget);
Note: See TracChangeset for help on using the changeset viewer.