前言
大家好,我是ots_luo,今天给大家带来一款适合个人博客的引导页,采用适合手机,平板,电脑的自适应布局,带背景(自动切换)带背景音乐。鼠标放在头像框是会切换图片的。图片和文章均可修改。
效果
部分效果图截图:
部分源码
<body>
<div id="top">
<main id="top_main">
<div id="top_logo"><img src="./htmlimg/tx.png" onmouseover="mouseOver()" onmouseout="mouseOut()" id="mainimg"></div>
<div id="top_title"><img id="top_title01" alt=""" src="./htmlimg/toptitle01.png">
<br class="top_hr_style01">
<img id="top_title02" alt=""" src="./htmlimg/toptitle02.png">
</div><br><br>s
<div class="showcase-examples l-over l-center">
<a href="http://www.ots-sec.cn/" target="_blank" class="button button-rounded button-plain button-small-caps button-border">待添加</a>
<a href="http://www.ots-sec.cn/" target="_blank" class="button button-rounded button-plain button-small-caps button-border">待添加</a>
<a href="http://www.ots-sec.cn/" target="_blank" class="button button-rounded button-plain button-small-caps button-border">待添加</a>
<a href="http://www.ots-sec.cn/" target="_blank" class="button button-rounded button-plain button-small-caps button-border">待添加</a>
</div>
</main>
<script>
function mouseOver(){
document.getElementById("mainimg").src="./htmlimg/tx2.png";//鼠标悬浮时的旋转图标
}
function mouseOut()
{
document.getElementById('mainimg').src ="./htmlimg/tx.png"//默认的旋转图标
}
</script>
</div>
</body>
完整源码下载地址:点击下载
我是ots-luo,码字不易,写教程也不易,如果文章对你有帮助,记得评论点赞加转发收藏哦!感谢支持!!