<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jquery之点击弹出图标环形菜单</title> <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="js/mobilyblocks.js"></script> <style type="text/css"> *{margin:0;padding:0;list-style-type:none;} a,img{border:0;} a{color:#fff;} body{font-family:Arial, Helvetica, sans-serif;background:#F1F1F1;} /* comp */ div.comp{background:url(images/yuan.png) no-repeat center center;width:200px;height:200px;display:block;cursor:pointer;position:relative;margin:230px auto 0 auto;} div.comp ul.reset li{position:absolute;} </style> <script type="text/javascript"> $(function(){ $(‘.comp‘).mobilyblocks({ trigger:‘click‘, direction:‘counter‘, duration:500, zIndex:50, widthMultiplier:1.1 }); }); </script> </head> <body> <div class="comp" title="点我试试看"> <ul class="reset" style="display: block; z-index: 50; opacity:0;"> <li><a href="http://baidu.com/"><img src="images/shang.png" alt="" /></a></li> <li><a href="http://baidu.com/"><img src="images/dui.png" alt="" /></a></li> <li><a href="http://baidu.com/"><img src="images/jia.png" alt="" /></a></li> <li><a href="http://baidu.com/"><img src="images/jian.png" alt="" /></a></li> <li><a href="http://baidu.com/"><img src="images/chen.png" alt="" /></a></li> <li><a href="http://baidu.com/"><img src="images/zuo.png" alt="" /></a></li> <li><a href="http://baidu.com/"><img src="images/you.png" alt="" /></a></li> </ul> </div> </div> </body> </html>
run:
时间: 2024-10-14 14:14:18