MediaWiki:Wikimediaplayer.js: Difference between revisions

Content deleted Content added
Cyde (talk | contribs)
No edit summary
Cyde (talk | contribs)
Whoops, sit save page accidentally
Line 139:
playbutton.playparam = playerlink;
addEvent( playbutton, 'click', toggleIFrame );
neediframe=1;
 
// link.parentNode.insertBefore(playbutton, link.nextSibling);
Line 146 ⟶ 147:
}
 
if (neediframe==1) {
// iframe vorbereiten
iframe.div = document.createElement('div');
iframe.div.style.visibility = 'hidden';
iframe.iframediv.style.width = (wmpconfig.width+1012)+'px';
iframe.iframediv.style.height = (wmpconfig.height+1012)+'px';
iframe.iframediv.style.margin = '0px';
iframe.iframediv.style.padding = '0px';
iframe.div.style.zIndexbackgroundColor = 13'white';
iframe.iframediv.style.position = 'absolute';
iframe.iframediv.style.right = '1px2em';
iframe.iframediv.style.top = '1px1em';
iframe.div.style.border = '1px solid gray';
iframe.iframediv.style.zIndex = 1413;
 
iframe.closebutton = document.createElement('img');
// iframe vorbereiten
iframe.divclosebutton.title = documentstrings.createElement('div')close[language];
iframe.closebutton.src = 'http://upload.wikimedia.org/wikipedia/commons/d/d4/Button_hide.png';
iframe.div.style.visibility = 'hidden';
iframe.divclosebutton.style.widthzIndex = (wmpconfig.width+12)+'px'15;
iframe.divclosebutton.style.heightposition = (wmpconfig.height+12)+'pxabsolute';
iframe.divclosebutton.style.marginright = '0px11px';
iframe.divclosebutton.style.paddingtop = '0px11px';
iframe.divclosebutton.style.backgroundColorwidth = 'white18px';
iframe.divclosebutton.style.positioncursor = 'absolutepointer';
iframe.div.styleclosebutton.rightplayparam = '2em';
addEvent( iframe.div.style.top =closebutton, '1emclick', toggleIFrame );
iframe.div.style.border = '1px solid gray';
iframe.div.style.zIndex = 13;
 
iframe.closebuttoniframe = document.createElement('imgiframe');
iframe.closebuttoniframe.titleborder = strings.close[language]'0';
iframe.iframe.style.zIndex = 14;
iframe.closebutton.src = 'http://upload.wikimedia.org/wikipedia/commons/d/d4/Button_hide.png';
iframe.closebuttoniframe.style.zIndexposition = 15'absolute';
iframe.closebuttoniframe.style.positionright = 'absolute1px';
iframe.closebuttoniframe.style.righttop = '11px1px';
iframe.closebuttoniframe.style.topwidth = (wmpconfig.width+10)+'11pxpx';
iframe.closebuttoniframe.style.widthheight = (wmpconfig.height+10)+'18pxpx';
iframe.closebuttoniframe.style.cursormargin = 'pointer0px';
iframe.iframe.closebuttonstyle.playparampadding = '0px';
addEvent( iframe.closebutton, 'click', toggleIFrame );
 
iframe.iframe = documentiframe.createElementdiv.appendChild('iframe'.iframe);
iframe.div.appendChild(iframe.border = '0'closebutton);
iframe.iframe.style.zIndex = 14;
iframe.iframe.style.position = 'absolute';
iframe.iframe.style.right = '1px';
iframe.iframe.style.top = '1px';
iframe.iframe.style.width = (wmpconfig.width+10)+'px';
iframe.iframe.style.height = (wmpconfig.height+10)+'px';
iframe.iframe.style.margin = '0px';
iframe.iframe.style.padding = '0px';
 
var content = document.getElementById('content');
iframe.div.appendChild(iframe.iframe);
content.insertBefore(iframe.div,content.appendChild(iframe.closebuttonchildNodes[0]);
} //with
 
}
var content = document.getElementById('content');
content.insertBefore(iframe.div,content.childNodes[0]);
} //with
}