FadeSlideShow-Javascript目标="_“空白”;

FadeSlideShow-Javascript目标="_“空白”;,javascript,show,slide,window.open,Javascript,Show,Slide,Window.open,我的网站上有一张图片幻灯片,我想在新窗口中打开链接 <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 dimens

我的网站上有一张图片幻灯片,我想在新窗口中打开链接

<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: ""

var mygallery=新的fadeSlideShow({
wrapperid:“fadeshow1”//PageToHouse幻灯片上空白DIV的ID
尺寸:[860500],//画廊的宽度/高度(像素)。应反映最大图像的尺寸
图像阵列:[
[“mil/aircrafthangar.jpg”http://www.rubbmilitary.com/products/aircraft_hangars.html“,”,“Rubb军用20米跨度EFASS飞机和直升机机库”],
[“mil/helihangar.jpg”http://www.rubbmilitary.com/products/helicopter_hangars.html“,”,“Rubb军用25米跨度EFASS飞机和直升机机库”],
[“mil/vehiclehangar.jpg”http://www.rubbmilitary.com/products/small_aircraft_hangars.html“,”,“Rubb军用11米跨度EFASS车辆和小型飞机库”],
[“mil/sunshade.jpg”http://www.rubbmilitary.com/products/aircraft_sunshades.html“,”,“覆盖飞机和直升机的Rubb军用EFASS遮阳板”],

[“mil/warehouse.jpg”http://www.rubbmilitary.com/products/military_warehouse.html“,”,“Rubb军用EFASS海量存储仓库”]/图像数组的第三个参数可能是hyperlink的目标。请尝试此操作

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

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

您可以在javascript中编辑。请检查幻灯片放映脚本中的img src标记,然后在那里您可以指定target=“\u blank”
["mil/aircrafthangar.jpg",
"http://www.rubbmilitary.com/products/aircraft_hangars.html",
"_blank",
"Rubb Military 20m Span EFASS Aircraft and Helicopter Hangar"]