מדיה ויקי:AlertProtected.js: הבדלים בין גרסאות בדף

אין תקציר עריכה
אין תקציר עריכה
שורה 33: שורה 33:
     var plTD1 = document.createElement('TD');
     var plTD1 = document.createElement('TD');
     plTD1.className = 'plprotected';
     plTD1.className = 'plprotected';
     plTD1.innerHTML = '<img alt="lock" src="' + iconpic + '" width="50" height="48" border="0" />';
     plTD1.innerHTML = '<img alt="מוגן" src="' + iconpic + '" width="50" height="48" border="0" />';
     var plTD2 = document.createElement('TD');
     var plTD2 = document.createElement('TD');
     plTD2.style.textAlign = 'right';
     plTD2.style.textAlign = 'right';
שורה 73: שורה 73:


     // attach the icon
     // attach the icon
     var iconTxt = '<div class="toplink" id="plprotectedlock" style="left: 35px;"><div style="position: relative;"><a href="/wiki/%D7%95%D7%99%D7%A7%D7%99%D7%A4%D7%93%D7%99%D7%94:%D7%93%D7%A3_%D7%9E%D7%95%D7%92%D7%9F" title="דף זה מוגן' + (plProtected ? ' חלקית' : ' מפני עריכה') + '"><img alt="lock" src="' + iconpic + '" width="25" height="24" border="0" /></a></div></div>';
     var iconTxt = '<div class="toplink" id="plprotectedlock" style="left: 35px;"><div style="position: relative;"><a href="/wiki/%D7%95%D7%99%D7%A7%D7%99%D7%A4%D7%93%D7%99%D7%94:%D7%93%D7%A3_%D7%9E%D7%95%D7%92%D7%9F" title="דף זה מוגן' + (plProtected ? ' חלקית' : ' מפני עריכה') + '"><img alt="דף זה מוגן' + (plProtected ? ' חלקית' : ' מפני עריכה') + '" src="' + iconpic + '" width="25" height="24" border="0" /></a></div></div>';


     attachHere.parentNode.innerHTML += iconTxt;
     attachHere.parentNode.innerHTML += iconTxt;