This is code.embed.test
<code>
<script language="javascript" type="text/javascript">
function updateNameFields1(value) {
mmvon = "";
len = document.form3.von.length;
for (i = 0; i <len; i++) {
if (document.form3.von[i].checked) {
mmvon = document.form3.von[i].value;
}
}
document.form3.date1.value = document.form3.mm.value + "/" +
document.form3.dd.value + "/" + document.form3.yy.value + " " +
document.form3.stdvon.value + ":" + mmvon + ":" + "00";
}
function updateNameFields2(value) {
mmbis = "";
len = document.form3.bis.length;
for (i = 0; i <len; i++) {
if (document.form3.bis[i].checked) {
mmbis = document.form3.bis[i].value;
}
}
document.form3.date2.value = document.form3.mm.value + "/" +
document.form3.dd.value + "/" + document.form3.yy.value + " " +
document.form3.stdbis.value + ":" + mmbis + ":" + "00";
}
function p (i)
{
return Math.floor(i / 10) + "" + i % 10;
}
function init ()
{
var form = document.getElementById('form3');
var date = new Date();
var s = p(date.getHours()) + ":" + (date.getMinutes()) + ":" + p
(date.getSeconds());
if (form.date1.value == "")
form.date1.value = s;
if (form.date2.value == "")
form.date2.value = s;
}
function trunc (i)
{
var j = Math.round(i * 100);
return Math.floor(j / 100) + (j % 100 > 0 ? "." + p(j % 100) :
"");
}
function calculate (form)
{
var date1 = new Date(form.date1.value);
var date2 = new Date(form.date2.value);
var sec = date2.getTime() - date1.getTime();
if (isNaN(sec))
{
alert("Uhrzeiten richtig angegeben?");
return;
}
if (sec < 0)
{
alert("Die zweite Uhrzeit liegt vor der ersten!");
return;
}
var second = 1000, minute = 60 * second, hour = 60 * minute, day
= 24 * hour;
form.result_h.value = trunc(sec / hour);
form.result_m.value = trunc(sec / minute);
form.result_s.value = trunc(sec / second);
var days = Math.floor(sec / day);
sec -= days * day;
var hours = Math.floor(sec / hour);
sec -= hours * hour;
var minutes = Math.floor(sec / minute);
sec -= minutes * minute;
var seconds = Math.floor(sec / second);
form.result.value = hours + " Stunde" + (hours != 1 ? "n" : "") +
", " + minutes + " Minute" + (minutes != 1 ? "n" : "") ;
}
</script>
</code>
On page test I have <embed test>.
If I put some parts of the scripts on a code embed page, everything
looks fine.
But the whole script gets + and some parts of {,} filtered.
That is what the page source of Firefox shows. v2.34 which takes the
whole script.
I can work now with the external js file, so take your time.
Greetings, Martin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---