imgAreaSelect基于jQuery的图片切割放大插件0.94
日期:2011-03-10 13:10:01 来源:网络收集
强大的基于jQuery的图片切割插件,图片选择框可以按一定的比例实现。
实例代码:
[code]
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="//www.w3.org/1999/xhtml">
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/>
<title>imgAreaSelectjQueryplugin-Examples</title>
<scriptsrc="//ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<scriptsrc="scripts/jquery.imgareaselect.pack.js"></script>
<linkrel="stylesheet"type="text/css"href="css/imgareaselect-default.css"/>
</head>
<body>
<div>
<scripttype="text/javascript">
$(function(){
$('#ladybug_ant').imgAreaSelect({maxWidth:200,maxHeight:150,handles:true});
$('#bee').imgAreaSelect({aspectRatio:'4:3',handles:true});
$('#duck').imgAreaSelect({x1:120,y1:90,x2:280,y2:210});
});
</script>
</div>
<pstyle="text-align:center;">
<imgid="ladybug_ant"src="ladybug_ant.jpg"alt="Aladybugbeingharassedbyanant."title="Aladybugbeingharassedbyanant.">
</p>
<pstyle="text-align:center;">
<imgid="bee"src="bee.jpg"alt="Busybee"title="Busybee">
</p>
<pstyle="text-align:center;">
<imgid="duck"src="duck.jpg"alt="Whydidtheduckcrosstheroad?"title="Whydidtheduckcrosstheroad?">
</p>
</body>
</html>
[/code]
实例代码:
[code]
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="//www.w3.org/1999/xhtml">
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/>
<title>imgAreaSelectjQueryplugin-Examples</title>
<scriptsrc="//ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<scriptsrc="scripts/jquery.imgareaselect.pack.js"></script>
<linkrel="stylesheet"type="text/css"href="css/imgareaselect-default.css"/>
</head>
<body>
<div>
<scripttype="text/javascript">
$(function(){
$('#ladybug_ant').imgAreaSelect({maxWidth:200,maxHeight:150,handles:true});
$('#bee').imgAreaSelect({aspectRatio:'4:3',handles:true});
$('#duck').imgAreaSelect({x1:120,y1:90,x2:280,y2:210});
});
</script>
</div>
<pstyle="text-align:center;">
<imgid="ladybug_ant"src="ladybug_ant.jpg"alt="Aladybugbeingharassedbyanant."title="Aladybugbeingharassedbyanant.">
</p>
<pstyle="text-align:center;">
<imgid="bee"src="bee.jpg"alt="Busybee"title="Busybee">
</p>
<pstyle="text-align:center;">
<imgid="duck"src="duck.jpg"alt="Whydidtheduckcrosstheroad?"title="Whydidtheduckcrosstheroad?">
</p>
</body>
</html>
[/code]
您可能感兴趣的脚本
菜单导航2013-02-27
菜单导航2009-05-04
菜单导航2010-07-13
焦 点 图2013-03-05
悬浮漂浮2010-05-18
菜单导航2017-04-18
焦 点 图2009-07-27
相册代码2009-05-20
菜单导航2011-08-25
在线客服2011-12-19
在线客服2014-04-15
图片特效2013-02-18
菜单导航2009-09-16
图片特效2010-05-23
相册代码2009-04-30
焦 点 图2014-12-04
菜单导航2010-07-20
相册代码2009-07-28
悬浮漂浮2010-09-03
图片特效2014-10-16
焦 点 图2009-11-09
菜单导航2015-01-04
悬浮漂浮2009-11-12
菜单导航2011-09-26