Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 HTML/CSS/Java 构建一个由 PhoneGap 包装为应用程序的应用程序,我认为我应该使用 JQuery。我有一张图片,我希望它“点击”向左移动,然后打开链接页面。
也许是这样的:
$('IMG').click(slide_to_next); function slide_to_next() { $(this).hide('slide', {direction: 'left'}, 1000); window.location.href = "http://yoursite.com/newpage"; }