Benutzer:Rikku/monobook.js: Unterschied zwischen den Versionen

K
test iconbar;
(test iconbar;)
K (test iconbar;)
Zeile 3:
var glSpoilerbutton;
var glIconbar = new Array();
 
/**changes value-attribute of an object, reffering to the given value-attribute-status of the object;
*@param linkObject:
*/
function _toggleLinkValue(linkObject) {
if (linkObject) {
if (linkObject.getAttribute("value") == 'closed') {
linkObject.setAttribute("value", "open");
} else {
linkObject.setAttribute("value", "closed");
}
}
}
 
/**function for hiding or showing all spoilerparts;
*(modified for dcw....)
*/
function spoilAll() {
var spoilerbutton = document.getElementById("spoilerbutton");
_toggleLinkValue(spoilerbutton);
 
if("closed" == spoilerbutton.getAttribute("value")){
spoilerbutton.firstChild.data = "zeige alle Spoiler";
//todo:toggle...
spoilerbutton.className = '_toggler_hide-de _toggler_show-jp';
toggler(0);
}
else{
spoilerbutton.firstChild.data = "verstecke alle Spoiler";
//todo:toggle...
spoilerbutton.className = '_toggler_hide-jp _toggler_show-de';
toggler(0);
}
}
 
function createSpoilerbutton(){
Zeile 30 ⟶ 64:
function addIcon(){
var img = document.createElement('img');
img.src = /images/thumb/b/bd/Close.png/25px-Close.png'; //'./images/20px-Qsicon_gesprochen.png';
img.alt = "gesprochen Version";
var value = document.createAttribute("class");
Zeile 40 ⟶ 74:
 
function findIcons(){
var audio = document.getElementById("Gesprochene VersionGesprochene_Version");
if (null!=audio){
addIcon();
5.367

Bearbeitungen