Vorlage:Button
Aus BogenWiki
(Unterschied zwischen Versionen)
Nugman (Diskussion | Beiträge) |
Nugman (Diskussion | Beiträge) |
||
| Zeile 30: | Zeile 30: | ||
eButton = document.getElementById(sID); | eButton = document.getElementById(sID); | ||
switch (sEvent) { | switch (sEvent) { | ||
| - | case 'onmouseenter' | + | case 'onmouseenter': |
if (sID != sActiveBtnID) { | if (sID != sActiveBtnID) { | ||
eButton.style.background=sInactiveBgColor; | eButton.style.background=sInactiveBgColor; | ||
| Zeile 36: | Zeile 36: | ||
} | } | ||
break; | break; | ||
| - | case 'onmouseleave' | + | case 'onmouseleave': |
if (sID != sActiveBtnID) { | if (sID != sActiveBtnID) { | ||
eButton.style.background=sHoverBgColor; | eButton.style.background=sHoverBgColor; | ||
| Zeile 42: | Zeile 42: | ||
} | } | ||
break; | break; | ||
| - | case 'onclick' | + | case 'onclick': |
if (sID != sActiveBtnID) { | if (sID != sActiveBtnID) { | ||
if (sActiveBtnID != '') { | if (sActiveBtnID != '') { | ||
| Zeile 58: | Zeile 58: | ||
} | } | ||
break; | break; | ||
| - | case 'onload' | + | case 'onload': |
eButton.style.background=sInactiveBgColor; | eButton.style.background=sInactiveBgColor; | ||
eButton.style.color=sInactiveCaColor; | eButton.style.color=sInactiveCaColor; | ||
Version vom 20:49, 15. Nov. 2021
| Name: | Button |
| Beschreibung: | Erzeugt einen Button ... |
| Parameter: |
|
Test-Button 1
Test-Button 2
