引入CSS:
1 2 3 | < link rel = "stylesheet" type = "text/css" href = "css/focuspoint.css" > < link rel = "stylesheet" type = "text/css" href = "demo.css" > < link rel = "stylesheet" type = "text/css" href = "grid/grid.css" > |
引入JQ、JS
1 2 | < script src = "js/jquery.min.js" ></ script > < script type = "text/javascript" src = "js/jquery.focuspoint.min.js" ></ script > |
1 2 3 4 5 6 7 | <script type= "text/javascript" > ( function ($) { $(document).ready( function () { $( '.focuspoint' ).focusPoint(); }); }(jQuery)); </script> |
HTML:
1 2 3 4 5 6 7 8 9 10 | < div id = "Frames" > < div id = "Frame1" class = "focuspoint" data-focus-x = "0.33" data-focus-y = "0.249" data-image-w = "922" data-image-h = "666" > < img src = "img/lizard.jpg" alt = "" /> </ div > ...... </ div > |
(感谢会员ChasonMa 提供的内容)
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com