/hallo /mybrowser /help and /kiss NICK command ad

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Quelle: GTChat.org
    Copyright 16.12.2003 by DeadSet

    Im Ordner www des GTChats befindet sich die chat.js,

    vor:

    Quellcode

    1. sendText(text);
    2. parent.input.document.inputForm.text.focus();
    3. checkFlooding();
    4. return false;
    5. }


    einfügen:

    Quellcode

    1. if(text=='/help'){
    2. window.open("http://www.url.to/commands.html","open","resizable=yes,scrollbars=yes,bars=yes,width=500,height=500");
    3. text=text.replace(text,"");
    4. }
    5. if(text.indexOf("/kiss ") == 0 ) {
    6. name=text.replace("/kiss ","");
    7. text=text.replace(text,"/me kisses "+name+" on the cheek :luv");�
    8. }
    9. if(text=='/hallo'){
    10. text=text.replace(text,"/me says hallo to everybody :-]");
    11. }
    12. if(text=='/mybrowser'){
    13. alert(navigator.appName)
    14. text=text.replace(text,"");
    15. }

    3.262 mal gelesen