<! Doctype html public "-// w3c // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "content-type" content = "text/html; charset = utf-8"/>
<Style>
# Container {
Margin: auto;
Width: 400px;
Border-top-width: 0px;
Border-right-width: 1px;
Border-bottom-width: 1px;
Border-left-width: 1px;
Border-top-style: solid;
Border-right-style: solid;
Border-bottom-style: solid;
Border-left-style: solid;
Border-top-color: #000033;
Border-right-color: #000033;
Border-bottom-color: #000033;
Border-left-color: #000033;
Background-color: # ffffff;
}
# Container # header # header_left {
Float: left;
Background-image: url (images/header_left.gif );
Background-repeat: no-repeat;
Height: 42px;
Width: 45px;
}
# Container # header # header_right {
Background-image: url (images/header_right.gif );
Background-repeat: no-repeat;
Height: 42px;
Width: 6px;
Float: right;
}
Body {
Padding-top: 30px;
Background-color: # cccccc;
}
# Container # content {
Padding: 5px;
Font-family: geneva, arial, helvetica, sans-serif;
Font-size: 12px;
Font-weight: normal;
Color: #666666;
}
# Container # footer {
Font-family: geneva, arial, helvetica, sans-serif;
Font-size: 12px;
Color: #999999;
Text-align: right;
Border-top-width: 1px;
Border-right-width: 1px;
Border-bottom-width: 1px;
Border-left-width: 1px;
Border-top-style: solid;
Border-top-color: #999999;
Border-right-color: #000033;
Border-bottom-color: #000033;
Border-left-color: #000033;
Padding-top: 5px;
Padding-right: 10px;
Padding-bottom: 5px;
Padding-left: 5px;
}
# Container # footer {
Color: #999999;
Text-decoration: none;
Font-family: geneva, arial, helvetica, sans-serif;
Font-size: 10px;
}
# Container # header # header_main {
Float: left;
Padding: 5px;
Font-family: geneva, arial, helvetica, sans-serif;
Font-size: 12px;
Font-weight: bold;
Color: # ffffff;
Margin-top: 5px;
Margin-right: 0px;
Margin-bottom: 0px;
Margin-left: 0px;
}
. Sbtn {
Background-image: url (images/button.gif );
Border: 1px solid #000033;
Height: 22px;
Width: 82px;
Font-family: geneva, arial, helvetica, sans-serif;
Font-size: 12px;
Color: # ffffff;
Font-weight: bold;
Background-position: center;
Padding: 0px;
Margin-top: 20px;
Margin-right: 20px;
Margin-bottom: 0px;
Margin-left: 20px;
}
Button {
Font-family: geneva, arial, helvetica, sans-serif;
Font-size: 12px;
Font-weight: bold;
Color: # ffffff;
Height: 22px;
Width: 82px;
Background-image: url (images/button.gif );
}
# Container # content # form1 legend {
Padding: 5px;
Margin: auto;
}
Form {
Margin: 10px 5px 0px 5px;
}
# Container # header {
Padding: 0px;
Margin-top: 0px;
Margin-right: 0px;
Margin-bottom: 0px;
Margin-left: 0px;
Background-image: url (images/header_bg.gif );
Background-repeat: repeat-x;
Height: 42px;
}
Label {
Padding: 0px;
Text-align: center;
}
. Msg {
Text-align: left;
Color: #666;
Background-repeat: no-repeat;
Margin-left: 30px;
Margin-right: 30px;
Padding: 5px;
Padding-left: 30px;
}
. Emsg {
Text-align: left;
Margin-left: 30px;
Margin-right: 30px;
Color: #666;
Background-repeat: no-repeat;
Padding: 5px;
Padding-left: 30px;
}
# Loader {
Visibility: hidden;
}
# F1_upload_form {
Height: 100px;
}
# F1_error {
Font-family: geneva, arial, helvetica, sans-serif;
Font-size: 12px;
Font-weight: bold;
Color: # ff0000;
}
# F1_ OK {
Font-family: geneva, arial, helvetica, sans-serif;
Font-size: 12px;
Font-weight: bold;
Color: #00ff00;
}
# F1_upload_form {
Font-family: geneva, arial, helvetica, sans-serif;
Font-size: 12px;
Font-weight: normal;
Color: #666666;
}
# F1_upload_process {
Z-index: 100;
Visibility: hidden;
Position: absolute;
Text-align: center;
Width: 400px;
}
</Style>
<Script language = "webpage effect" type = "text/javascript">
<! --
Function startupload (){
Document. getelementbyid ('F1 _ upload_process '). style. visibility = 'visible ';
Document. getelementbyid ('F1 _ upload_form '). style. visibility = 'ddd ';
Return true;
}
Function stopupload (success ){
Var result = '';
If (success = 1 ){
Result = '<span class = "msg"> the file was uploaded successfully! </Span> <br/> ';
}
Else {
Result = '<span class = "emsg"> there was an error during file upload! </Span> <br/> ';
}
Document. getelementbyid ('F1 _ upload_process '). style. visibility = 'ddd ';
Document. getelementbyid ('F1 _ upload_form '). innerhtml = result + '<label> file: <input name = "myfile" type = "file" size = "30"/> </label> <input type = "submit" name = "submitbtn" class = "sbtn" value = "upload"/> </label> ';
Document. getelementbyid ('F1 _ upload_form '). style. visibility = 'visible ';
Return true;
}
// -->
</Script>
</Head>
<Body>
<Div id = "container">
<Div id = "header"> <div id = "header_left"> </div>
<Div id = "header_main"> max's ajax file uploader </div> <div id = "header_right"> </div>
<Div id = "content">
<Form action = "upload. php" method = "post" enctype = "multipart/form-data" target = "upload_target" onsubmit = "startupload ();">
<P id = "f1_upload_process"> loading... <br/> <br/> </p>
<P id = "f1_upload_form" align = "center"> <br/>
<Label> file:
<Input name = "myfile" type = "file" size = "30"/>
</Label>
<Label>
<Input type = "submit" name = "submitbtn" class = "sbtn" value = "upload"/>
</Label>
</P>
<Iframe id = "upload_target" name = "upload_target" src = "#" style = "width: 0; height: 0; border: 0px solid # fff; "> </iframe>
</Form>
</Div>
</Div>
</Body>