Persönliche Werkzeuge

Vorlage:Button

Aus BogenWiki

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
 
(Der Versionsvergleich bezieht 4 dazwischenliegende Versionen mit ein.)
Zeile 68: Zeile 68:
</noinclude><includeonly><nowiki
</noinclude><includeonly><nowiki
-
/><html><div id="</html>{{{ID}}}<html>" onload="</html>{{{OnEvent}}}<html>('</html>{{{ID}}}<html>','onload')" onclick="</html>{{{OnEvent}}}<html>('</html>{{{ID}}}<html>','onclick')" onmouseenter="</html>{{{OnEvent}}}<html>('</html>{{{ID}}}<html>','onmouseenter')" onmouseleave="</html>{{{OnEvent}}}<html>('</html>{{{ID}}}<html>','onmouseleave')" style="display:inline-block;cursor:pointer;" </html>{{#if:{{{CSS|}}|class="{{{CSS}}"|style="padding:4px 8px 3px 8px;background:#E0E0E0;border:solid #D0D0D0 1px;color:black;"}}<html>><b></html>{{{Caption}}}<html></b></div></html><nowiki
+
/><html><div id="</html>{{{ID}}}<html>" onload="</html>{{{OnEvent}}}<html>('</html>{{{ID}}}<html>','onload')" onclick="</html>{{{OnEvent}}}<html>('</html>{{{ID}}}<html>','onclick')" onmouseenter="</html>{{{OnEvent}}}<html>('</html>{{{ID}}}<html>','onmouseenter')" onmouseleave="</html>{{{OnEvent}}}<html>('</html>{{{ID}}}<html>','onmouseleave')" </html>{{#if:{{{CSS|}}}|<html>class="</html>{{{CSS}}}<html>" style="display:inline-block;cursor:pointer;" </html>|<html>style="display:inline-block;cursor:pointer;padding:4px 8px 3px 8px;background:#E0E0E0;border:solid #D0D0D0 1px;color:black;"</html>}}<html>><b></html>{{{Caption}}}<html></b></div></html><nowiki
/></includeonly>
/></includeonly>

Aktuelle Version vom 20:04, 28. Jun. 2022

Name: Button
Beschreibung: Erzeugt einen Button ...
Parameter:
Caption
Angeziegter Text auf dem Button
ID
Eindeutige ID des Button
OnEvent
JavaScript-Funktion die bei den Events onclick, onmouseenter und onmouseleave aufgerufen werden soll.
Der Funktion werden folgende Parameter übergeben: ID, Event
CSS
CSS Class-Name

Test-Button 1
Test-Button 2