comicpress-2.8/js/pre.js

20 lines
360 B
JavaScript
Raw Normal View History

// JavaScript Document
$j("pre").hover(function() {
var codeInnerWidth = $j("code", this).width() + 10;
if (codeInnerWidth > 550) {
$j(this)
.stop(true, false)
.css({
zIndex: "100",
position: "relative"
})
.animate({
width: codeInnerWidth + "px"
});
}
}, function() {
$j(this).stop(true, false).animate({
width: 550
});
});