Calling the Lightbox start function

Discussion in 'JavaScript' started by fel64, Mar 8, 2007.

  1. #1
    Hello,
    I run a site with a gallery system that uses Lightbox so people see the full image when they click on a thumbnail. I want to be able to call the function to bring up a full image of my choice when the page is loaded.

    This is the gallery page: http://www.loinhead.net/fable-2-gallery/
    This is presumably the relevant JS file: http://www.loinhead.net/wordpress/wp-content/plugins/wp-lightbox2/js/lightbox.js

    I have no experience whatsoever with JS, but a little with Delphi and PHP. The problem is, what function do I call and how?

    Looking through the Javascript, an onclick property is added to the relevant links with some start(this) code. I guess I would like to call start, but I don't know the format of the 'this' parameter so I can't mimic it effectively.

    I made a couple of attempts, the result of which you can see at http://www.loinhead.net/?page_id=14&itname=art&iname=artcup52k6002.jpg - I tried both making a javascript element and settings its properties, then passing that along, and simply putting in a hard-coded HTML element, but no luck. What should I do?
     
    fel64, Mar 8, 2007 IP