±×¸²À» ÀÚµ¿À¸·Î µ¹·Á°¡¸ç µð½ºÇ÷¹ÀÌ ÇÕ´Ï´Ù.µ¥¸ð¸¦ ´·¯ È®ÀÎÇϼ¼¿ä.
Script Example |
<html> <head><title>µ¥¸ð</title>
<script language="JavaScript1.1">
<!--
var slideimages=new Array()
var slidelinks=new Array()
function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages[i]=new Image()
slideimages[i].src=slideshowimages.arguments[i]
}
}
function slideshowlinks(){
for (i=0;i<slideshowlinks.arguments.length;i++)
slidelinks[i]=slideshowlinks.arguments[i]
}
function gotoshow(){
if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks[whichlink])
else
winslide.location=slidelinks[whichlink]
winslide.focus()
}
//-->
</script> </head> <body>
<a href="javascript:gotoshow()"><img
src="./img/photo1.jpg" name="slide" border=0
width=300 height=375></a> <script>
<!-- slideshowimages("./img/photo1.jpg","./img/photo2.jpg","./img/photo3.jpg")
slideshowlinks("http://1¹ø¸µÅ©","http://2¹ø¸µÅ©","http://3¹ø¸µÅ©")
var slideshowspeed=2000
var whichlink=0
var whichimage=0
function slideit(){
if (!document.images)
return
document.images.slide.src=slideimages[whichimage].src
whichlink=whichimage
if (whichimage<slideimages.length-1)
whichimage++
else
whichimage=0
setTimeout("slideit()",slideshowspeed)
}
slideit()
//--> </script> </body>
</html> |
|
|
¼³¸í |
³ì»öºÎºÐÀ» head ÅÂ±× »çÀÌ¿¡ ³ÖÀ¸½Ã°í body ÅÂ±× ¾È¿¡ ÀÖ´Â ³»¿ëÀÌ
½ÇÁ¦·Î º¸¿©Áö´Â°÷ÀÔ´Ï´Ù. ±×¸²À» ÁöÁ¤ÇÒ¶§´Â »ó´ë°æ·Î¸íÀ¸·Î ÁöÁ¤ÇÏ°í °¢°¢ÀÇ ±×¸²ÀÌ
º¸¿©Áú¶§ ¸µÅ©½Ãų ¹®¼¸¦ ¼ø¼´ë·Î ÀûÀ¸¼¼¿ä. ±×¸²À» Ãß°¡ÇÏ°í ½ÍÀ¸¸é ÆĶõ»öºÎºÐ¿¡¼
±×¸²ºÎºÐÀ» Ãß°¡ÇÏ½Ã°í ±× ¾Æ·¡ ¸µÅ©µÈºÎºÐµµ °°ÀÌ Ãß°¡½ÃÄÑÁÝ´Ï´Ù. ±×¸² º¯ÈÀÇ
¿òÁ÷ÀÓÀº ±× ¾Æ·¡ slideshowspeed ºÎºÐ¿¡¼ ¼öÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
|
|
|
|
|