如何使用JQuery或AJAX创建动画形式 [英] How to create animated form using JQuery or AJAX
问题描述
我想创建一个已取消钱币的幸运抽奖表格.
该表格包含Emp Photo及其数据库中的编号和名称.
我需要创建两个按钮.一个是开始"按钮,另一个是停止"按钮.
当我单击开始"按钮时,将生成带有某些动画背景的Employee照片.
当我单击停止"按钮时,它应该显示被选中的随机照片.
我想使用JQuery或AJAX来使动画更生动.但是,我对此很陌生.
有人可以给我解决方案吗??
I want to create one randamized Lucky draw form.
This form contains Emp Photo and their no and name from the DB.
I need to create two buttons. one is "Start" and other one is "Stop" button.
When i click start button, the Employee photo will be generating randomized with some animation background.
When i click "Stop" button, it should show the randomized photo which is selected one.
I want to do this more animated using JQuery or AJAX. But, i am new for this.
Can anyone give me the solution for this.?
推荐答案
在这方面可以做一些工作,但是由于您是JQ的新手,因此您应该考虑先加载所有图像插入插件,然后弄乱插件的代码...
检查一下:
http://jquery.malsup.com/cycle/begin.html [ http://vandelaydesign.com/blog/web-development/jquery-image-galleries/ [ ^ ]
-Jeremy
theres a bit of work in that, but since your new to JQ you should probally look at loading all images first into a plugin, then messing with the code of the plugin...
check this out:
http://jquery.malsup.com/cycle/begin.html[^]
That, modified is exactly what you need. relativly easy to implement also.
And this for other ideas:
http://vandelaydesign.com/blog/web-development/jquery-image-galleries/[^]
-Jeremy
引用此链接
使用jQuery动画 [
refer this link
Animation using jQuery[^]
这篇关于如何使用JQuery或AJAX创建动画形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!