나는 슬라이드 쇼를 .....슬라이드 쇼, 슬라이드 효과
<script type="text/javascript">
<!--
var image1=new Image()
image1.src="slide-image-1.png"
var image2=new Image()
image2.src="slide-image-2.png"
//-->
</script>
<img name="slide" class="image1" src="slide-image-1.png" />
<script>
<!--
//variable that will increment through the images
var step=1
function slideit(){
//if browser does not support the image object, exit.
if (!document.images)
return
document.images.slide.src=eval("image"+step+".src")
if (step<2)
step++
else
step=1
//call function "slideit()" every 2.5 seconds
setTimeout("slideit()",4000)
}
slideit()
//-->
</script>
나는 슬라이드를 수평 (난이 말이 희망을 오른쪽에서 왼쪽으로 스크롤하여 서로 교환하는 방식을 변경하려면). 이 전환 유형은 무엇이라고 부탁합니까? 간단한 몇 줄로 끝낼 수 있습니까?
(I이 아마 경험있는 웹 디자이너를위한 쉬운 일이 알고 있지만 이제 막 시작 필자와이 어떻게 될지에 관해서는 확실하지)
최초의 애니메이션에 대한 의사 코드 추가 등의 효과를 얻기 위해 jQuery를 사용할 수 있습니다. 너는 그것을 필요로하지 않으며 나쁜 습관이다. – TheZ
죄송합니다 무슨 eval주세요 제발 ?? – user1491979
+1, 배열로 구조를 바꾸면 eval이 필요하지 않습니다. – gcochard