/ Published in: JavaScript
Might need some hacking to get it to work. It's mainly a reminder for me.
Expand |
Embed | Plain Text
$(function () { $(".ie6 .selectBoxIEFix select, .ie7 .selectBoxIEFix select, .ie8 .selectBoxIEFix select").each(function () { var elemWidth = $(this).width(); $(this).mouseover(function () { var parentHeight = $(this).parents('div').height(); var elemPos = $(this).position(); $(this).parents('div').css({ 'height': parentHeight }); $(this).stop(true, true).data("origWidth", $(this).css("width")).css({ "width": "auto", "position": "absolute", "top": elemPos.top, "left": elemPos.left }); }) $(this).mouseout(function () { $(this).delay(600).queue(function () { $(this).css({ "width": elemWidth, "position": "static" }); }); }); }) });
You need to login to post a comment.
