|
|
(5 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) |
Zeile 1: |
Zeile 1: |
− | //<nowiki> | + | /** |
− | | + | * Mahlzeit! |
− | rein_damit('addlilink');
| + | * |
− | rein_damit('indexlink');
| + | * Aufgrund eines Softwareupdates ist diese Seite nicht mehr mit der übrigen Technik der Stupidedia |
− | rein_damit('rv2version');
| + | * kompatibel und würde bei Benutzung einen kritischen Fehler verursachen. Aus diesem Grund habe ich |
− | rein_damit('loeschvorlage_einfügen');
| + | * die Seite geleert. Die meisten Funktionen stehen inzwischen als Helferlein zur Verfügung und |
− | rein_damit('Sterne');
| + | * können in den Einstellungen unter dem Tab „Helferlein“ aktiviert werden. Daher wirst |
− | rein_damit('linkchecker');
| + | * diese Seite vermutlich nicht mehr benötigen. Falls aber doch, kannst du den alten Code nach wie |
− | rein_damit('smileys');
| + | * vor in der Versionsgeschichte einsehen. Außerdem kannst du diese Seite unterhalb dieses |
− | rein_damit('unwatch');
| + | * Kommentarblocks weiterhin benutzen. |
− | rein_damit('add2toolbar');
| + | * |
− | rein_damit('hinweise');
| + | * Solltest du Fragen zu dieser Umstellung haben, kannst du dich gerne jederzeit an mich wenden. |
− | rein_damit('cookiework');
| + | * |
− | rein_damit('Recentchanges');
| + | * Mit freundlichen Grüßen |
− | rein_damit('awards');
| + | * — Phorgo / 01:48, 13. Mai 2014 (CEST) |
− | rein_damit('neues_fenster');
| + | * |
− | rein_damit('user_navigation');
| + | * <nowiki> |
− | rein_damit('hilfelinks');
| + | */ |
− | rein_damit('lastdiff');
| |
− | | |
− | Benutzername = "Fifafreak77";
| |
− | Inhalt = "";
| |
− | | |
− | function SL(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{SL-Direkt|" + Benutzername + "}}\n" + Inhalt;
| |
− | var Sprüche = new Array();
| |
− | Sprüche[1] = "[[Sub:SL-Direkt|SL-Direkt: Sie schreiben, wir vertreiben!]]";
| |
− | Sprüche[2] = "[[Sub:SL-Direkt|SL-Direkt: Sie tippen, wir kippen!]]";
| |
− | Sprüche[3] = "[[Sub:SL-Direkt|SL-Direkt: Schreibst Du noch oder löschen wir schon?]]";
| |
− | Sprüche[4] = "[[Sub:SL-Direkt|SL-Direkt: 20% auf alles, außer Sondermüll.]]";
| |
− | Sprüche[5] = "[[Sub:SL-Direkt|SL-Direkt: Wir löschen schneller als die Feuerwehr.]]";
| |
− | Sprüche[6] = "[[Sub:SL-Direkt|SL-Direkt is watching you!]]";
| |
− | Sprüche[7] = "[[Sub:SL-Direkt|It's time for some heroes. It's time for SL-Direkt.]]";
| |
− | Sprüche[8] = "[[Sub:SL-Direkt|SL-Direkt hat zugeschlagen!]]";
| |
− | document.editform.wpSummary.value = Sprüche[Math.round(Math.random() * 8 + 1)];
| |
− | }
| |
− |
| |
− |
| |
− | function init(){
| |
− | add2toolbar('javascript:insertTags("[[Wikipedia:de:","]]","Wikipedialink einfügen")','http://www.stupidedia.org/images/1/12/Wikipedia.png','Interwikilink setzen');
| |
− | add2toolbar('javascript:RedirectArticle()', 'http://www.stupidedia.org/images/9/91/Redirect.png', 'Weiterleitung erstellen');
| |
− | add2toolbar('javascript:RedirectArticle2()', 'http://www.stupidedia.org/images/a/a2/Namensartikel.png', 'Redirect Namensartikel');
| |
− | add2toolbar('javascript:SL()', 'http://www.stupidedia.org/images/2/27/SLD.PNG', 'Sofort-Löschen');
| |
− | add2toolbar('javascript:Conflict()', 'http://www.stupidedia.org/images/4/4e/Conflict.png', 'Conflict');
| |
− | add2toolbar('javascript:CorrectArticle()', 'http://www.stupidedia.org/images/2/24/Verbesserung.png', 'Verbesserungsvorlage erstellen');
| |
− | add2toolbar('javascript:WelcomeUser()', 'http://www.stupidedia.org/images/4/42/Welcome.png', 'Benutzer Willkommenheissen');
| |
− | add2toolbar('javascript:WIP()', 'http://www.stupidedia.org/images/9/93/Welcome_IP.png', 'IP Einladen');
| |
− | add2toolbar('javascript:insertTags("{{","}}","Gewünschte Vorlage hier einfügen")','http://www.stupidedia.org/images/4/48/Vorlage.png', 'Vorlage einfügen');
| |
− | add2toolbar('javascript:insertTags("[[","]]","Interner Link")','http://www.stupidedia.org/images/4/48/Vorlage.png', 'Interne-Link-Klammer');
| |
− | add2toolbar('javascript:FindReplace()', 'http://www.stupidedia.org/images/b/b6/Ersetzen.png', 'Text ersetzen');
| |
− | add2toolbar('javascript:ColorOn()', 'http://www.stupidedia.org/images/7/77/Schriftfarbe.png', 'Text einfärben');
| |
− | add2toolbar('javascript:ColorBackground()', 'http://www.stupidedia.org/images/d/de/Hintergrundfarbe.png', 'Texthintergrund einfärben');
| |
− | add2toolbar('javascript:insertTags("<span style=text-decoration:blink;>","</span>","Blinkschrift hier einfügen")','http://www.stupidedia.org/images/8/8c/Blink.PNG','Blinkschrift');
| |
− | add2toolbar('javascript:insertTags("<s>","</s>","Durchgestrichenen Text hier einfügen")','http://www.stupidedia.org/images/7/73/Durchstreichen.png','Durchgestrichenen Text einfügen');
| |
− | add2toolbar('javascript:insertTags("<u>","</u>","Unterstrichenen Text hier einfügen")','http://www.stupidedia.org/images/8/82/Unterstreichen.png','Unterstrichenen Text einfügen');
| |
− | add2toolbar('javascript:insertTags("<big>","</big>","Großen Text einfügen")','http://www.stupidedia.org/images/c/cc/Big.png','Großen Text einfügen');
| |
− | add2toolbar('javascript:insertTags("<small>","</small>","Kleinen Text einfügen")','http://www.stupidedia.org/images/b/b6/Small.png','Kleinen Text einfügen');
| |
− | add2toolbar('javascript:insertTags("<sub>","</sub>","Tiefgestellten Text einfügen")','http://www.stupidedia.org/images/6/67/Sub.png','Tiefgestellten Text einfügen');
| |
− | add2toolbar('javascript:insertTags("<sup>","</sup>","Hochgestellten Text einfügen")','http://www.stupidedia.org/images/f/f3/Sup.png','Hochgestellten Text einfügen');
| |
− | add2toolbar('javascript:insertTags("<center>","</center>","Zentrieren")','http://www.stupidedia.org/images/5/56/Center.png','Zentrieren');
| |
− | add2toolbar('javascript:insertTags("<div align=right>","</div>","Rechts ausgerichteten Text einfügen")','http://www.stupidedia.org/images/0/02/Right.PNG','Text nach Rechts ausrichten');
| |
− | add2toolbar('javascript:insertTags("<br>","","")','http://www.stupidedia.org/images/4/44/Zeilenumbruch.png','Zeilenumbruch');
| |
− | add2toolbar('javascript:insertTags("<br style=clear:both />","","")','http://www.stupidedia.org/images/e/e8/Absatz.png','Großabsatz setzen');
| |
− | add2toolbar('javascript:QO()','http://www.stupidedia.org/images/5/54/Qualit%C3%A4tsoffensive.png','QO');
| |
− | add2toolbar('javascript:Baustelle()', 'http://www.stupidedia.org/images/e/e0/Baustelle.gif', 'Baustelle');
| |
− | add2toolbar('javascript:Double()', 'http://www.stupidedia.org/images/0/02/Doppelt.png', 'Überschneidung');
| |
− | add2toolbar('javascript:Stub()', 'http://www.stupidedia.org/images/f/fe/Stub.png', 'Stub');
| |
− | add2toolbar('javascript:InterneLinks()','http://www.stupidedia.org/images/0/0d/Interne_Links.png','Vorlage:Interne Links setzen');
| |
− | add2toolbar('javascript:KK()','http://www.stupidedia.org/images/3/34/Keine_Kategorie.png','Vorlage:KK setzen');
| |
− | add2toolbar('javascript:Rechtschreibung()','http://www.stupidedia.org/images/a/ab/Rechtschreibung.png','Vorlage:Rechtschreibung setzen');
| |
− | add2toolbar('javascript:Format()','http://www.stupidedia.org/images/6/6c/Format.png','Vorlage:Format setzen');
| |
− | add2toolbar('javascript:SL()','http://www.stupidedia.org/images/2/27/SLD.PNG','Vorlage:SL-Direkt setzen');
| |
− | add2toolbar('javascript:Form()','http://www.stupidedia.org/images/d/d0/Form.png','Vorlage:Form setzen');
| |
− | add2toolbar('javascript:Message()', 'http://www.stupidedia.org/images/a/a5/Message.png', 'Mitteilung schreiben');
| |
− | add2toolbar('javascript:UsePreview();','http://www.stupidedia.org/images/7/75/Preview.png','Vorschau-Button benutzen');
| |
− | | |
− | add2toolbar('javascript:insertTags(" http://www.stupidedia.org/images/6/63/Laugth.gif ","","")','http://www.stupidedia.org/images/8/80/Smiley.png','Smiley setzen');
| |
− | add2toolbar('javascript:insertTags("[[Benutzer:","|]]","Benutzername hier einfügen")','http://www.stupidedia.org/images/5/5b/Benutzer.png','Userlink setzen');
| |
− | add2toolbar('javascript:insertTags("[[Kategorie:","]]","Kategorie hier einfügen")','http://www.stupidedia.org/images/3/3c/Kategorie.png','Kategorie setzen');
| |
− | add2toolbar('javascript:insertTags("„<i>","</i>“","Zitat hier einfügen")','http://www.stupidedia.org/images/9/97/Zitat.png','Zitat setzen');
| |
− | add2toolbar('javascript:BadSig()','http://www.stupidedia.org/images/0/06/BadSig.png','Benutzer wegen Signatur anmeckern');
| |
− | | |
− | add2toolbar('javascript:InuseArticle()', 'http://www.stupidedia.org/images/8/85/Inuse.png', 'Inuse erstellen');
| |
− | add2toolbar('javascript:Pro()','http://www.stupidedia.org/images/9/94/Pro.png', 'Pro setzen'); | |
− | add2toolbar('javascript:Neutral()','http://www.stupidedia.org/images/4/4d/Neut.png', 'Neutral setzen');
| |
− | add2toolbar('javascript:Contra()','http://www.stupidedia.org/images/c/c4/Contra.png', 'Contra setzen'); add2toolbar('javascript:NolicenseUser()','http://www.stupidedia.org/images/4/4c/Nolicenseusernb3.png', 'Nolicense-User-Diskussionsvorlage');
| |
− | add2toolbar('javascript:Lizenz()', 'http://stupidedia.org/images/d/d3/Editleistenknopf_lizenz.png', 'Lizenz! Sofort!');
| |
− | deleteButton(5);
| |
− | deleteButton(6);
| |
− | deleteButton(7);
| |
− | }
| |
− | function deleteButton(Nr){
| |
− | document.getElementById('toolbar').getElementsByTagName("img")[Nr].style.display = "none";
| |
− | }
| |
− | function add2toolbar(url, bild, titel)
| |
− | {
| |
− | var container = document.getElementById('toolbar');
| |
− | var link = document.createElement('a');
| |
− | link.href = url;
| |
− | link.title = titel;
| |
− | | |
− | var image = document.createElement('img');
| |
− | image.src = bild;
| |
− | image.style.height = '22px';
| |
− | image.style.width = '23px';
| |
− | | |
− | link.appendChild(image);
| |
− | container.appendChild(link);
| |
− | }
| |
− | | |
− | if(document.title.indexOf('Bearbeiten') == 0)
| |
− | {
| |
− | if (window.addEventListener)
| |
− | {
| |
− | window.addEventListener("load", init, false);
| |
− | }
| |
− | else if (window.attachEvent)
| |
− | window.attachEvent("onload", init);
| |
− | }
| |
− | | |
− | function Conflict(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{Conflict}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:Conflict|Es gibt einen Konflikt]]";
| |
− | }
| |
− | | |
− | function InterneLinks(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{IL}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:IL|Intern verlinken!]]";
| |
− | }
| |
− | | |
− | function KK(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{KK}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:KK|Kategorisieren!]]";
| |
− | }
| |
− | | |
− | function Rechtschreibung(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{R}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:R|Rechtschreibung inakzeptabel!]]";
| |
− | }
| |
− | | |
− | function Format(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{F}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:F|Formatieren, Übersichtlichkeit herstellen!]]";
| |
− | }
| |
− | | |
− | function Form(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{Form}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:Form|Formulierung ändern, enzyklopisch!]]";
| |
− | }
| |
− | | |
− | function SL(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{SL-Direkt}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:SL-Direkt|Domceck]]";
| |
− | }
| |
− | | |
− | function UK(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{UK}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:UK|Unpassende Kategorien!]]";
| |
− | }
| |
− | | |
− | | |
− | function Stub(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{Stub|{{Subst:Datum}}}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:Stub|Stub]]";
| |
− | }
| |
− | | |
− | function QO(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{QO|{{Subst:Datum}}}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:QO|Qualitätsoffensive!!]]";
| |
− | | |
− | }
| |
− | | |
− | function Message(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | var Nachricht = prompt("Text der Nachricht?","Hier Nachricht schreiben");
| |
− | document.editform.wpTextbox1.value = "{{M|" + Benutzername + "|" + Nachricht + "}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "Message";
| |
− | }
| |
− | | |
− | function RedirectArticle(){
| |
− | var DirectSite = prompt("Zielartikel?","Unlustig");
| |
− | document.editform.wpTextbox1.value = "#Redirect [[" + DirectSite + "]]";
| |
− | document.editform.wpSummary.value = "Redirect nach [[" + DirectSite + "]]";
| |
− | }
| |
− | function RedirectArticle2(){
| |
− | document.editform.wpTextbox1.value = "#Redirect [[Namensartikel]]";
| |
− | document.editform.wpSummary.value = "Redirect nach [[Namensartikel]]";
| |
− | }
| |
− | function CorrectArticle(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | var iLink = prompt("Interne Links überprüfen?","Einfügen, da keine vorhanden");
| |
− | var Category = prompt("Kategorisieren?","Ja");
| |
− | var Syntax = prompt("Rechtschreibung verbessern?","Ja, stellenweise");
| |
− | var Format = prompt("Formatieren?","Zeilenumbrüche, Aufzählungszeichen und Überschriften setzen");
| |
− | var Pictures = prompt("Bilder überprüfen?","Nein");
| |
− | var Comment = prompt("Commentar:","Jetzt im Sonderangebot: [[Spam]]");
| |
− | document.editform.wpTextbox1.value = "{{V|" + iLink + "|" + Category + "|" + Syntax + "|" + Format + "|" + Pictures + "|" + Comment + "|{{Subst:Datum}}}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "Verbesserungsprogramm";
| |
− | }
| |
− | | |
− | function BadSig(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | var userSig = prompt("Benutzername und Signaturpfad des Übeltäters?","Muster/Sig");
| |
− | var reason = prompt("Zu hoch, zu breit, zu blöd?","breit");
| |
− | document.editform.wpTextbox1.value = "{{BadSig|" + userSig + "|" + reason + "|" + Benutzername + "}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "Signatur bemängelt!";
| |
− | }
| |
− | | |
− | function Double(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | var pageone = prompt("Erster Artikel?","");
| |
− | var pagetwo = prompt("Zweiter Artikel?","");
| |
− | document.editform.wpTextbox1.value = "{{Überschneidung|" + pageone + "|" + pagetwo + "}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:Überschneidung|Überschneidung]]";
| |
− | }
| |
− | | |
− | function UsePreview(){
| |
− | var Article = prompt('Gemeinter Artikel');
| |
− | if(Article != ''){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = '{{Vorschau|' + Article + '}}\n' + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:Vorschau|Erst gucken, dann speichern!]]";
| |
− | }
| |
− | }
| |
− | | |
− | function WelcomeUser(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{W|" + Benutzername + "}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "Welcome";
| |
− | if(confirm("Kommentar hinzufügen?"))
| |
− | {
| |
− | var Comment = prompt("Kommentar:","");
| |
− | document.editform.wpTextbox1.value += "<p>P.P.S: " + Comment + " - Gruß, ~~~~";
| |
− | }
| |
− | }
| |
− | function WIP(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{WIP|" + Benutzername + "}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "Lust anzumelden?";
| |
− | if(confirm("Kommentar hinzufügen?"))
| |
− | {
| |
− | var Comment = prompt("Kommentar:","");
| |
− | document.editform.wpTextbox1.value += "<p>P.P.S:" + Comment + " - Gruß, ~~~~";
| |
− | }
| |
− | }
| |
− | | |
− | function SLA(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{SLA|" + Benutzername + "}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "Hinweis für SL-Autor";
| |
− | }
| |
− | | |
− | function SL(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{SL-Direkt|" + Benutzername + "}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:SL-Direkt|Ab dafür!]]";
| |
− | }
| |
− | | |
− | | |
− | function FindReplace(){
| |
− | var s = prompt("Folgendes ersetzen:");
| |
− | if(s){
| |
− | var r = prompt("Ersetzen durch:");
| |
− | if(!r && r != '') return;
| |
− | var txt = document.editform.wpTextbox1;
| |
− | txt.value = txt.value.replace(new RegExp(s, "g"), r);
| |
− | }
| |
− | }
| |
− | | |
− | | |
− | | |
− | function ColorOn(){
| |
− | var color = prompt("Farbwert eingeben:","");
| |
− | if (color){
| |
− | var fontCo = '<font color="' + color + '">';
| |
− | javascript:insertTags(fontCo,"</font>","Text hier einfügen")
| |
− | }
| |
− | }
| |
− | function ColorBackground(){
| |
− | var color = prompt("Farbwert eingeben:","");
| |
− | if (color){
| |
− | var fontCo = '<font style="background:' + color + '">';
| |
− | javascript:insertTags(fontCo,"</font>","Text hier einfügen")
| |
− | }
| |
− | }
| |
− | | |
− | function NolicenseUser(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{Vorlage:Nolicenseuser|" + Benutzername + "}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "Bilder-Rechte sind nicht geklärt. Es droht die Löschung!";
| |
− | }
| |
− | | |
− | | |
− | | |
− | function Baustelle(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{Baustelle}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:Baustelle|Du kannst es! Weiter geht's!]]";
| |
− | }
| |
− | | |
− | function Lizenz(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{Lizenz!}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:Lizenz!|Lizenzangaben und Quellen nachtragen!]]";
| |
− | }
| |
− | function InsertSmileys(){
| |
− | | |
− | var smileys = [];
| |
− | | |
− | smileys[0] = {'img': 'http://forum.stupidedia.org/images/default/smilies/smilie.gif', 'tag': ':-)'};
| |
− | smileys[1] = {'img': 'http://www.stupidedia.org/images/0/0d/Smiley2.png', 'tag': 'Big Smile'};
| |
− | | |
− | smileys[2] = {'img': 'http://forum.stupidedia.org/images/default/smilies/img1.gif', 'tag': 'spinnert!'};
| |
− | smileys[3] = {'img': 'http://forum.stupidedia.org/images/default/smilies/S%20(4).gif', 'tag': 'Grübel'};
| |
− | smileys[4] = {'img': 'http://forum.stupidedia.org/images/default/smilies/arsch.gif', 'tag': 'Leck mich'};
| |
− | smileys[5] = {'img': 'http://forum.stupidedia.org/images/default/smilies/S%20(32).gif', 'tag': 'shocked'};
| |
− | smileys[6] = {'img': 'http://forum.stupidedia.org/images/default/smilies/S%20(14).gif', 'tag': 'HALLOOOOO!'};
| |
− | smileys[7] = {'img': 'http://forum.stupidedia.org/images/default/smilies/S%20(54).gif', 'tag': 'Motzen'};
| |
− | smileys[8] = {'img': 'http://www.onlinekosten.de/forum/images/smilies/doof.gif', 'tag': 'doof!'};
| |
− | smileys[9] = {'img': 'http://forum.stupidedia.org/images/default/smilies/thinking.gif', 'tag': 'Idee!'};
| |
− | smileys[10] = {'img': 'http://forum.stupidedia.org/images/default/smilies/S%20(45).gif', 'tag': 'Rofl!'};
| |
− | smileys[11] = {'img': 'http://forum.stupidedia.org/images/default/smilies/S%20(49).gif', 'tag': 'Frustration'};
| |
− | smileys[12] = {'img': '[[Bild:Icon lol2.gif]]', 'tag': 'looooool'};
| |
− | smileys[13] = {'img': '[[Bild:Smilie seufz.gif]]', 'tag': 'seufz'};
| |
− | smileys[14] = {'img': '[[Bild:Icon schlaeger.gif]]', 'tag': 'Base'};
| |
− | smileys[15] = {'img': '[[Bild:Tonne.gif|30px]]', 'tag': 'Tonne!'};
| |
− | smileys[16] = {'img': '[[Datei:Blume2.gif]]', 'tag': 'Blume'};
| |
− | smileys[17] = {'img': 'http://img155.imageshack.us/img155/7572/sfubarlq0.png', 'tag': 'Fubar!'};
| |
− | | |
− | var div = document.getElementById('toolbar');
| |
− | var box = document.createElement('select');
| |
− | box.id = 'smileybox';
| |
− | var grp = document.createElement('optgroup');
| |
− | grp.label = "Smiley einfügen";
| |
− | var i = 0;
| |
− | while (smileys[i])
| |
− | {
| |
− | var item = document.createElement('option');
| |
− | item.innerHTML = smileys[i].tag;
| |
− | item.value = smileys[i].img;
| |
− | item.addEventListener('click',SmileyInsertion, "false");
| |
− | grp.appendChild(item);
| |
− | i++
| |
− | }
| |
− | | |
− | box.appendChild(grp);
| |
− | div.appendChild(box);
| |
− | | |
− | }
| |
− | | |
− | function SmileyInsertion(){
| |
− | | |
− | insertTags(document.getElementById('smileybox').value,"","");
| |
− | | |
− | }
| |
− | | |
− | //</nowiki>
| |