How to fade images using javascript?
Need a webpage which displays 开发者_StackOverflowan image for x number of seconds and then fades into another image which also contains a clickable link.
How do I achieve this with javascript? I know this can be done in Flash but it needs to be iPhone compatible.
Checkout the jQuery Cycle Plugin for a Master's Class on manipulating images with JS for galleries and such. Well written, well documented.
Many other good ones out there. Luke, Use the Source! and learn.
The best way I know is to use a library like jQuery. From what I understand iPhone supports jQuery.
精彩评论