gpt4 book ai didi

javascript - FadeSlideShow - Javascript 目标 = "_blank"

转载 作者:行者123 更新时间:2023-11-28 09:38:37 25 4
gpt4 key购买 nike

我的网站上有一张图像幻灯片,我希望在新窗口中打开这些链接...

<script type="text/javascript">

var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [860, 500], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["mil/aircrafthangar.jpg", "http://www.rubbmilitary.com/products/aircraft_hangars.html", "", "Rubb Military 20m Span EFASS Aircraft and Helicopter Hangar"],
["mil/helihangar.jpg", "http://www.rubbmilitary.com/products/helicopter_hangars.html", "", "Rubb Military 25m Span EFASS Aircraft and Helicopter Hangars"],
["mil/vehiclehangar.jpg", "http://www.rubbmilitary.com/products/small_aircraft_hangars.html", "", "Rubb Military 11m Span EFASS Vehicle and small Aircraft Hangars"],
["mil/sunshade.jpg", "http://www.rubbmilitary.com/products/aircraft_sunshades.html", "", "Rubb Military EFASS Sunshade Covering Aircraft and Helicopters"],
["mil/warehouse.jpg", "http://www.rubbmilitary.com/products/military_warehouse.html", "", "Rubb Military EFASS Mass Storage Warehouse"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 1000, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""

})

</script>

任何帮助或建议都会很棒。

谢谢你

最佳答案

图像数组的第三个参数可能是超链接的目标。试试这个。

["mil/aircrafthangar.jpg",
"http://www.rubbmilitary.com/products/aircraft_hangars.html",
"_blank",
"Rubb Military 20m Span EFASS Aircraft and Helicopter Hangar"]

您应该对数组中的每个图像使用“_blank”。

关于javascript - FadeSlideShow - Javascript 目标 = "_blank",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12669551/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com