如何在tinycarousel上显示弹出屏幕(在每个图像上单击) [英] how to show pop up screen on tinycarousel (on each image click)

查看:83
本文介绍了如何在tinycarousel上显示弹出屏幕(在每个图像上单击)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





你能告诉我如何在tinycarousel上显示弹出屏幕(每次点击图像)。



tinycarousel:是滚动标题的一个例子。

谢谢

Hi

Can you please tell me how to show pop up screen on tinycarousel (on each image click).

tinycarousel :is an example of scrolling header .
Thanks

推荐答案

你好,



Tiny Carousel不支持图像点击选项,但它支持名为回调的选项,这是一个在每次移动后执行的功能。请参阅以下代码段,了解如何使用此特定选项。

Hello,

Tiny Carousel does not supports image click option, however it supports an option named "callback", which is a function that executes after every move. Please refer to following code snippet to see how to use this particular option.


' #slider-code')。tinycarousel({
callback: function (元素,索引){
console .log(元素,索引);
}
});
('#slider-code').tinycarousel({ callback: function(element, index){ console.log(element, index); } });



所以代替 Console.log 你可以编写自己的代码来打开弹出屏幕,可能正在使用JQueryUI对话框插件。



问候,


So instead of Console.log you can write your own code to open a popup screen may be using JQueryUI dialog plugin.

Regards,


这篇关于如何在tinycarousel上显示弹出屏幕(在每个图像上单击)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆