2
A
回答
0
这当然取决于你如何实现你的滑块,但例如,当它的顶部,如果有什么变化(您添加不工作也很好的链接)仅仅是它的从它嵌套在后来干脆每当滑块完成它的运动,以检查是否top
或botttom
CSS属性的值等于0为这里所做添加一个检查的div顶部的距离:
if ((document.getElementById("myimage").style("top")==0) {
document.getElementById("myimage").setAttribute("src","topImageSrc");
}
if ((document.getElementById("myimage").style("bottom")==0) {
document.getElementById("myimage").setAttribute("src","bottomImageSrc");
}
相关问题
- 1. 检查溢出
- 2. 使用Javascript查找文本溢出的位置
- 3. MIPS溢出检查
- 4. 检查C++下溢/溢出?
- 5. 形式文本框溢出和文本的位置问题
- 6. javascript检查链接中的文本锚文本是否溢出
- 7. strtoXX:检查溢出
- 8. HTML/CSS文本溢出其容器
- 9. HTML画布文本溢出省略号
- 10. HTML:同侧文本溢出和对齐
- 11. 溢出位置绝对
- 12. 检测文本字段溢出
- 13. 检测文本是否溢出
- 14. 检测文本溢出的JButton
- 15. 检查WrapPanel是否溢出?
- 16. 转到:bytes.Repeat检查溢出
- 17. boost :: multiprecision :: cpp_dec_float_50溢出检查
- 18. 溢出检查不工作
- 19. 在IE浏览器中的css文本溢出位置
- 20. HTML中的位置文本
- 21. 在SVG textpath和jquery上检查文本溢出
- 22. 滚动文本中的检查按钮“溢出”顶部边框
- 23. HTML溢出javascript
- 24. Textarea文本溢出
- 25. Android文本溢出
- 26. 文本溢出Div
- 27. 文本溢出Div
- 28. 文本溢出div
- 29. ContextMenu文本溢出
- 30. InputTextArea文本溢出
你运用jQuery的? – Nayish