js mod for using Lightbox with my panorama

Discussion in 'JavaScript' started by black_pigeon, Sep 6, 2008.

  1. #1
    I'm editing a panoramic tour for a client using Pure Tools Hot Spot Creator:
    http://www.immervision.com/en/multimedia/multimedia_products/Tools/multimedia_products_tools_9.php

    I want to use Lightbox 2 to call up some nifty photos from the panorama, as described here:
    http://www.huddletogether.com/projects/lightbox2/

    I can get the script to work just fine with the standard way as described above. But the GUI interface for the panorama software limits my events to either a url OR a js function (onclick).

    I don't know enough js to figure out how to change the event so it will work within the panorama. Here's the sample:
    <a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>

    If I use the "Open web page" option, then I can't use the rel="lightbox". I figured that I've need to have the href and the rel encapsulated in a js onclick event, but I don't know how to structure that.

    Major props to anyone who can help. Thanks!
     
    black_pigeon, Sep 6, 2008 IP