jquery列表分割线插件js代码

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 jquery列表分割线插件js代码 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

jquery列表分割线插件js代码

HTML代码(index.html):

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jquery列表分割线插件</title>
<!-- Scripts -->
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery.easyListSplitter.js"></script>
<script type="text/javascript" src="scripts/script.js"></script>

<style type="text/css">
html{font-size:62.5%}
body{font-size:1.2em;color:#294f88}
.sample{margin:30px;border:1px solid #92cdec;background:#d7e7ff;padding:30px 30px 0 30px}
h1{margin:0;padding:0 0 30px 0;font-size:2em}
h2{margin:0;padding:10px 0 5px 0;font-size:1.5em;clear:both}
p{font-size:1.2em;line-height:170%;margin-bottom:30px;clear:both}
ul,ol{padding:0;margin:0;font-size:1.2em}

.sample ul,.sample ol{list-style-type:none;background:url(images/dotted.gif) 0 0 repeat-x;width:180px;float:left;margin:0 10px 30px 0}
.sample li{background:url(images/dotted.gif) bottom left repeat-x;width:180px;float:left;padding:0}
.sample li a{padding:8px 20px 8px 0;width:160px;float:left;background:url(images/arrow-right.gif) right 12px no-repeat;text-decoration:none;color:#294f88}
.sample li a:hover{background-image:url(images/arrow-right-dark.gif)}
</style>

</head>
<body>

<div class="sample">
<h1>jQuery plugin: Easy List Splitter - Version 1.0.1</h1>

<h2>Create multiple lists from a single list ordering the items vertically</h2>
<p>You can choose the number of lists you want to create. The plugin will <strong>order the list items vertically by default</strong>. In this first sample we've splitted our list into 3 lists:</p>

<ul class="loremipsum">
<li><a href="#">Lorem ipsum 1</a></li>
<li><a href="#">Donec pede 2</a></li>
<li><a href="#">Fringilla vel 3</a></li>
<li><a href="#">Eget arcu 4</a></li>
<li><a href="#">In enim 5</a></li>
<li><a href="#">Lorem farem 6</a></li>
<li><a href="#">Pede justo 7</a></li>
<li><a href="#">Vel aliquet 8</a></li>
<li><a href="#">Arcu eget 9</a></li>
<li><a href="#">Justo rhoncus 10</a></li>
<li><a href="#">Ipsum dolor 11</a></li>
<li><a href="#">Justo pedec 12</a></li>
<li><a href="#">Romanorum 13</a></li>
</ul>

<p>In this second sample we've splitted the list in 4 lists:</p>

<ul id="mylist">
<li><a href="#">Lorem ipsum 1</a></li>
<li><a href="#">Donec pede 2</a></li>
<li><a href="#">Fringilla vel 3</a></li>
<li><a href="#">Eget arcu 4</a></li>
<li><a href="#">In enim 5</a></li>
<li><a href="#">Lorem farem 6</a></li>
<li><a href="#">Pede justo 7</a></li>
<li><a href="#">Vel aliquet 8</a></li>
<li><a href="#">Arcu eget 9</a></li>
<li><a href="#">Justo rhoncus 10</a></li>
<li><a href="#">Ipsum dolor 11</a></li>
<li><a href="#">Justo pedec 12</a></li>
<li><a href="#">Romanorum 13</a></li>
<li><a href="#">Bellum incipit 14</a></li>
<li><a href="#">Rosae rosarum 15</a></li>
</ul>


<h2>Create multiple lists from a single list ordering the list items horizontally</h2>
<p>To <strong>order your list items horizontally</strong> you just need to specify the parameter <strong>direction: 'horizontal'</strong> when you call the plugin. Here is the first sample that shows 5 lists: </p>

<ol>
<li><a href="#">Lorem ipsum 1</a></li>
<li><a href="#">Donec pede 2</a></li>
<li><a href="#">Fringilla vel 3</a></li>
<li><a href="#">Eget arcu 4</a></li>
<li><a href="#">In enim 5</a></li>
<li><a href="#">Lorem farem 6</a></li>
<li><a href="#">Pede justo 7</a></li>
<li><a href="#">Vel aliquet 8</a></li>
<li><a href="#">Arcu eget 9</a></li>
<li><a href="#">Justo rhoncus 10</a></li>
<li><a href="#">Ipsum dolor 11</a></li>
<li><a href="#">Justo pedec 12</a></li>
<li><a href="#">Romanorum 13</a></li>
<li><a href="#">Bellum incipit 14</a></li>
<li><a href="#">Rosae rosarum 15</a></li>
</ol>      

<p>In this last sample we have 2 lists ordered horizontally:</p>      

<ul class="dolorsit">
<li><a href="#">Lorem ipsum 1</a></li>
<li><a href="#">Donec pede 2</a></li>
<li><a href="#">Fringilla vel 3</a></li>
<li><a href="#">Eget arcu 4</a></li>
<li><a href="#">In enim 5</a></li>
<li><a href="#">Lorem farem 6</a></li>
<li><a href="#">Pede justo 7</a></li>
</ul>
<p>
</div>
</body>
</html>










JS代码(script.js):

/*easyListSplitter 1.0.1 - jQuery plugin sampleCreated by Andrea Cima Serniotti - http://www.madeincima.eu*/
$(document).ready(function (){
	$('.loremipsum').easyListSplitter({
	colNumber:3 // Insert here the number of columns you want. Consider that the plugin will create the number of cols requested only if there's enough items in the list.}
);
	$('#mylist').easyListSplitter({
	colNumber:4 // Insert here the number of columns you want. Consider that the plugin will create the number of cols requested only if there are enough items in the list.}
);
	$('ol').easyListSplitter({
	colNumber:5,// Insert here the number of columns you want. Consider that the plugin will create the number of cols requested only if there's enough items in the list.direction:'horizontal'}
);
	$('.dolorsit').easyListSplitter({
	colNumber:2,// Insert here the number of columns you want. Consider that the plugin will create the number of cols requested only if there's enough items in the list.direction:'horizontal'}
);
}
);
	
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
22.66 KB
jquery特效2
最新结算
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
HTML5实现CSS滤镜图片切换特效代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery+css3实现信封效果
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章