基于jquery的代码显示区域自动拉长效果

时间:2011-12-07    点击:383   
下面是jquery的实现代码:
复制代码 代码如下:

$(document).ready(function(){

$('pre').hover(
function(){
if($(this).width()==520){
$(this).animate({width:'800'},400);
$(this).css({border:'1px solid #2B99E6'});
}
},
function(){
if($(this).width()==800){
$(this).animate({width:'520'},400);
$(this).css({border:'1px solid #555555'});
}
}
);
常见JS效果之图片减速度滚动实现代码
JQuery循环滚动图片代码
Javascript类定义语法,私有成员、受保护成员、静态成员等介绍
扩展Jquery插件处理mouseover时内部有子元素时发生样式闪烁
js中document.getElementByid、document.all和document.layers区分介绍
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved