js焦点图切换图片的数字按钮代码怎么写?要有鼠标点击、经过、离开的效果的

JavaScript016

js焦点图切换图片的数字按钮代码怎么写?要有鼠标点击、经过、离开的效果的,第1张

<div style="background-color: silverpadding:60pxwidth:130px" onclick="this.style.backgroundColor='green'" onmousemove="this.style.backgroundColor='yellow'" onmouseout="this.style.backgroundColor='silver'" >520</div>

虽然我没做过这个效果,但是应该是可以实现的,无非就是两步,第一步实现数字滚动,这种网上都有效果实现代码,第二步,替换滚动的变量值,换成想要的数字,注意切换的时间和滚动的频率,让看起来自然一些