==========以下内容由会员 只看不发了 提供==============
为了代码的整洁可读性,我们更推荐使用外部CSS和JavaScript
1.将文档中的css样式保存到一个css文件(style1.css)中,并在该文档中链接style1.css
1 | < link rel = "stylesheet" type = "text/css" href = "css/style1.css" media = "screen" > |
2.将文档中的JavaScript脚本保存到一个js文件(show.js)中,并在该文档中链接style1.css
1 | < script type = "text/javascript" src = "js/show.js" ></ script > |
3.html代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | < div id = "bankImages" > < img alt = "" src = "img/1.jpg" > < img alt = "" src = "img/2.jpg" > < img alt = "" src = "img/3.jpg" > < img alt = "" src = "img/4.jpg" > < img alt = "" src = "img/5.jpg" > < img alt = "" src = "img/6.jpg" > < img alt = "" src = "img/7.jpg" > < img alt = "" src = "img/8.jpg" > < img alt = "" src = "img/9.jpg" > < img alt = "" src = "img/10.jpg" > < img alt = "" src = "img/1.jpg" > < img alt = "" src = "img/2.jpg" > < img alt = "" src = "img/3.jpg" > < img alt = "" src = "img/4.jpg" > < img alt = "" src = "img/5.jpg" > < img alt = "" src = "img/6.jpg" > </ div >< br > |
4.当前页面加载完毕后执行初始化方法(注意要写在以上代码后边)
1 2 3 4 | <script type= "text/javascript" > onresize = tv.resize; tv.init(); </script><br> |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com