javascript - 我使用了 Interactive Picture jQuery,我该如何链接该框?

标签 javascript jquery html css interactive

jQuery(document).ready(function(){
    $( "#iPicture6" ).iPicture({
        animation: true,
        animationBg: "bgblack",
        animationType: "ltr-slide",
        pictures: ["picture1","picture2","picture3","picture4","picture5"],
        button: "moreblack",
        moreInfos: {"picture1":[{"id":"tooltip1","descr":"Looking at Stars", "top":"200px","left":"103px"},{"id":"tooltip2","descr":"sofa: 199$","top":"346px","left":"483px"},{"id":"tooltip3","descr":"silver candle: 2.99$","top":"461px","left":"556px"}],

当我为交互式图片 jquery 添加 javascript 时,我有这段代码,我想知道如何继续超链接每个按钮/框?

提前致谢

最佳答案

你可以这样做:

moreInfos: {
  "picture1": [
    {
      "id":"tooltip1",
      "descr":"<a href='http://www.google.com'>furniture: 299$</a>",
      "top":"185px",
      "left":"393px"
    }
    // And So on....

您会看到在您的按钮/框的描述中有一个超链接。

关于javascript - 我使用了 Interactive Picture jQuery,我该如何链接该框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20060963/

相关文章:

javascript - 在 JQuery/JS 中处理 MaterializeCSS 可关闭集合事件

javascript - 在加载之前发送函数名称?

javascript - 如何在 Node.js、Electron 中检查互联网连接

javascript - 使用 JQUERY 中的索引检索 JavaScript 对象的键

jQuery:分层选项卡用户界面

javascript - 为什么在javascript中添加新文件名后输入的文件名消失?

javascript - 如果我对当前正在下载的文件进行 XMLHttpRequest 会怎样?

javascript - Jquery 数组通配符

javascript - Zurb Foundation 5.3 - Off Canvas 不工作 "TypeError: this[method] is undefined"

javascript - 我怎样才能拥有一个表现得像 anchor 但又不是 anchor 的 HTML 元素?