Changes
Special:MobileDiff/138018
Jump to navigation
Jump to search
← Older edit
Newer edit →
MediaWiki:Common.js
(view source)
Revision as of 21:13, 3 May 2012
1,155 bytes added
,
21:13, 3 May 2012
no edit summary
Line 1:
Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
−
/*
Support For Rich Upload Form
*/
+
/*
Browser sniffer
*/
−
importScript
("
MediaWiki:UploadForm
.
js
");
+
+
var isIE = false;
+
var isOther = false;
+
var isNS4 = false;
+
var isNS6 = false;
+
if(document.getElementById) {
+
if(!document.all) {
+
isNS6=true;
+
}
+
if(document.all) {
+
isIE=true;
+
}
+
}
+
else {
+
if(document.layers) {
+
isNS4=true;
+
}
+
else {
+
isOther=true;
+
}
+
}
+
+
function aL(layerID) {
+
var returnLayer;
+
if(isIE) {
+
returnLayer = eval
("
document.all
."
+ layerID
);
+
}
+
if(isNS6) {
+
returnLayer = eval("document.getElementById('" + layerID + "')");
+
}
+
if(isNS4) {
+
returnLayer = eval("document." + layerID);
+
}
+
if(isOther) {
+
returnLayer = "null";
+
alert(cgBrowserAlert);
+
}
+
return returnLayer;
+
}
+
+
function aLs(layerID) {
+
var returnLayer;
+
if(isIE) {
+
returnLayer = aL(layerID).style;
+
}
+
if(isNS6) {
+
returnLayer = aL(layerID).style;
+
}
+
if(isNS4) {
+
returnLayer = aL(layerID);
+
}
+
if(isOther) {
+
returnLayer = "null";
+
alert(cgBrowserAlert);
+
}
+
return returnLayer;
+
}
+
+
/* Show/Hide Function */
+
+
function ShowHide(n) {
+
ID = "hideShow" + n;
+
IE = "rowa" + n;
+
IF = "rowq" + n;
+
IG = "roww" + n;
+
aLs(ID).visibility = "visible";
+
aLs(IE).background = "#EDEDED";
+
aLs(IF).background = "#EDEDED";
+
aLs(IG).background = "#E5FFE5";
+
+
}
A.allison
Author,
Bureaucrats
,
Administrators
12,693
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Message
Discussion
Variants
Views
Read
View source
View history
More
Search
System
Alimentary
Cardiovascular
Endocrine
Integumentary
Lymphoreticular and Haemopoietic
Musculoskeletal
Nervous
Reproductive
Respiratory
Special Senses
Urinary
Species
Birds
Camelids
Cats
Cattle
Dogs
Donkeys
Ferrets
Fish
Horses
Lizards
Pigs
Rabbits
Rodents
Sheep and Goats
Snake
Discipline
Anatomy and Physiology
Bacteriology
Blood
Clinical
Epidemiology
Normal Values
Nursing
Nutrition
Parasitology
Pathology
Pharmacology
Virology
Resources
Collection
Drag & Drop
Flashcards
LabFacts NWL Book
Lectures
Links
Podcasts
Proceedings
Quizzes
Veterinary Jobs
Videos
Development
Upload file
Commons
WhiteList
Tools
Upload file
Special pages
Printable version