0 Replies Latest reply on Jul 9, 2006 12:15 PM by Newsgroup_User

    Load images via xml/parameters, and assign URL

    Level 7
      Hi All

      I am trying to do a simple gallery that will loop around three images or so
      and when you click on them the page goes to a given URL.

      I found a generic example gallery, that reads the image sources in from an
      XML file but it does not have an event attached to it for the initial click.

      The code is this (looping around each node of XML):

      imageData = new Object;
      imageData.path = imageNode.attributes.path;
      imageNode = imageNode.previousSibling;

      I have tried putting:

      imageData.href = " http://www.google.com";
      imageData.url = " http://www.google.com";

      But to no avail.

      Does anybody have any suggestions or ideas?

      Many thanks