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/