4 Replies Latest reply on Oct 23, 2009 7:36 PM by NonitoC

    Lightwindow question

    Designer at Bay

      Hello, I ran out the idea about this problem.....  I try to use a flash button to load external website to a pop up lightbox. I see a white box shows up but no content....

       

      1. On the flash button:

      step1.onRelease = function() {
          getURL("javascript:LightboxDelegate('http://www.google.com/','Green Wallpaper')");
      };

      2. On HTML:

       

          <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
         
          <script src="js/prototype.js" type="text/javascript"></script>
          <script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
          <script src="js/lightbox++.js" type="text/javascript"></script>
         
          <script type="text/javascript">
              function LightboxDelegate(url,caption) {
                  var objLink = document.createElement('a');
                  objLink.setAttribute('href',url);
                  objLink.setAttribute('rel','lightbox');
                  objLink.setAttribute('title',caption);
                  Lightbox.prototype.start(objLink);
                  }
          </script>