Je moet ingelogd zijn om te stemmen.
<HTML> <HEAD> <TITLE>- dummy -</TITLE> <SCRIPT type="text/javascript" language="JavaScript"> function doCenter() { if ($var==0) { $var = 1; } else if ($var==1) { $var = 0; } if ($var==1) { document.frm.txt.value=document.frm.txt.value+'\n<center>'; } if ($var==0) { document.frm.txt.value=document.frm.txt.value+'\n</center>'; } } </SCRIPT> </HEAD> <BODY onload="$var=0"> <IMG width="20" height="20" onclick=doCenter()> <FORM name="frm"> <TEXTAREA name="txt" cols="20" rows="10">blabla</TEXTAREA> </FORM> </BODY> </HTML>
<HTML><HEAD> <TITLE>- dummy -</TITLE> <SCRIPT type="text/javascript" language="JavaScript"> function doCenter() { if ($var==0) { $var = 1; } else if ($var==1) { $var = 0; } if ($var==1) { document.frm.txt.value=document.frm.txt.value+'\n<center>'; } if ($var==0) { document.frm.txt.value=document.frm.txt.value+'\n</center>'; } } </SCRIPT></HEAD><BODY onload="$var=0"> <IMG width="20" height="20" onclick=doCenter()> <FORM name="frm"> <TEXTAREA name="txt" cols="20" rows="10">blabla</TEXTAREA> </FORM></BODY></HTML>
function doCenter() { var trigger = 0; if (trigger==0) { trigger = 1; } else if (trigger==1) { trigger = 0; } if (trigger==1) { document.frm.txt.value=document.frm.txt.value+'\n<center>'; } if (trigger==0) { document.frm.txt.value=document.frm.txt.value+'\n</center>'; } }
function doCenter() { var trigger = 0; if (trigger==0) { trigger = 1; } else if (trigger==1) { trigger = 0; } if (trigger==1) { document.frm.txt.value=document.frm.txt.value+'\n<center>'; } if (trigger==0) { document.frm.txt.value=document.frm.txt.value+'\n</center>'; }}
var trigger = false; function doCenter() { document.frm.txt.value += trigger ? '<center>': '</center>'; }
var trigger = false;function doCenter() { document.frm.txt.value += trigger ? '<center>': '</center>';}