Home >
Web Front-end >
JS Tutorial >
Perfectly compatible with jQuery plug-ins for major browsers to achieve image switching effects_jquery
Perfectly compatible with jQuery plug-ins for major browsers to achieve image switching effects_jquery
WBOY
Release: 2016-05-16 16:27:24
Original
1592 people have browsed it
The function comments in the file are also written in very detail (see the zoeDylan.ImgChange-1.0.1.js file for details), which is very helpful for netizens to learn. Although the style is not very good-looking, you can write it yourself. Take advantage of it. . .
<script><br>
var a_imgs = new Array(//Insert image address<br>
‘./1 (1).jpg’,<br>
‘./1 (2).jpg’,<br>
‘./1 (3).jpg’,<br>
‘./1 (4).jpg’<br>
),<br>
A_links = New Array (// Click the URL of the picture jump <br>
'www.baidu.com',<br>
'www.qq.com',<br>
'www.google.com',<br>
'www.zol.com'<br>
),<br>
a_tips = new Array(//Tips for mouse docking<br>
‘Baidu’,<br>
‘Tencent’,<br>
‘Google’,<br>
'Zhongguancun'<br>
);<br>
$(function () {<br>
$('#imgc').zoeDylan_ImageChange({//Settings<br>
width: 500,<br>
Height: 300,<br>
imgs: a_imgs,<br>
links: a_links,<br>
Tips: a_tips,<br>
timers:2000<br>
});<br>
}); <br>
</script>
ps: try to use a higher version of the browser, visual test browser: IE11 IE10 IE6 Google Cheetah Oupeng can run perfectly, IE6 transparency effect is lost
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