JS实现鼠标滑过链接改变网页背景颜色的方法_javascript技巧

WBOY
Release: 2016-05-16 15:36:00
Original
1354 people have browsed it

本文实例讲述了JS实现鼠标滑过链接改变网页背景颜色的方法。分享给大家供大家参考,具体如下:

这个小特效很不错,用链接改变网页背景色,鼠标放上链接文字上,网页背景就会跟着变换,想让你的主页更个性一点的朋友,这个代码一定能用上,其实你可在此基础上修改一下代码,改成鼠标放上文字切换样式表,这样整个网页就变了风格,是不是很实用?

运行效果截图如下:

在线演示地址如下:

http://demo.jb51.net/js/2015/js-mouse-over-link-cha-bgcolor-demo/

具体代码如下:

  鼠标放上链接改变网页背景颜色   

鼠标放到相应链接上看看!

天空蓝 大红色 清新蓝
Copy after login

希望本文所述对大家JavaScript程序设计有所帮助。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!