0
Welcome Guest! Login
0 items Join Now

JavaScript Embed in Joomla?

    • KO's Avatar
    • KO
    • Elite Rocketeer
    • Posts: 681
    • Thanks: 3

    JavaScript Embed in Joomla?

    Posted 15 years 4 months ago
    • Hello everyone,

      I've been able to work this pretty cool flash extension from simpleviewer.net for galleries in firefox, but for unknown reason, I'm unable to work it out in all versions of IE. It must have some thing to do with how I embed this standalone because IE can't read it giving me this notice about permission to access MSXML3.0 SP10. I'm like wha???

      I embed this using basic embed applying this code to an article
      <object width="800" height="600"><param name="movie" value="simpleviewer.swf?galleryURL=gallery.xml"></param>
      <param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always">
      </param><param name="bgcolor" value="222222"></param><embed src="simpleviewer.swf?galleryURL=gallery.xml"
      type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="800" height="600"
      bgcolor="222222"></embed></object>

      Now I think that because not so good browsers can't really read this code, I think I need to switch to the javascript method, which I don't know how to apply in Joomla.

      Here are the instructions. www.simpleviewer.net/simpleviewer/support/embedding.html#basic
      # Create your SimpleViewer gallery as normal.
      # Copy the entire contents of your SimpleViewer gallery folder into the folder that contains your HTML page.
      # Edit your HTML document using a HTML or text editor. Copy and paste this code block into the head of the HTML page:
       
      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
      <script type="text/javascript">
      var flashvars = {};
      flashvars.galleryURL = "gallery.xml";
      var params = {};
      params.bgcolor = "222222";
      params.allowfullscreen = true;
      params.allowscriptaccess = "always";
      swfobject.embedSWF("simpleviewer.swf", "flashContent", "800", "600", "9.0.124", false, flashvars, params);
      </script>
       
      # Paste this into the body of the HTML page where you want to the gallery to appear:
       
      <div id="flashContent">SimpleViewer requires JavaScript and the Flash Player.
      <a href="http://www.adobe.com/go/getflashplayer/">Get Flash.</a></div>

      If anyone knows how to fix this problem, I'd be delighted.

      Happy Holidays!

Time to create page: 0.054 seconds