Web Analytics Made Easy -
StatCounter OnLoad and Lightbox - CodingForum

Announcement

Collapse
No announcement yet.

OnLoad and Lightbox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • OnLoad and Lightbox

    Want to run a lightbox image viewer when users get to a certain page.

    I have it setup currently so an Alert pops up when the page is activated so all I need to do is insert the correct details to do what I want.

    Standard Lightbox requires an Href link with a rel attrbute set to 'lightbox'.

    How can I make this fire up in my function?

    Code:
    <body onload="runLightbox();">
    ...
    <script type="text/javascript">
    //<![CDATA[
    function runLightbox(){
    alert('here');
    // replace above with code to open lightbox Image
    }
    //]]>
    </script>
    D.
    Daemonkin.
    If this was helpful, please add to my reputation
    Thousand Sons - Freelance Web Developer - ninetyonedegrees.com
Working...
X