SoFunction
Updated on 2025-04-07

Modify the default style implementation code of the file button


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:///TR/html4/">
<html xmlns="http:///1999/xhtml">
<html>
<head>
<title>Add attachment</title>
</head>
<script type="text/javascript" src="jquery-1.8."></script>
<script type="text/javascript">
function fclick(obj){
=
=-offsetWidth/2
}
$(function(){
$("#addFile").click(function(){
var br = $("<br>");
var input1 = $("<input id='inputrecievedocument' type='text'/>");
var input2 = $("<input type='button' style='margin-left:5px;background-color:blue' id='btnrecievedocument' onmouseover='fclick(t_file)' value='browse'/>");
var input3 = $("<input name='upfile' type='file' style='position:absolute;filter:alpha(opacity=0);width:70px;' id='t_file' onchange='=' hidefocus/>");
var button = $("<input type='button' value='delete' style='margin-left:5px;background-color:blue'/>");
$("#file").append(br).append(input1).append(input3).append(input2).append(button);
(function() {
();
();
();
();
();
});

});

});
</script>
<body class="body">
<form method="post" action="" enctype="multipart/form-data">
<input type="button" value="Add attachment" class="btn_fujian" style="margin-left:20px;margin-top:2px;"/>
<div ></div>
</form>
</body>
</html>