【问题标题】:I used Interactive Picture jQuery and how do I link the box?我使用了 Interactive Picture jQuery,如何链接该框?
【发布时间】:2013-11-19 00:42:06
【问题描述】:
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 时,我有这段代码,我想知道如何继续超链接每个按钮/框?

提前致谢

【问题讨论】:

  • 我知道我对此很失望,有什么建议吗?
  • 任何帮助都会很棒!
  • 你的问题是有效的,所以我投了赞成票。

标签: javascript jquery html css interactive


【解决方案1】:

你可以这样做:

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

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

【讨论】:

  • 为此干杯,对于像我这样的初学者来说,这个论坛对扩展我的 HTML 和 Javascript 知识很有帮助:)
猜你喜欢
  • 2016-02-11
  • 1970-01-01
  • 1970-01-01
  • 2017-05-13
  • 2018-12-12
  • 2011-07-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多