


Jquery dynamically changes the src address of the image IMG example_jquery
May 16, 2016 pm 05:31 PM<div id="login_1_3a">
< a onfocus=this.blur() href="javascript:void(0)" class="l-button" style="width:80px" onclick='log_1()'>
<img onfocus=this .blur() id="img_a" border=0 align="middle" src="login_image/a_1.jpg" alt="No picture!"> </img>
</a>
</div>
$("#img_a").attr("src", "login_image/b_2.jpg");
// ========= Another important point is Using the following properties, you can remove the virtual frame after clicking on the image.
onfocus=this.blur()

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to solve the problem of automatically saving pictures when publishing on Xiaohongshu? Where is the automatically saved image when posting?

How to post pictures in TikTok comments? Where is the entrance to the pictures in the comment area?

6 Ways to Make Pictures Sharper on iPhone

How to make ppt pictures appear one by one

How to convert pdf documents into jpg images with Foxit PDF Reader - How to convert pdf documents into jpg images with Foxit PDF Reader

How to use JavaScript to implement the drag and zoom function of images?

How to use HTML, CSS and jQuery to implement advanced functions of image merging and display

How to arrange two pictures side by side in wps document
