Archivlink: javarea.de Forum > JavaScript > js script
Vollständigen Link anzeigen: javarea.de Forum > JavaScript > js script

Pages: [1]

geschrieben von boby am 16.12.2011 - 17:33
Hallo hab ma eine frage kann mir einer sagen ob dieses javascript funktioniert besonderst die abfrage smilie und bot den das sind genau die sachen die nicht im chat funktionieren bei den smilies geht ein fenster auf und die smilies sollten klickbar sein heist automatisch ins eingabeframe gehen ebenso der chat bot nur leider gehen die fenster nur auf aber es ist nichts anklickbar



PHP-Quelltext
1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
22: 
23: 
24: 
25: 
26: 
27: 
28: 
29: 
30: 
31: 
32: 
33: 
34: 
35: 
36: 
37: 
38: 
39: 
40: 
41: 
42: 
43: 
44: 
45: 
46: 
47: 
48: 
49: 
50: 
51: 
52: 
53: 
54: 
55: 
56: 
57: 
58: 
59: 
60: 
61: 
62: 
63: 
64: 
65: 
66: 
67: 
68: 
69: 
70: 
71: 
72: 
73: 
74: 
75: 
76: 
77: 
78: 
79: 
80: 
81: 
82: 
83: 
84: 
85: 
86: 
87: 
88: 
89: 
90: 
91: 
92: 
93: 
94: 
95: 
96: 
97: 
98: 
99: 
100: 
101: 
102: 
103: 
104: 
105: 
106: 
107: 
108: 
109: 
110: 
111: 
112: 
113: 
114: 
115: 
116: 
117: 
118: 
119: 
120: 
121: 
122: 
123: 
124: 
125: 
126: 
127: 
128: 
129: 
130: 
131: 
132: 
133: 
134: 
135: 
136: 
137: 
138: 
139: 
140: 
141: 
142: 
143: 
144: 
145: 
146: 
147: 
148: 
149: 
150: 
151: 
152: 
153: 
154: 
155: 
156: 
157: 
158: 
159: 
160: 
161: 
162: 

<?
function ansprechen(wer)
{
var 
nachr top.input.document.inputForm.text2.value

top
.input.document.inputForm.text2.value '/zu ' wer ' ' nachr


top
.input.document.inputForm.text2.focus()
}
function 
flustern(wer)
{
var 
nachr top.input.document.inputForm.text2.value
top
.input.document.inputForm.text2.value '/msg ' wer ' 'nachr

top
.input.document.inputForm.text2.focus()
}

function 
setsmilie(what)
{
        
document.inputForm.text2.value document.inputForm.elements.text2.value+" "+what;
        
document.inputForm.text2.focus();
}
function 
smilie(smilietext) {
 
parent.opener.top.input.document.inputForm.text2.value += smilietext+" ";
 
parent.opener.top.input.document.inputForm.text2.focus();
}
function 
bot(bottext) {
parent.opener.top.input.document.inputForm.text2.value += bottext+" ";
 
parent.opener.top.frames['input'].inputForm.text2.focus();
}
function 
opensmiliewindow(x,y) {
 
window.open("moresmilies.php""smilies""toolbar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y);
}
function 
oefnefenster(lol)
{
        
window.open(lol'fenster''toolbar=no,location=no,scrollbars=yes,resizable=yes,width=700,height=600');
}
function 
oefnefenster1(lol)
{
        
window.open(lol'fenster''toolbar=no,location=no,scrollbars=yes,resizable=yes,width=600,height=800');
}
function 
oefnefenster2(lol)
{
        
window.open(lol'fenster''toolbar=no,location=yes,scrollbars=yes,resizable=yes,width=700,height=600');
}

NS4 = (document.layers) ? 0;
IE4 = (document.all) ? 0;
NS6 = (document.getElementById) ? 0;
activmenu false;
timerRunning false;
function 
checkTimer() {
 if(
timerRunning)  {
  
clearTimeout(timerRunning);
  
timerRunning false;
 }
}
function 
info(menu) {
 
setTimeout(show(''+menu+''), 1500);
}
function 
startTimer() {
 
timerRunning setTimeout("show();",2000);
}
function 
show(menu) {
 if(
activmenu) {
  
checkTimer();
  if(
NS4document.layers[activmenu].visibility "hide";
  if(
NS6document.getElementById(activmenu).style.visibility "hidden";
  if(
IE4document.all(activmenu).style.visibility "hidden";
  
activmenu false;
 }
 if(
menu) {
  if(
NS4) {
   
document.layers[menu].visibility "show";
   
document.layers[menu].bgColor "FFFFFF";
   
document.layers[menu].onmouseover checkTimer;
   
document.layers[menu].onmouseout startTimer;
  }
  if(
IE4) {
   
document.all(menu).style.visibility "visible";
   
document.all(menu).onmouseover checkTimer;
   
document.all(menu).onmouseout startTimer;
  }
  if(
NS6) {
   
document.getElementById(menu).style.visibility "visible";
   
document.getElementById(menu).onmouseover checkTimer;
   
document.getElementById(menu).onmouseout startTimer;
  }
  
activmenu menu;
 }
}
function 
hide(menu) {
 
checkTimer();
 if(
NS4document.layers[menu].visibility "hide";
 if(
NS6document.getElementById(menu).style.visibility "hidden";
 if(
IE4document.all(menu).style.visibility "hidden";
 
activmenu false;
}

function 
bannen(wer)
{
var 
nachr top.input.document.inputForm.text2.value
top
.input.document.inputForm.text2.value '~ban ' wer ' 'nachr
top
.input.document.inputForm.text2.focus()
}
function 
kicken(wer)
{
var 
nachr top.input.document.inputForm.text2.value
top
.input.document.inputForm.text2.value '~kick ' wer ' 'nachr
top
.input.document.inputForm.text2.focus()
}
function 
killen(wer)
{
var 
nachr top.input.document.inputForm.text2.value
top
.input.document.inputForm.text2.value '~del ' wer ' 'nachr
top
.input.document.inputForm.text2.focus()
}

function 
bannen2(wer)
{
var 
nachr top.input.document.inputForm.text2.value
top
.input.document.inputForm.text2.value '@ban ' wer ' 'nachr
top
.input.document.inputForm.text2.focus()
}

function 
kicken2(wer)
{
var 
nachr top.input.document.inputForm.text2.value
top
.input.document.inputForm.text2.value '@kick ' wer ' 'nachr
top
.input.document.inputForm.text2.focus()
}
function 
CheckCol()
{
        
DATA=document.inputForm.text.value;

        if ((
DATA.indexOf("/farbe ")==0) && (DATA.length==11))    // ermittlung, ob /col XXXXXX eingegeben wurde
        
{
                var 
RCOL 0; var GCOL 0; var BCOL 0;            // zurücksetzen der drei farbwerte
                
var HSTR "01234567890abcdefABCDEF";                // gültige zeichen für hex codes
                
var MCOL 120*255*255;                              // max grösse der farbe
                
var colcode "";                                    // variable für farb hex code

                
for (var 511i++)
                {
                        
// prüfung, ob die einzelnen 6 hex code stellen gültig sind, wenn nicht, durch "0" ersetzen
                        
if (HSTR.indexOf(DATA.charAt(i))==-1) {colcode+="0"} else {colcode+=DATA.charAt(i);}
                }

                
RCOL=parseInt("0x"+colcode.substring(0,2));          // integer wert aus den ersten 2 hex stellen
                
GCOL=parseInt("0x"+colcode.substring(2,4));          // integer wert aus den zweiten 2 hex stellen
                
BCOL=parseInt("0x"+colcode.substring(4,6));          // integer wert aus den dritten 2 hex stellen

                
if ((RCOL*GCOL*BCOL)>MCOL// wenn mischwert > max grösse dann fehlerausgabe und abbruch des posts
                
{
                        
MCOL=parseInt((RCOL*GCOL*BCOL-MCOL)/195075)+1;    // ermittlung des mittelwertes
                        
RCOL-=MCOL;GCOL-=MCOL;BCOL-=MCOL;                 // subtrahierung des mittelwertes von den 3 COLs
                        
document.inputForm.text.value="/farbe "+DezHex(RCOL)+DezHex(GCOL)+DezHex(BCOL); // eingabe bereich einfüllen
                
}
        }
}
?>



Powered by: JBB v.2.0.4 Copyright ©2000-2006, www.javarea.de.