home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
WindowsServerTrial
/
server.iso
/
sources
/
install.wim
/
2
/
Windows
/
System32
/
ieframe.dll
/
HTML
/
IMGBROWS.JS
< prev
next >
Wrap
Text File
|
2008-01-19
|
2KB
|
62 lines
function wrapRegionalShortDate(dateIn)
{
var newDate;
try
{
newDate = regionalShortDate(dateIn);
}
catch(e)
{
newDate = dateIn;
}
return newDate;
}
function regionalizeDates() {
// ie5 changed filecreationdate and filemodifieddate
// to return 4 characters for the year, in a non-localized format.
// this code will localize the date according to the system locale setting,
// so that the properties dialog is not adversely affected.
// this function should be called from the onload handler.
var fcDate = _fileCreatedDate.innerText;
if (fcDate!= "undefined" && fcDate != "")
_fileCreatedDate.innerText = wrapRegionalShortDate(fcDate);
var fmDate = _fileModifiedDate.innerText;
if (fmDate != "undefined" && fmDate != "")
_fileModifiedDate.innerText = wrapRegionalShortDate(fmDate);
}
function BodyLoad()
{
var arrAll = document.all;
regionalizeDates();
for (i=0; i < arrAll.length; i++)
{
var elm = arrAll[i];
if (elm.id.substring(0,1) == "_")
{
if (elm.innerText== "undefined" || elm.innerText == "" || elm.innerText == "-1")
{
elm.innerText = L_NotAvailable_Text;
switch (elm.id) // == "_fileSize")
{
case "_fileSize":
spaBytes.innerText = "";
break;
case "_width":
case "_height":
spaX.innerText = "";
spaPixels.innerText = "";
_width.innerText = "";
_height.innerText = L_NotAvailable_Text;
break;
}
}
}
}
}