MediaWiki:Common.js: verschil tussen versies
Naar navigatie springen
Naar zoeken springen
Regel 1: | Regel 1: | ||
− | /* JavaScript die hier wordt geplaatst heeft invloed op alle pagina's voor alle gebruikers */ | + | /* JavaScript die hier wordt geplaatst heeft invloed op alle pagina's voor alle gebruikers |
+ | |||
+ | <pre>*/ | ||
//Als het goed is wordt de scrollbalk nu niet weergegeven, maar word het suggestievakje wat groter... | //Als het goed is wordt de scrollbalk nu niet weergegeven, maar word het suggestievakje wat groter... | ||
os_max_lines_per_suggest = 10; | os_max_lines_per_suggest = 10; | ||
+ | |||
+ | /**********************************/ | ||
+ | /* Pas op: Dit is een woordenboek */ | ||
+ | /* script */ | ||
+ | /* Sumurai8; contact: OP */ | ||
+ | /* Maakt 'tooltips' mogelijk */ | ||
+ | /* Zie Sjabloon:Wbwoord */ | ||
+ | /* Sjabloon:Wbbetekenis */ | ||
+ | /**********************************/ | ||
+ | |||
+ | var Wbq = "" | ||
+ | var Wbx = "" | ||
+ | var Wby = "" | ||
+ | var Wbz = "" | ||
+ | var WbK = "x" //keep it? | ||
+ | |||
+ | function enableTips() { | ||
+ | for(var counter=1;counter<99;counter++) { | ||
+ | Wbx = document.getElementById('woordenboek'+counter) | ||
+ | Wbq = document.getElementById('woordenboekX'+counter) | ||
+ | if(!Wbx) { | ||
+ | break; | ||
+ | } | ||
+ | Wbq.style.display = "none" | ||
+ | Wbx.style.display = "" | ||
+ | Wbx.onmouseover = showWbTip | ||
+ | Wbx.onmouseout = hideWbTip | ||
+ | Wbx.onclick = keepWbTip | ||
+ | } | ||
+ | } | ||
+ | |||
+ | addOnloadHook(enableTips) | ||
+ | |||
+ | function showWbTip() { | ||
+ | if (WbK == "x") { | ||
+ | Wbz = this.id | ||
+ | Wbz = Wbz.substring(11,Wbz.length) | ||
+ | Wby = document.getElementById('wbcontent'+Wbz) | ||
+ | Wby.style.display = "" | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function hideWbTip() { | ||
+ | if (WbK == "x") { | ||
+ | Wby.style.display = "none" | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function keepWbTip() { | ||
+ | if (WbK == "x") { | ||
+ | WbK = "v" | ||
+ | } | ||
+ | else { | ||
+ | WbK = "x" | ||
+ | } | ||
+ | } | ||
+ | |||
+ | /*</pre>*/ |
Versie van 26 mei 2011 23:47
/* JavaScript die hier wordt geplaatst heeft invloed op alle pagina's voor alle gebruikers
<pre>*/
//Als het goed is wordt de scrollbalk nu niet weergegeven, maar word het suggestievakje wat groter...
os_max_lines_per_suggest = 10;
/**********************************/
/* Pas op: Dit is een woordenboek */
/* script */
/* Sumurai8; contact: OP */
/* Maakt 'tooltips' mogelijk */
/* Zie Sjabloon:Wbwoord */
/* Sjabloon:Wbbetekenis */
/**********************************/
var Wbq = ""
var Wbx = ""
var Wby = ""
var Wbz = ""
var WbK = "x" //keep it?
function enableTips() {
for(var counter=1;counter<99;counter++) {
Wbx = document.getElementById('woordenboek'+counter)
Wbq = document.getElementById('woordenboekX'+counter)
if(!Wbx) {
break;
}
Wbq.style.display = "none"
Wbx.style.display = ""
Wbx.onmouseover = showWbTip
Wbx.onmouseout = hideWbTip
Wbx.onclick = keepWbTip
}
}
addOnloadHook(enableTips)
function showWbTip() {
if (WbK == "x") {
Wbz = this.id
Wbz = Wbz.substring(11,Wbz.length)
Wby = document.getElementById('wbcontent'+Wbz)
Wby.style.display = ""
}
}
function hideWbTip() {
if (WbK == "x") {
Wby.style.display = "none"
}
}
function keepWbTip() {
if (WbK == "x") {
WbK = "v"
}
else {
WbK = "x"
}
}
/*</pre>*/