Ich habe hier ebenfalls das Problem.
Das pkbbsingle und die Smileys funktionieren mit einem Klick nicht mehr
Eingebaute Erweiterungen:
fx/main.js
Hier klicken für weitere Informationen
pk/fx/main.js
Hier klicken für weitere Informationen
Ich danke für weitere Hilfe
Wenn ich die Funktion
Mit dieser ersetze
Dann geht das wieder
Das pkbbsingle und die Smileys funktionieren mit einem Klick nicht mehr
Eingebaute Erweiterungen:
- Kit-Coding: Fontsize
- Kit-Coding: Cursor mittig setzen
- Kit-Coding: Cursor/Textarea Bugfix im Firefox Browser + WCMS PHPKIT
fx/main.js
|
|
Javascript-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 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 |
// *** Text bei der Eingabeaufforderung *********** linkname = "Geben Sie bitte den Linknamen an (optional)."; linkadresse = "Geben Sie bitte die vollst\u00E4ndige Adresse des Links an."; fontsize = "Geben Sie hier die Schriftgr\u00F6\u00DFe an."; fontcolor = "Schreiben Sie die Farbe in das Textfeld!\nM\u00F6glich sind:\nwhite,gray,dimgray,navy,royalblue,red,orange,yellow,green oder HEX Angaben\n\nSie k\u00F6nnen das Feld auch leerlassen, damit die Webseiten Standardfarbe genommen wird."; emailname = "Geben Sie bitte die E-Mail-Adresse ein."; listentyp = "F\u00FCr eine numerierte Liste geben Sie eine '1' an.\r\nF\u00FCr eine alphabetische ein 'a'.\r\nF\u00FCr eine einfache Punktliste dr\u00FCcken Sie OK."; listenwerte = "Geben Sie bitte die Listenpunkte ein und dr\u00FCcken Sie anschliessend OK.\r\nAlternativ k\u00F6nnen Sie 'Abbrechen' w\u00E4hlen, um die Liste direkt fertigzustellen."; //**** Pop-Fenster ********** function helpwindow(w,h,e) { window.open("include.php?path=popup&mode=help&explain="+e,"helpwindow","toolbar=no,scrollbars=yes,resizable=yes,status=no,width="+w+",height="+h); } function smiliewindow(w,h) { window.open("include.php?path=popup&mode=smilies&window_w_size="+w+"&window_h_size="+h,"smilies","toolbar=no,scrollbars=yes,resizable=yes,status=no,width="+w+",height="+h); } function finduserID(w,h) { window.open("include.php?path=popup&mode=finduser&window_w_size="+w+"&window_h_size="+h,"finduser","toolbar=no,scrollbars=yes,resizable=yes,status=no,width="+w+",height="+h); } function checkall(status,theelement) { for (i=0;i<document.myform.length;i++) {if(document.myform.elements[i].name=="" + theelement + "[]") document.myform.elements[i].checked=status;} } /*bbcode*/ var pkBBArea=null; var pkBBSelected=''; function pkBBFocus() { pkBBArea.focus(); } /*textselection*/ function pkBBSelection(obj) { pkBBArea=obj; if(window.getSelection) pkBBSelected=pkBBArea.value.substring(pkBBArea.selectionStart,pkBBArea.selectionEnd); else if(document.getSelection) pkBBSelected=pkBBArea.value.substring(pkBBArea.selectionStart,pkBBArea.selectionEnd); else if(document.selection) pkBBSelected=document.selection.createRange().text; if(pkBBArea.createTextRange) pkBBArea.caretPos=document.selection.createRange().duplicate(); return true; } function pkBBSingle(text) { text=' '+text+' '; pkBBCodeAdd(text); } function pkBBFont(bbcode){ text=(pkBBSelected) ? pkBBSelected : ''; size=""; color=""; TTcolorAdd=""; HextoUpper=""; myCounter=0; fine=0; TTSize=prompt(fontsize,size); if(isNaN(TTSize) == false){ if ((TTSize<30 && TTSize>10) || TTSize=='' || TTSize == null){ if((TTSize!='') && (TTSize != null)){ TTcolor=prompt(fontcolor,color); HextoUpper=TTcolor.toUpperCase(); control=HextoUpper.match(/^([0-9A-F]{6})$/ig); Farbcode = new Array("white","gray","dimgray","navy","royalblue","red","orange","yellow","green"); while(myCounter < Farbcode.length){ if(Farbcode[myCounter]==TTcolor || control){ fine=1; } myCounter++; } if((TTcolor!='') && (TTcolor != null) && fine==1){ if(control){ TTcolor=HextoUpper; } TTcolorAdd="="+TTcolor+""; }else{ if(fine==0 && TTcolor != null && TTcolor != ''){ alert("Ihre eingegebene Farbe("+TTcolor+") ist uns nicht bekannt!"); } TTcolorAdd=""; } auswahltext = "["+bbcode+"="+TTSize+TTcolorAdd+"]"+text+"[/"+bbcode+"]"; pkBBCodeAdd(auswahltext); } }else{ alert(TTSize + " ist zu gro\u00DF oder zu klein!"); } }else{ alert(TTSize + " ist keine Zahl!"); } } function pkBBCodeAdd(text) { if(pkBBArea==null) { pkBBArea=document.getElementById('pkBBArea'); pkBBFocus(); pkBBSelection(pkBBArea); } if(text.match(/\[\/(.*)\]/g)){ Ergebnis = text.match(/\[\/(.*)\]/g) NewLenght= Ergebnis[0].length; }else{ NewLenght=0; } if(text.charAt(text.length - 1)==' '){ NewLenght=0; } Ergebnis = text.match(/\[\/(.*)\]/g); NewLenght= Ergebnis[0].length; if(text.charAt(text.length - 1)==' '){ NewLenght=0; } if(window.getSelection) { pos=pkBBArea.selectionStart + text.length - NewLenght; scrollPos = pkBBArea.scrollTop; pkBBArea.value=pkBBArea.value.substr(0,pkBBArea.selectionStart) + text + pkBBArea.value.substr(pkBBArea.selectionEnd); pkBBArea.selectionStart=pos; pkBBArea.selectionEnd=pos; } else if(pkBBArea.createTextRange && pkBBArea.caretPos) { var caretPos = pkBBArea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1)==' ' ? text + ' ' : text; } else pkBBArea.value+=text pkBBFocus(); pkBBArea.scrollTop = scrollPos; } function pkBBCode(bbcode) { text=(pkBBSelected) ? pkBBSelected : ''; text="["+bbcode+"]"+text+"[/"+bbcode+"]"; pkBBCodeAdd(text); pkBBFocus(); } function pkBBColor(bbcode) { text=(pkBBSelected) ? pkBBSelected : ''; text="[color="+bbcode+"]"+text+"[/color]"; pkBBCodeAdd(text); pkBBFocus(); } /*link and email*/ function pkBBLink(bbcode) { text=(pkBBSelected) ? pkBBSelected : ''; linktext = prompt(linkname,text); var fensterausgabe; if (bbcode == "URL") { ausgabe = linkadresse; ausgabeinhalt = "http://"; } else { ausgabe = emailname; ausgabeinhalt = ""; } linkurl = prompt(ausgabe,ausgabeinhalt); if ((linkurl != null) && (linkurl != "")) { if ((linktext != null) && (linktext != "")) { auswahltext = "["+bbcode+"="+linkurl+"]"+linktext+"[/"+bbcode+"] "; pkBBCodeAdd(auswahltext); } else{ auswahltext = "["+bbcode+"]"+linkurl+"[/"+bbcode+"] "; pkBBCodeAdd(auswahltext); } } } /* list */ function pkBBList() { listtype=prompt(listentyp,''); if((listtype == "a") || (listtype == "1")) { mylist = "[list="+listtype+"]\n"; listend = "[/list="+listtype+"] "; } else { mylist = "[list]\n"; listend = "[/list] "; } listentry="initial"; while((listentry!="") && (listentry != null)) { listentry=prompt(listenwerte,''); if((listentry!='') && (listentry != null)) mylist = mylist+"[li]"+listentry+"[/li]\n"; } pkBBCodeAdd(mylist+listend); } |
pk/fx/main.js
|
|
Javascript-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 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 |
// *** Text bei der Eingabeaufforderung *********** standard = "Geben Sie bitte den gew\u00FCnschten Text ein:"; texteingabe = "Geben Sie bitte Ihren Text ein - "; linkname = "Geben Sie bitte den Linknamen an (optional)."; linkadresse = "Geben Sie bitte die vollst\u00E4ndige Adresse des Links an."; fontsize = "Geben Sie hier die Schriftgr\u00F6\u00DFe an."; fontcolor = "Schreiben Sie die Farbe in das Textfeld!\nM\u00F6glich sind:\nwhite,gray,dimgray,navy,royalblue,red,orange,yellow,green oder HEX Angaben\n\nSie k\u00F6nnen das Feld auch leerlassen, damit die Webseiten Standardfarbe genommen wird."; emailname = "Geben Sie bitte die E-Mail-Adresse ein."; listentyp = "F\u00FCr eine numerierte Liste geben Sie eine '1' an.\r\nF\u00FCr eine alphabetische ein 'a'.\r\nF\u00FCr eine einfache Punktliste dr\u00FCcken Sie OK."; listenwerte = "Geben Sie bitte die Listenpunkte ein und dr\u00FCcken Sie anschliessend OK.\r\nAlternativ k\u00F6nnen Sie 'Abbrechen' w\u00E4hlen, um die Liste direkt fertigzustellen."; highlightmsg = "Alles markiert und in die Zwischenablage kopiert."; searchfailed = "Die Suche lieferte kein Ergebnis."; admincss = "<link rel='stylesheet' href='fx/default/css/main.css' type='text/css'>"; //**** Pop-Fenster ********** function helpwindow(w,h,e) { window.open("include.php?path=help&explain="+e,"helpwindow","toolbar=yes,scrollbars=yes,resizable=yes,location=yes,directories=yes,status=yes,menubar=yes,width="+w+",height="+h); } function smiliewindow(w,h) { window.open("include.php?path=popup&mode=smilies&window_w_size="+w+"&window_h_size="+h,"smilies","toolbar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h); } function morelinkswindow(w,h,opt) { window.open("include.php?path=popup&mode=morelinks&window_w_size="+w+"&window_h_size="+h+"&option="+opt,"morelinks","toolbar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h); } function readfilewindow(w,h,opt) { window.open("include.php?path=popup&mode=readfile&window_w_size="+w+"&window_h_size="+h+"&option="+opt,"readfile","toolbar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h); } function finduserID(w,h,opt) { window.open("include.php?path=popup&mode=finduser&window_w_size="+w+"&window_h_size="+h+"&option="+opt,"finduser","toolbar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h); } function downloadwindow(w,h,opt) { window.open("include.php?path=popup&mode=download&window_w_size="+w+"&window_h_size="+h+"&option="+opt,"download","toolbar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h); } function previewWindow(w,h) { window.open("include.php?path=popup&mode=preview&window_w_size="+w+"&window_h_size="+h,"preview","toolbar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h); } function previewTemplate() { var inf=document.edittemplate.template_value.value + admincss; popupwindow=window.open(", ","popup","toolbar=no,status=no,scrollbars=yes,resizable=yes"); popupwindow.document.write("" + inf + ""); } var NS4=(document.layers); var IE4=(document.all); var win=window; var n=0; function highlightSearch(str) { var txt, i, found; if (str == '') return false; if (NS4) { if (!win.find(str)) while(win.find(str, false, true)) n++; else n++; if (n == 0) alert(searchfailed); } if (IE4) { txt = win.document.body.createTextRange(); for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) { txt.moveStart('character', 1); txt.moveEnd('textedit'); } if (found) { txt.moveStart('character', -1); txt.findText(str); txt.select(); txt.scrollIntoView(); n++; } else { if (n > 0) {n = 0; findit(str);} else alert(searchfailed); } } return false; } function HighlightAndCopy() { var tempval=eval("document.edittemplate.template_value") tempval.focus() tempval.select() if (document.all){ therange=tempval.createTextRange() therange.execCommand("Copy") window.status=highlightmsg setTimeout("window.status=''",1800) } } function checkall(status,theelement) { for (i=0;i<document.myform.length;i++) {if(document.myform.elements[i].name=="" + theelement + "[]") document.myform.elements[i].checked=status;} } /*bbocde*/ var pkBBArea=null; var pkBBSelected=''; function pkBBFocus() { pkBBArea.focus(); } /*textselection*/ function pkBBSelection(obj) { pkBBArea=obj; if(window.getSelection) pkBBSelected=pkBBArea.value.substring(pkBBArea.selectionStart,pkBBArea.selectionEnd); else if(document.getSelection) pkBBSelected=pkBBArea.value.substring(pkBBArea.selectionStart,pkBBArea.selectionEnd); else if(document.selection) pkBBSelected=document.selection.createRange().text; if(pkBBArea.createTextRange) pkBBArea.caretPos=document.selection.createRange().duplicate(); return true; } function pkBBSingle(text) { text=' '+text+' '; pkBBCodeAdd(text); } function pkBBFont(bbcode){ text=(pkBBSelected) ? pkBBSelected : ''; size=""; color=""; TTcolorAdd=""; HextoUpper=""; myCounter=0; fine=0; TTSize=prompt(fontsize,size); if(isNaN(TTSize) == false){ if ((TTSize<30 && TTSize>10) || TTSize=='' || TTSize == null){ if((TTSize!='') && (TTSize != null)){ TTcolor=prompt(fontcolor,color); HextoUpper=TTcolor.toUpperCase(); control=HextoUpper.match(/^([0-9A-F]{6})$/ig); Farbcode = new Array("white","gray","dimgray","navy","royalblue","red","orange","yellow","green"); while(myCounter < Farbcode.length){ if(Farbcode[myCounter]==TTcolor || control){ fine=1; } myCounter++; } if((TTcolor!='') && (TTcolor != null) && fine==1){ if(control){ TTcolor=HextoUpper; } TTcolorAdd="="+TTcolor+""; }else{ if(fine==0 && TTcolor != null && TTcolor != ''){ alert("Ihre eingegebene Farbe("+TTcolor+") ist uns nicht bekannt!"); } TTcolorAdd=""; } auswahltext = "["+bbcode+"="+TTSize+TTcolorAdd+"]"+text+"[/"+bbcode+"]"; pkBBCodeAdd(auswahltext); } }else{ alert(TTSize + " ist zu gro\u00DF oder zu klein!"); } }else{ alert(TTSize + " ist keine Zahl!"); } } function pkBBCodeAdd(text) { if(pkBBArea==null) { pkBBArea=document.getElementById('pkBBArea'); pkBBFocus(); pkBBSelection(pkBBArea); } if(text.match(/\[\/(.*)\]/g)){ Ergebnis = text.match(/\[\/(.*)\]/g) NewLenght= Ergebnis[0].length; }else{ NewLenght=0; } if(text.charAt(text.length - 1)==' '){ NewLenght=0; } Ergebnis = text.match(/\[\/(.*)\]/g); NewLenght= Ergebnis[0].length; if(text.charAt(text.length - 1)==' '){ NewLenght=0; } if(window.getSelection) { pos=pkBBArea.selectionStart + text.length - NewLenght; scrollPos = pkBBArea.scrollTop; pkBBArea.value=pkBBArea.value.substr(0,pkBBArea.selectionStart) + text + pkBBArea.value.substr(pkBBArea.selectionEnd); pkBBArea.selectionStart=pos; pkBBArea.selectionEnd=pos; } else if(pkBBArea.createTextRange && pkBBArea.caretPos) { var caretPos = pkBBArea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1)==' ' ? text + ' ' : text; } else pkBBArea.value+=text pkBBFocus(); pkBBArea.scrollTop = scrollPos; } function pkBBCode(bbcode) { text=(pkBBSelected) ? pkBBSelected : ''; text="["+bbcode+"]"+text+"[/"+bbcode+"]"; pkBBCodeAdd(text); pkBBFocus(); } /*link and email*/ function pkBBLink(bbcode) { text=(pkBBSelected) ? pkBBSelected : ''; linktext = prompt(linkname,text); var fensterausgabe; if (bbcode == "URL") { ausgabe = linkadresse; ausgabeinhalt = "http://"; } else { ausgabe = emailname; ausgabeinhalt = ""; } linkurl = prompt(ausgabe,ausgabeinhalt); if ((linkurl != null) && (linkurl != "")) { if ((linktext != null) && (linktext != "")) { auswahltext = "["+bbcode+"="+linkurl+"]"+linktext+"[/"+bbcode+"] "; pkBBCodeAdd(auswahltext); } else{ auswahltext = "["+bbcode+"]"+linkurl+"[/"+bbcode+"] "; pkBBCodeAdd(auswahltext); } } } /* list */ function pkBBList() { listtype=prompt(listentyp,''); if((listtype == "a") || (listtype == "1")) { mylist = "[list="+listtype+"]\n"; listend = "[/list="+listtype+"] "; } else { mylist = "[list]\n"; listend = "[/list] "; } listentry="initial"; while((listentry!="") && (listentry != null)) { listentry=prompt(listenwerte,''); if((listentry!='') && (listentry != null)) mylist = mylist+"[li]"+listentry+"[/li]\n"; } pkBBCodeAdd(mylist+listend); } |
Ich danke für weitere Hilfe
Wenn ich die Funktion
|
|
Javascript-Quelltext |
1 2 3 4 5 |
function pkBBSingle(text) { text=' '+text+' '; pkBBCodeAdd(text); } |
Mit dieser ersetze
|
|
Javascript-Quelltext |
1 2 3 4 |
function pkBBSingle(tag) { document.myform.pkBBArea.value += tag+""; document.myform.pkBBArea.focus(); } |
Dann geht das wieder
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Sumale.nin« (1. Juni 2011, 10:52)

- 1
- 2

Ähnliche Themen
-
Site Showroom »-
Sims Paradies - Eure neue Sims Homepage
(8. Mai 2008, 21:17)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Logo mittig setzen ?
(12. August 2008, 20:18)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
go.php und links.php
(10. März 2008, 13:53)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
site_kopf Navi Center
(7. April 2008, 18:38)


