Here's the script I use. I insert an html fragment placing the code between the head tags. The id of the html fragment is "frag_1" in my old editor. Has worked flawlessly for since 20011, and still works today --- except in WWB I can't move the HTML fragment to a "layout grid" or other container --- centered. If I remove the "style" information, I get nothing at all.
Want to put inside a layout grid so that it moves relative to the grid it's placed in.
Any ideas?
Code: Select all
<div id="frag_1" style="position:absolute;left:428px;top:478px;width:158px;height:21px;">
<script type="text/javascript"><!--
function makeArray() {
for (i = 0; i<makeArray.arguments.length; i++)
this[i + 1] = makeArray.arguments[i];
}
var months = new makeArray('January','February','March','April','May',
'June','July','August','September','October','November','December');
var date = new Date();
var day = date.getDate();
var month = date.getMonth() + 1;
var yy = date.getYear();
var year = (yy < 1000) ? yy + 1900 : yy;
document.write(months[month] + " " +day + "," + " " + year);
//--></script>
</div>