Open main menu
Home
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
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
CPD
Drag & Drop
LabFacts NWL Book
Flashcards
Lectures
Links
Podcasts
Proceedings
Quizzes
Veterinary Jobs
Videos
Login
About WikiVet
Search
Changes
Special:MobileDiff/138019
← Older edit
MediaWiki:Common.js
(view source)
Revision as of 21:14, 3 May 2012
1,232 bytes removed
,
21:14, 3 May 2012
Replaced content with "
→Any JavaScript here will be loaded for all users on every page load.
:
"
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. */
−
−
/* Browser sniffer */
−
−
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