iexplore only displays single column - Joomla! Forum - community, help and support


site: www.3pconcepts.com.au

in firefox , other browsers appears ok.

iexplore version 8 :s fails, shows 1 column

any ideas cause this?

cheers

code: select all

var jcaption = new class({
   initialize: function(selector)
   {
      this.selector = selector;

      var images = $$(selector);
      images.each(function(image){ this.createcaption(image); }, this);
   },

   createcaption: function(element)
   {
      var caption   = document.createtextnode(element.title);
      var container = document.createelement("div");
      var text      = document.createelement("p");
      var width     = element.getattribute("width");
      var align     = element.getattribute("align");
      var docmode = document.documentmode;

      //windows fix
      if (!align)
         align = element.getstyle("float");  // rest of world fix
      if (!align) // ie dom fix
         align = element.style.stylefloat;

      text.appendchild(caption);
      text.classname = this.selector.replace('.', '_');

      if (align=="none") {
         if (element.title != "") {
            element.parentnode.replacechild(text, element);
            text.parentnode.insertbefore(element, text);
         }
      } else {
         element.parentnode.insertbefore(container, element);
         container.appendchild(element);
         if ( element.title != "" ) {
            container.appendchild(text);
         }
         container.classname   = this.selector.replace('.', '_');
         container.classname   = container.classname + " " + align;
         container.setattribute("style","float:"+align);

         //ie8 fix
         if (!docmode|| docmode < 8) {
            container.style.width = width + "px";
         }
      }

   }
});


debugger shows first line in code 'class' undefined





Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい