if (imageUrl.substr(imageUrl.length-4).toLowerCase() == '.png') {
var logospan = logoa.appendChild(document.createElement('span'));
-
+
logoa.style.backgroundImage = 'none';
logospan.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=' + imageUrl + ')';
logospan.style.height = '100%';
logospan.style.width = logoa.currentStyle.width;
logospan.style.cursor = 'hand';
// Center image with hack for IE5.5
- if (document.documentElement.dir == "rtl")
+ if (document.documentElement.dir == "rtl")
{
logospan.style.right = '50%';
logospan.style.setExpression('marginRight', '"-" + (this.offsetWidth / 2) + "px"');
}
logospan.style.top = '50%';
logospan.style.setExpression('marginTop', '"-" + (this.offsetHeight / 2) + "px"');
-
+
var linkFix = logoa.appendChild(logoa.cloneNode());
linkFix.style.position = 'absolute';
linkFix.style.height = '100%';
for (var i=0; i < expandedURLs.length; i++)
if (expandedURLs[i])
expandedURLs[i].removeNode(true);
-}
\ No newline at end of file
+}
alert("Error: " + request.status + " " + request.statusText + ": " + request.responseText);
return;
}
-
+
var result = request.responseText;
//body.innerHTML = result;
{
return;
}
-
+
sajax_do_call( "wfSajaxSearch", [ x ], Searching_SetResult );
}
}
var box = document.getElementById(tableId);
if (!box)
return false;
-
+
var tbody = box.getElementsByTagName('tbody')[0];
-
+
var row = document.createElement('tr');
-
+
var col = document.createElement('td');
col.colSpan = 2;
-
+
var link = document.createElement('a');
link.href = '#';
-
+
link.onclick = function() {
if (box.className == 'mw_metadata collapsed') {
changeText(link, hideText);
}
return false;
}
-
+
var text = document.createTextNode(hideText);
-
+
link.appendChild(text);
col.appendChild(link);
row.appendChild(col);
tbody.appendChild(row);
-
+
// And collapse!
link.onclick();
-
+
return true;
}
return false;
}
prevReq = openXMLHttpRequest();
if( !prevReq ) return false;
-
+
prevReq.onreadystatechange = updatePreviewText;
prevReq.open("POST", postUrl, true);
-
+
var postData = 'wpTextbox1=' + encodeURIComponent(text);
prevReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
prevReq.send(postData);
var box = document.getElementById(tableId);
if (!box)
return false;
-
+
var tbody = box.getElementsByTagName('tbody')[0];
var row = document.createElement('tr');
tbody.appendChild(row);
-
+
row.appendChild(document.createElement('td'));
var col2 = document.createElement('td');
row.appendChild(col2);
-
+
var check = document.createElement('input');
check.id = "mwProtectUnchained";
check.type = "checkbox";
check.onclick = protectChainUpdate;
col2.appendChild(check);
-
+
var space = document.createTextNode(" ");
col2.appendChild(space);
-
+
var label = document.createElement('label');
label.setAttribute("for", "mwProtectUnchained");
label.appendChild(document.createTextNode(labelText));
col2.appendChild(label);
-
+
if (protectAllMatch()) {
check.checked = false;
protectEnable(false);
check.checked = true;
protectEnable(true);
}
-
+
return true;
}
return false;
// emulate css 'position: fixed' in IE5+ Win
// code by aclover@1value.com
fix_elements = new Array();
-
+
function fix_event(){
var i;
for (i=0; i < fix_elements.length; i++){
else if(document.all){this.css=document.all[eID].style;}
return this
}
-
+
function checkBrowser(){
this.ver=navigator.appVersion;
this.name=navigator.appName;
this.standards=document.getElementById?true:false;
this.dhtml=this.standards||this.ie4||this.ns4;
}
-
+
function showMe(eID){
myFloater=new makeLayerObj(eID)
myFloater.css.visibility="visible";
}
-
+
function hideMe(eID){
myFloater=new makeLayerObj(eID)
myFloater.css.visibility="hidden";
- }
\ No newline at end of file
+ }
insertTags(item.tagOpen, item.tagClose, item.sampleText);
return false;
};
-
+
parent.appendChild(image);
return true;
}
var textbox = document.getElementById('wpTextbox1');
if (!textbox) { return false; }
-
+
// Don't generate buttons for browsers which don't fully
// support it.
if (!document.selection && textbox.selectionStart === null) {
return false;
}
-
+
for (var i in mwEditButtons) {
mwInsertEditButton(toolbar, mwEditButtons[i]);
}
if (typeof el == "undefined") { return el };
if (el.innerText) return el.innerText; // Not needed but it is faster
var str = "";
-
+
var cs = el.childNodes;
var l = cs.length;
for (var i = 0; i < l; i++) {
} else {
arrowHTML = '<img src="'+ ts_image_path + ts_image_up + '" alt="↑"/>';
span.setAttribute('sortdir','down');
- }
-
+ }
+
// We appendChild rows that already exist to the tbody, so it moves them rather than creating new ones
// don't do sortbottom rows
for (var i = 0; i < newRows.length; i++) {
var bb = ts_parseFloat(b[1].replace(/[^0-9.]/g,''));
return (aa != bb ? aa - bb : a[2] - b[2]);
}
-
+
function ts_sort_numeric(a,b) {
var aa = ts_parseFloat(a[1]);
var bb = ts_parseFloat(b[1]);
return (aa != bb ? aa - bb : a[2] - b[2]);
}
-
+
function ts_sort_caseinsensitive(a,b) {
var aa = a[1].toLowerCase();
var bb = b[1].toLowerCase();