console
function blinklink() {
if (!document.getElementById('blink').style.color) {
document.getElementById('blink').style.color = "#cddc39"
}
if (document.getElementById('blink').style.color == "#cddc39") {
document.getElementById('blink').style.color = "#00bcd4"
} else {
document.getElementById('blink').style.color = "#cddc39"
}
timer = setTimeout("blinklink()", 100)
}
function stoptimer() {
clearTimeout(timer)
}
blinklink();
function shakeleft(){
document.getElementById('myLink').style.position="relative"
document.getElementById('myLink').style.left="3"
timer=setTimeout("shakeright()",10)
}
function shakeright(){
document.getElementById('myLink').style.left="0"
timer=setTimeout("shakeleft()",10)
}
function stoptimer(){
clearTimeout(timer)
}
image0="https://img.tukuppt.com//ad_preview/00/06/88/5c98f9ce81879.jpg!/fw/780"
href0="javascript:void(0)"
alt0="现代美学"
image1="https://img.tukuppt.com//ad_preview/00/05/14/5c98d11091a97.jpg!/fw/780"
href1="javascript:void(0)"
alt1="中国古典"
image2="https://img.tukuppt.com//ad_preview/00/04/25/5c98bc1b3d297.jpg!/fw/780"
href2="javascript:void(0)"
alt2="游戏竞技"
len=3
now=new Date()
now=now.getSeconds()
rnd=now%len
image=eval("image"+rnd)
href=eval("href"+rnd)
alt=eval("alt"+rnd)
document.write("<a href='" + href + "'>")
document.write("<img src='" + image + "' alt='" + alt + "'></a>")
<a id="blink" href="javascript:void(0)">闪烁的链接</a>
<a id="myLink" href="http://www.baidu.com/" onmouseover="shakeleft()" onmouseout="stoptimer()">请把鼠标移动到链接上</a>
<h3>请刷新该页面,您会看到广告条的变化。</h3>
<div id="bannerCon"></div>