javascript - Make images in an image reel a clickable link -
i'm not pro @ javascript , works, utilize scripts find online. , continuous image reel code found here. things is, i'd add together links images.
<script type="text/javascript"> var firstreel=new reelslideshow({ wrapperid: "myreel", //id of blank div on page house slideshow dimensions: [800, 200], //width/height of gallery in pixels. should reflect dimensions of largest image imagearray: [ ["https://dl.dropbox.com/s/f7lt5o64j20143z/reel-welcome.png"], //["image_path", "optional_link", "optional_target"] ["https://dl.dropbox.com/s/v98on8f0qi6re57/reel-secret.png", "suppose set desired url here", "_new"] //<--no trailing comma after lastly image element! ], displaymode: {type:'auto', pause:5000, cycles:0, pauseonmouseover:true}, orientation: "h", //valid values: "h" or "v" persist: false, //remember lastly viewed slide , recall within same session? slideduration: 400 //transition duration (milliseconds) }) </script> i tried sec picture, , when right-click options including "open link in new tab" can seen. want though beingness directed link 1 time click picture.i tried wrap image url <a> tag of course of study didn't work (i must sound funny , idiotic now, i'm sorry don't know i'm doing). possible though? give thanks in advance! :) edit: here preview show i'm talking about. http://scarlethowl.blogspot.com/
welcome stack overflow... question not clear...are trying go url when clicking on image? let's assume pic : 1.jpg link : www.google.com code goes that:
<a href="http://www.google.com"><img src="1.jpg"></a> javascript arrays image
No comments:
Post a Comment