I am the author. The main script itself needs no comments, though I admit it might benefit from them, as any code may. You shouldn't be editing it or looking to it for guidance unless you are very familiar with coding, or just trying to learn in general. However, the portion of the code that goes on your page is fairly well commented. There it clearly states (from code on the demo page in Step 1):
Code:
//Notes:
//slides#.target will set a target for a slide group, will be overridden by slides#[#][3], if present
//slides#.specs will set new window specifications for a slide group, will be overridden by slides#[#][4], if present
//slides#.fadecolor will set fading images background color, defaults to white
//slides#.no_controls will set a slide show with no controls
//slides#.random will set a random slide sequence on each page load
//slides#.delay=3000 will set miliseconds delay between slides for a given show, may also be set in the call as the last parameter
//slides#.jumpto=1 will display added controls to jump to a particular image by its number
//slides#.no_added_linebreaks=1; use for no added line breaks in formatting of texts and controls
//use below to create a customized onclick event for linked images in a given show:
//slides#.onclick="window.open(this.href,this.target,'top=0, left=0, width='+screen.availWidth+', height='+screen.availHeight);return false;"
What may be unclear is that in the slide array(s), you can do (as you seem to already know):
Code:
slides[0] = ['../../photos/school/photo_101.jpg', 'Gathering'];
slides[1] = ['../../photos/school/photo_102.jpg', 'Helping'];
Or alternatively, by extending the array entry (as you appear to have missed, but also shown in the Step 1 code on the demo page):
Code:
slides[0] = ["dome.jpg", "description", "http://www.msn.com", "_new"];
Once you do that, if you configure:
Code:
slides.onclick="window.open(this.href,this.target,'top=0, left=0, width='+screen.availWidth+', height='+screen.availHeight);return false;"
for that array, this.href will use the link, and this.target will use the target specification.
If that's not enough, you can also extend the array entry to create a custom onclick window.open specification for each or a single entry (also shown in the Step 1 code from the demo page):
Code:
slides[0] = ["some.jpg", "caption", "http://www.google.com", "_new", "top=250, left=300, width=500, height=300, location, resizable, scrollbars"];
But I'm not here to defend the script as perfect or anything like that. On the contrary, my coding style is constantly evolving. There are a great many things I would do differently with this script today.
I did try to answer your question with my previous post in this thread, as well as with this post. I apologise for the other respondents' apparent lack of familiarity with the script itself. If you still are in doubt as to how to use that feature, feel free to ask for more clarification.
Bookmarks