<!
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
>
< html >
< head >
< script LANGUAGE ="JavaScript" > ...
function DriveList()
...{
var folder=document.Drive.Name.options[document.Drive.Name.selectedIndex].value;
document.frames['MyComputer'].location.href = folder;
}
function FolderChoose()
...{
var location=document.UserLocation.FolderLocation.value;
document.frames['MyComputer'].location.href = location;
}
</ script >
</ head >
< body >
< form name ="Drive" >
< font size ="2" > 请选择一个盘: </ font >
< select name ="Name" onChange ="DriveList();" >
< option value ="A:" > A: Drive </ option >
< option value ="C:" > C: Drive </ option >
< option value ="D:" > D: Drive </ option >
< option value ="E:" > E: Drive </ option >
</ select >
</ form >
< form name ="UserLocation" >
< font size ="2" > 或者指定一个文件夹位置: </ font >
< input type ="text" name ="FolderLocation" length ="25" size ="20" >
< input TYPE ="button" value ="打开" onClick ="FolderChoose();" >
</ form >
< iframe name ="MyComputer" SRC ="about:blank" WIDTH ="50%" HEIGHT ="50%" ></ iframe >
</ body >
</ html >
< html >
< head >
< script LANGUAGE ="JavaScript" > ...
function DriveList()
...{
var folder=document.Drive.Name.options[document.Drive.Name.selectedIndex].value;
document.frames['MyComputer'].location.href = folder;
}
function FolderChoose()
...{
var location=document.UserLocation.FolderLocation.value;
document.frames['MyComputer'].location.href = location;
}
</ script >
</ head >
< body >
< form name ="Drive" >
< font size ="2" > 请选择一个盘: </ font >
< select name ="Name" onChange ="DriveList();" >
< option value ="A:" > A: Drive </ option >
< option value ="C:" > C: Drive </ option >
< option value ="D:" > D: Drive </ option >
< option value ="E:" > E: Drive </ option >
</ select >
</ form >
< form name ="UserLocation" >
< font size ="2" > 或者指定一个文件夹位置: </ font >
< input type ="text" name ="FolderLocation" length ="25" size ="20" >
< input TYPE ="button" value ="打开" onClick ="FolderChoose();" >
</ form >
< iframe name ="MyComputer" SRC ="about:blank" WIDTH ="50%" HEIGHT ="50%" ></ iframe >
</ body >
</ html >