jquery标签云制作无规则标签云特效代码下载


jquery标签云制作无规则标签云特效代码下载
jquery标签云制作无规则标签云特效代码下载以及无规则标签云等js/jquery网页特效代码下载。

1. 引入JS

<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>

2. HTML代码

<script type="text/javascript">
$(document).ready(function(){
	/*多彩tag*/
	var tags_a = $("#tags").find("a");
	tags_a.each(function(){
		var x = 9;
		var y = 0;
		var rand = parseInt(Math.random() * (x - y + 1) + y);
		$(this).addClass("size"+rand);
	});
});
</script>
<style type="text/css">
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
body{font:12px/180% Arial, Helvetica, sans-serif ,"宋体";}
.demo{background:#FFF8DE;border:solid 1px #ff6600;width:380px;margin:20px auto;}
.demo h2{font-size:18px;height:32px;padding:10px 0 0 20px;font-family:"微软雅黑","宋体";border-bottom:solid 1px #ff6600;}
.taglist{padding:20px 20px 30px 20px;}
.taglist a{padding:3px;display:inline-block;white-space:nowrap;}
a.size1{font-size:25px;padding:10px;color:#804D40;}
a.size1:hover{color:#E13728;}
a.size2{padding:7px;font-size:20px;color:#B9251A;}
a.size2:hover{color:#E13728;}
a.size3{padding:5px;font-size:35px;color:#C4876A;}
a.size3:hover{color:#E13728;}
a.size4{padding:5px;font-size:15px;color:#B46A47;}
a.size4:hover{color:#E13728;}
a.size5{padding:5px;font-size:25px;color:#E13728;}
a.size5:hover{color:#B46A47;}
a.size6{padding:0px;font-size:12px;color:#77625E}
a.size6:hover{color:#E13728;}
</style>
<div class="demo">
	<h2>jQuery 标签云 <span style="color:#3366cc;">F5刷新试试</span></h2>
	<div class="taglist" id="tags">
		<a target="_blank" href="http://www.51qianduan.com/">菜单</a><a target="_blank" href="http://www.51qianduan.com/">无缝滚动</a><a target="_blank" href="http://www.51qianduan.com/">焦点图</a><a target="_blank" href="http://www.51qianduan.com/">上下滚动</a><a target="_blank" href="http://www.51qianduan.com/">左右滚动</a><a target="_blank" href="http://www.51qianduan.com/">滚动条</a><a target="_blank" href="http://www.51qianduan.com/">文字 滚动</a><a target="_blank" href="http://www.51qianduan.com/">图片滚动</a><a target="_blank" href="http://www.51qianduan.com/">弹出层</a><a target="_blank" href="http://www.51qianduan.com/">浮动层</a><a target="_blank" href="http://www.51qianduan.com/">html5</a><a target="_blank" href="http://www.51qianduan.com/">div 布局</a><a target="_blank" href="http://www.51qianduan.com/">flash动画</a><a target="_blank" href="http://www.51qianduan.com/">表单 提交</a><a target="_blank" href="http://www.51qianduan.com/">选项卡</a><a target="_blank" href="http://www.51qianduan.com/">二级导航</a><a target="_blank" href="http://www.51qianduan.com/">表格</a>	
	</div>
</div>

相关推荐

  • 标签云制作无规则标签云样式

    标签云制作无规则标签云样式以及标签云制作、无规则标签云、标签云样式等js/jquery网页特效代码下载。

    Border circle 暖光 2019-12-17 19:05:42 0 0 0

发表评论

相关文章