在页面周围拖放影片 div
我需要重新设计一个依赖悬停效果的项目,非常好,但不适合客户。我的任务是能够选择图像并将其移动到屏幕中的某个区域(称为电影屏幕),然后让它们使用播放按钮等事件进行播放。
除了可能指出一些利用物体移动(例如电影文件而不是静态图像)的示例之外,我并不认真期望任何回应。
I need to rework a project that relied on hover effect, quite nice, but not appropriate for the client. My task is to be able to choose an image and move it to an area in the screen (call it a movie screen) and then to have them play with an event like a play button.
I don't seriously expect any response other than perhaps to be pointed to some examples that utilize the moving of an object such as a movie file rather than a static image.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你应该看看 jQuery UI 拖放演示
一旦你设置好了,你就可以例如,一旦您将电影文件放入某个放置目标,就会触发可拖动图像 div 开始播放电影文件。
I think you should look at jQuery UI drag and drop demos
Once you've set it up, you could trigger the draggable image div to start playing a movie file once you've dropped it into a certain drop target, for example.