How to modify the "Browse" button of the html form to upload files

How to modify the "Browse" button of the html form to upload files

Copy code
The code is as follows:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="generator" content="PSPad editor, www.pspad.com">
<title></title>
</head>
<body> <style>
input{border:1px solid #000;}
.clear{clear:both;}
.ehdel_upload_show input{float:left; margin-top:10px;}
.ehdel_upload{float:left;margin-top:-20px; *margin-top:-40px; filter:alpha(opacity=0);-moz-opacity:0;opacity:0;}
</style> <form method="post" action="" enctype="multipart/form-data">
<div class="ehdel_upload_show">
<input id="ehdel_upload_text" type="text" name="txt" />
<input id="ehdel_upload_btn" type="image" src="upload/2022/web/link_popup.gif" value="Please select file" />
</div>
<div class="clear"></div>
<input type="file" onchange="ehdel_upload_text.value=this.value" class="ehdel_upload" />
</form>
</body>
</html>

<<:  Detailed explanation of jQuery method attributes

>>:  Detailed explanation of the transition attribute of simple CSS animation

Recommend

Summary of common optimization operations of MySQL database (experience sharing)

Preface For a data-centric application, the quali...

Analysis of the principle and creation method of Mysql temporary table

This article mainly introduces the principle and ...

Pure JavaScript to implement the number guessing game

Develop a number guessing game that randomly sele...

Example code for implementing 3D Rubik's Cube with CSS

Let's make a simple 3D Rubik's Cube today...

14 practical experiences on reducing SCSS style code by 50%

Preface Sass is an extension of the CSS3 language...

How to implement Docker Registry to build a private image warehouse

The image of the microservice will be uploaded to...

JavaScript determines whether the browser is IE

As a front-end developer, I can’t avoid IE’s pitf...

A Different Kind of "Cancel" Button

The “Cancel” button is not part of the necessary ...

Comparison between Redis and Memcache and how to choose

I've been using redis recently and I find it ...

Use CSS to set the width of INPUT in TD

Recently, when I was using C# to make a Web progra...

Recommend a cool flashing alarm button

The effect is as follows: The code is as follows ...

MySQL Quick Data Comparison Techniques

In MySQL operation and maintenance, a R&D col...

Detailed explanation of several solutions for JavaScript interruption requests

Table of contents 1 Promise Interrupt the call ch...

How to use JS to implement waterfall layout of web pages

Table of contents Preface: What is waterfall layo...