quinta-feira, 1 de julho de 2010

Input type=FILE no Chrome

< style >
div.fileinputs {
position: relative;
margin-top: 0px;
margin-left: 0px;
}

div.fakefile {
position: absolute;
top: 0px;
left: 0px;
margin-top: 0px;
margin-left: 0px;
z-index: 1;
}

input.file {
position: relative;
text-align: right;
-moz-opacity:0 ;
filter:alpha(opacity: 0);
opacity: 0;
z-index: 2;

height: 30px;
width: 350px;
}


div.fakefile input {
margin-bottom: 5px;
margin-left: 0;
}

input.file.hidden {
position: relative;
text-align: right;
-moz-opacity:0 ;
filter:alpha(opacity: 0);
opacity: 0;
z-index: 2;
}
< / style>


echo " < div class='fileinputs' >
< input class='file' style='width:465px' name='file-original' type='file' id='file-original' onchange=\"document.getElementById('file-falso').value = this.value;\" />
< div class='fakefile'>
< input name='file-falso' type='text' id='file-falso' style='width:350px'/> < img style='margin-bottom:-7px' src='search.gif' />
< / div >
< / div >
";
} else{
echo "< input type='FILE' name='anexo_nt[]' id='anexo_nt[]' size='50' accept='application/msword' >"; }?>

Nenhum comentário:

Postar um comentário