Home > Article > Web Front-end > Add new attribute_html/css_WEB-ITnose in img
HTML JavaScript
Type HTML:$('#main_img').attr('src', $(this).attr('dataLarge')) ;
})
用了jquery就用jquery写一要⦁jquery,一下 document. (Function(){
$('#main_img').attr('src' , $(this).attr('dataLarge')); Install a jQuery, a document.getXXXX
Once you have created a specific, specific javascript, jQuery If you want to build a snowflake in the woods, you can choose to have a snowflake Unfortunately! dataLarge')); ry can be a javascript application, you can download it Does it work?
$('.xiaotu_box img').mouseover(function(){
$('#main_img').attr('src' , $(this).attr( 'dataLarge')); 🎜> document.getItemById("main_img ").src=this.getAttribute('dataLarge');
Thank you!