时间:2021-07-01 10:21:17 帮助过:8人阅读
html代码:
<!DOCTYPE html> <html> <head> <title>Rotating Banner</title> <script src="script07.js"></script> <link rel="stylesheet" href="script01.css" rel="external nofollow" > </head> <body> <p class="centered"> <img src="images/reading1.gif" id="adBanner" alt="Ad Banner"> </p> </body> </html>
css代码:
body {
background-color: white;
color: black;
font-size: 20px;
font-family: "Lucida Grande", Verdana,Arial, Helvetica, sans-serif;
}
h1, th {
font-family: Georgia, "Times New Roman",Times, serif;
}
h1 {
font-size: 28px;
}
table {
border-collapse: collapse;
}
th, td {
padding: 10px;
border: 2px #666 solid;
text-align: center;
width: 20%;
}
#free, .pickedBG {
background-color: #f66;
}
.winningBG {
background-image:url(images/redFlash.gif);
}js代码:
在循环广告条中添加链接:修改js的代码
相关推荐:
Html+CSS浮动的广告条实现分解_HTML/Xhtml_网页制作
js实现网站最上边可关闭的浮动广告条代码_javascript技巧
如何在php中实现广告条满屏幕移动
以上就是javascript实现循环广告条效果方法教程的详细内容,更多请关注Gxl网其它相关文章!