1var winObj = null 2 3 4function input_focus() 5{ 6document.suche.formSearch.focus(); 7} 8 9function onFocusClearDefault( thisValue, defaultValue ) 10{ 11 if ( thisValue == defaultValue ) 12 { 13 return ''; 14 } 15 return thisValue; 16} 17 18var $bbcode_textfeld = ""; 19 20function bbcode_textfeld_set (objekt) 21{ 22 $bbcode_textfeld = objekt; 23} 24 25function bbcode(v) 26 { 27 if (v == "") {return;} 28 if (document.selection) // IE 29 { 30 var str = document.selection.createRange().text; 31 $bbcode_textfeld.focus(); 32 var sel = document.selection.createRange(); 33 sel.text = "[" + v + "]" + str + "[/" + v + "]"; 34 return; 35 } 36 else if ((typeof $bbcode_textfeld.selectionStart) != 'undefined') // fr Mozilla 37 { 38 var txtarea = $bbcode_textfeld; 39 var selLength = txtarea.textLength; 40 var selStart = txtarea.selectionStart; 41 var selEnd = txtarea.selectionEnd; 42 //if (selEnd == 1 || selEnd == 2) 43 //selEnd = selLength; 44 var s1 = (txtarea.value).substring(0,selStart); 45 var s2 = (txtarea.value).substring(selStart, selEnd) 46 var s3 = (txtarea.value).substring(selEnd, selLength); 47 txtarea.value = s1 + '[' + v + ']' + s2 + '[/' + v + ']' + s3; 48 txtarea.selectionStart = s1.length; 49 txtarea.selectionEnd = s1.length + 5 + s2.length + v.length * 2; 50 return; 51 } 52 else insert('[' + v + '][/' + v + '] '); 53 } 54 55function bbcodeimg(v) 56 { 57 if (v == "") {return;} 58 if (document.selection) // fIE 59 { 60 var str = document.selection.createRange().text; 61 $bbcode_textfeld.focus(); 62 var sel = document.selection.createRange(); 63 sel.text = "[img]"+ v +"[/img]"; 64 return; 65 } 66 else if ((typeof $bbcode_textfeld.selectionStart) != 'undefined') // fMozilla 67 { 68 var txtarea = $bbcode_textfeld; 69 var selLength = txtarea.textLength; 70 var selStart = txtarea.selectionStart; 71 var selEnd = txtarea.selectionEnd; 72 //if (selEnd == 1 || selEnd == 2) 73 //selEnd = selLength; 74 var s1 = (txtarea.value).substring(0,selStart); 75 var s2 = (txtarea.value).substring(selStart, selEnd) 76 var s3 = (txtarea.value).substring(selEnd, selLength); 77 txtarea.value = s1 + '[img]'+ v +'[/img]' + s3; 78 txtarea.selectionStart = s1.length; 79 txtarea.selectionEnd = s1.length + 5 + s2.length + v.length * 2; 80 return; 81 } 82 else insert('[' + v + '][/' + v + '] '); 83 } 84 85 86function bbcodeurl(v) 87 { 88 if (v == "") {return;} 89 if (document.selection) // fIE 90 { 91 var str = document.selection.createRange().text; 92 $bbcode_textfeld.focus(); 93 var sel = document.selection.createRange(); 94 sel.text = "[" + v + "=http://]" + str + " [/" + v + "]"; 95 return; 96 } 97 else if ((typeof $bbcode_textfeld.selectionStart) != 'undefined') // fMozilla 98 { 99 var txtarea = $bbcode_textfeld; 100 var selLength = txtarea.textLength; 101 var selStart = txtarea.selectionStart; 102 var selEnd = txtarea.selectionEnd; 103 //if (selEnd == 1 || selEnd == 2) 104 //selEnd = selLength; 105 var s1 = (txtarea.value).substring(0,selStart); 106 var s2 = (txtarea.value).substring(selStart, selEnd) 107 var s3 = (txtarea.value).substring(selEnd, selLength); 108 txtarea.value = s1 + '[' + v + '=http://]' + s2 + ' [/' + v + ']' + s3; 109 txtarea.selectionStart = s1.length; 110 txtarea.selectionEnd = s1.length + 5 + s2.length + v.length * 2; 111 return; 112 } 113 else insert('[' + v + '=http://] [/' + v + '] '); 114 } 115 116 function bbcodeliste(v) 117 { 118 if (v == "") {return;} 119 if (document.selection) // fIE 120 { 121 var str = document.selection.createRange().text; 122 $bbcode_textfeld.focus(); 123 var sel = document.selection.createRange(); 124 sel.text = "[" + v + "][*]" + str + " [/" + v + "]"; 125 return; 126 } 127 else if ((typeof $bbcode_textfeld.selectionStart) != 'undefined') // fMozilla 128 { 129 var txtarea = $bbcode_textfeld; 130 var selLength = txtarea.textLength; 131 var selStart = txtarea.selectionStart; 132 var selEnd = txtarea.selectionEnd; 133 //if (selEnd == 1 || selEnd == 2) 134 //selEnd = selLength; 135 var s1 = (txtarea.value).substring(0,selStart); 136 var s2 = (txtarea.value).substring(selStart, selEnd) 137 var s3 = (txtarea.value).substring(selEnd, selLength); 138 txtarea.value = s1 + '[' + v + '][*]' + s2 + ' [/' + v + ']' + s3; 139 txtarea.selectionStart = s1.length; 140 txtarea.selectionEnd = s1.length + 5 + s2.length + v.length * 2; 141 return; 142 } 143 else insert('[' + v + '][*] [/' + v + '] '); 144 } 145
146 function bbcodeabk(v) 147 { 148 if (v == "") {return;} 149 if (document.selection) // fIE 150 { 151 var str = document.selection.createRange().text; 152 $bbcode_textfeld.focus(); 153 var sel = document.selection.createRange(); 154 sel.text = "[" + v + "=]" + str + " [/" + v + "]"; 155 return; 156 } 157 else if ((typeof $bbcode_textfeld.selectionStart) != 'undefined') // fMozilla 158 { 159 var txtarea = $bbcode_textfeld; 160 var selLength = txtarea.textLength; 161 var selStart = txtarea.selectionStart; 162 var selEnd = txtarea.selectionEnd; 163 //if (selEnd == 1 || selEnd == 2) 164 //selEnd = selLength; 165 var s1 = (txtarea.value).substring(0,selStart); 166 var s2 = (txtarea.value).substring(selStart, selEnd) 167 var s3 = (txtarea.value).substring(selEnd, selLength); 168 txtarea.value = s1 + '[' + v + '=]' + s2 + ' [/' + v + ']' + s3; 169 txtarea.selectionStart = s1.length; 170 txtarea.selectionEnd = s1.length + 5 + s2.length + v.length * 2; 171 return; 172 } 173 else insert('[' + v + '=] [/' + v + '] '); 174 } 175 176function insert(what) 177 { 178 if (what == "") {return;} 179 if ($bbcode_textfeld.createTextRange) 180 { 181 $bbcode_textfeld.focus(); 182 document.selection.createRange().duplicate().text = what; 183 } 184 else if ((typeof $bbcode_textfeld.selectionStart) != 'undefined') // fMozilla 185 { 186 var tarea = $bbcode_textfeld; 187 var selEnd = tarea.selectionEnd; 188 var txtLen = tarea.value.length; 189 var txtbefore = tarea.value.substring(0,selEnd); 190 var txtafter = tarea.value.substring(selEnd, txtLen); 191 tarea.value = txtbefore + what + txtafter; 192 tarea.selectionStart = txtbefore.length + what.length; 193 tarea.selectionEnd = txtbefore.length + what.length; 194 } 195 else 196 { 197 $bbcode_textfeld.value += what; 198 } 199 } 200 function show(name) { 201 var display = document.getElementById(name).style.display; 202 if (display == 'block') { 203 document.getElementById(name).style.display='none'; 204 }else{ 205 document.getElementById(name).style.display='block'; 206 } 207} 208function show1(name) { 209 var display = document.getElementById(name).style.display; 210 if (display == 'none') { 211 document.getElementById(name).style.display='block'; 212 }else{ 213 document.getElementById(name).style.display='none'; 214 } 215} 216function mark_table() 217{ 218var rows = document.getElementsByTagName("tr"); 219for (var i=0;i<rows.length;i++) { 220if (i%2 < 1) { 221rows[i].className = "hgrau"; 222 } 223 } 224}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.