2 回答
TA贡献1871条经验 获得超8个赞
这是它不会重新启动的方式
$("#my_a").bind("click", function(event) {
event.preventDefault();
$("#my_image").attr("src","images/ohdaihiep/block3/bg3_1.jpg");
});
$("#my_a2").bind("click", function(event) {
event.preventDefault();
$("#my_image").attr("src","images/ohdaihiep/block3/bg3_2.png");
});
$("#my_a3").bind("click", function(event) {
event.preventDefault();
$("#my_image").attr("src","images/ohdaihiep/block3/bg3_3.jpg");
});
TA贡献1866条经验 获得超5个赞
Use this code I hope helpful
$("#my_a").bind("click", function(e) {
e.stopPropagation();
$("#my_image").attr("src","images/ohdaihiep/block3/bg3_1.jpg");
});
$("#my_a2").bind("click", function(e) {
e.stopPropagation();
$("#my_image").attr("src","images/ohdaihiep/block3/bg3_2.png");
});
$("#my_a3").bind("click", function(e) {
e.stopPropagation();
$("#my_image").attr("src","images/ohdaihiep/block3/bg3_3.jpg");
});
添加回答
举报