if (attributes != null) {
for (var c=0; c<attributes.length; c++) {
- container.setAttribute(attributes[c][0], attributes[c][1]);
+ if (attributes[c][0] == 'title' && this.is_ie()) {
+ image.setAttribute(attributes[c][0], attributes[c][1]); //IE hack: transfer 'title'.
+ } else {
+ container.setAttribute(attributes[c][0], attributes[c][1]);
+ }
}
}
if (imgAttributes != null) {
}
}
+main_class.prototype.is_ie = function() {
+ var agent = navigator.userAgent.toLowerCase();
+ if ((agent.indexOf('msie') != -1)) {
+ return true;
+ }
+ return false;
+}
+
var main = new main_class();
YAHOO.util.Dom.removeClass(this.getEl(), 'hidden');
this.viewButton.childNodes[0].src = this.viewButton.childNodes[0].src.replace(/show.gif/i, 'hide.gif');
this.viewButton.childNodes[0].alt = this.viewButton.childNodes[0].alt.replace(strshow, strhide);
+ this.viewButton.childNodes[0].title = this.viewButton.childNodes[0].title.replace(strshow, strhide); //IE hack.
this.viewButton.title = this.viewButton.title.replace(strshow, strhide);
this.hidden = false;
YAHOO.util.Dom.addClass(this.getEl(), 'hidden');
this.viewButton.childNodes[0].src = this.viewButton.childNodes[0].src.replace(/hide.gif/i, 'show.gif');
this.viewButton.childNodes[0].alt = this.viewButton.childNodes[0].alt.replace(strhide, strshow);
+ this.viewButton.childNodes[0].title = this.viewButton.childNodes[0].title.replace(strhide, strshow); //IE hack.
this.viewButton.title = this.viewButton.title.replace(strhide, strshow);
this.hidden = true;