wcf.regNote.message
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<script language="JavaScript">
function skip () {
this.blur();
}
function toggleField (field) {
if (document.all || document.getElementById)
field.readOnly = !field.readOnly;
else if (field.onfocus)
field.onfocus = null
else field.onfocus = skip;
}
</script>
<form name="formName">
<input type="button" value="enable/disable" ONCLICK="toggleField(document.formName.fieldName);">
<input type="text" name="fieldName" value="jswelt.de">
</form>
|
,|
|
Source code |
1 2 3 4 5 6 7 |
function changetext1(value) {
var txtid1 = "text1" + value;
var mystrike = document.createElement("strike");
var textkn1 = document.createTextNode("hallo");
mystrike.appendChild(textkn1);
document.getElementById(txtid1).replaceChild(mystrike, document.getElementById(txtid1).firstChild);
}
|


Jetzt muss ich nur noch den Text auslesen da haperts auch noch ein wenig.This post has been edited 1 times, last edit by "Snoopy" (Apr 18th 2004, 7:21pm)
This post has been edited 1 times, last edit by "Snoopy" (Apr 18th 2004, 7:50pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
var old = 0;
function changetext1(value) {
for (var i = 1; i < 6; i++) {
var txtid = "text";
txtid += i;
txtid += value;
var strikeId = "strike" + i + value;
if(!old) {
var mystrike = document.createElement("strike");
var textkn = document.createTextNode(document.getElementById(txtid).firstChild.nodeValue);
mystrike.id = strikeId;
mystrike.appendChild(textkn);
document.getElementById(txtid).replaceChild(mystrike, document.getElementById(txtid).firstChild);
old = 1;
} else {
var textkn = document.createTextNode(document.getElementById(strikeId).firstChild.nodeValue);
document.getElementById(txtid).replaceChild(textkn, document.getElementById(txtid).firstChild);
old = 0;
}
}
}
|

|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<td style="width: 1%" align="center"> <input type="checkbox" name="empty$value" id="empty" value="$value" $checksel[$value] onclick="if (this.checked==true && $actionid != 0) changetext1($value, 0); if (this.checked==false && $actionid != 0) changetext1($value, 1);" /> </td> <td style="width: 1%" align="center"> $pimage </td> <td align="left"> <span class="smallfont" id="text1$value"> $title</span> </td> <td style="width: 15%" align="left"> <span class="smallfont" id="text2$value">$category</span> </td> <td style="width: 11%" align="left"> <span class="smallfont" id="text3$value">$faellig</span> </td> <td style="width: 10%" align="left"> <span class="smallfont" id="text4$value">$aufwand</span> </td> <td style="width: 12%" align="left"> <span class="smallfont" id="text5$value">$status</span> </td> |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
function changetext1(value, old) {
for (var i = 1; i < 6; i++) {
var txtid = "text";
txtid += i;
txtid += value;
var strikeId = "strike" + i + value;
if (!old) {
var mystrike = document.createElement("strike");
var textkn = document.createTextNode(document.getElementById(txtid).firstChild.nodeValue);
mystrike.id = strikeId;
mystrike.appendChild(textkn);
document.getElementById(txtid).replaceChild(mystrike, document.getElementById(txtid).firstChild);
} else {
var textkn = document.createTextNode(document.getElementById(strikeId).firstChild.nodeValue);
document.getElementById(txtid).replaceChild(textkn, document.getElementById(txtid).firstChild);
}
}
}
|

....
... nur soviel sei gesagt, das system im gesamten wird der absolute überhammer werden!!!