Use JavaScript to achieve image mosaic and then show and toggle the image effect

Source: Internet
Author: User
<script language= "JavaScript1.1" >
var slidespeed=3000
Specify images
var slideimages=new Array ("Yun_qi_img/2482150_1_7.jpg", "http://www.blueidea.com/articleimg/upload/2006/3/5/ 2482150_2_1.jpg "," http://www.blueidea.com/articleimg/upload/2006/3/5/2482150_3_2.jpg ")
Specify corresponding links
var slidelinks=new Array ("#", "#", "#")
var imageholder=new Array ()
var ie55=window.createpopup
for (i=0;i<slideimages.length;i++) {
Imageholder[i]=new Image ()
Imageholder[i].src=slideimages[i]
}
function Gotoshow () {
Window.location=slidelinks[whichlink]
}
-->
</script>
<a href= "Javascript:gotoshow ()" ></a>
<script language= "JavaScript1.1" >
<!--
var whichlink=0
var whichimage=0
var pixeldelay= (ie55)? document.images.slide.filters[0].duration*1000:0
function Slideit () {
if (!document.images) return
if (Ie55) document.images.slide.filters[0].apply ()
Document.images.slide.src=imageholder[whichimage].src
if (Ie55) Document.images.slide.filters[0].play ()
Whichlink=whichimage
Whichimage= (whichimage<slideimages.length-1)? whichimage+1:0
SetTimeout ("Slideit ()", Slidespeed+pixeldelay)
}
Slideit ()
-->
</script>
<script language= "JavaScript1.1" > var slidespeed=3000//specify images var slideimages=new Array ("yun_qi_img/248 2150_1_7.jpg "," http://www.blueidea.com/articleimg/upload/2006/3/5/2482150_2_1.jpg "," http://www.blueidea.com/ Articleimg/upload/2006/3/5/2482150_3_2.jpg ")//specify corresponding links var slidelinks=new Array (" # "," # "," # ") var i Mageholder=new Array () var ie55=window.createpopup for (i=0;i<slideimages.length;i++) {imageholder[i]=new Image () I Mageholder[i].src=slideimages[i]} function Gotoshow () {Window.location=slidelinks[whichlink]}//--> </script > <script language= "JavaScript1.1" > <!--var whichlink=0 var whichimage=0 var pixeldelay= (ie55)? document.images.slide.filters[0].duration*1000:0 function Slideit () {if (!document.images) return if (Ie55) document. Images.slide.filters[0].apply () document.images.slide.src=imageholder[whichimage].src if (ie55) Document.images.slide.filters[0].play () Whichlink=whichimage WhichiMage= (whichimage<slideimages.length-1)? whichimage+1:0 settimeout ("Slideit ()", Slidespeed+pixeldelay)} slideit ()//--> </script>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.