Add new attribute_html/css_WEB-ITnose in img

WBOY
Release: 2016-06-24 12:20:07
Original
1103 people have browsed it

HTML JavaScript

Type HTML:
>


  • spring

  • spring

  • spring

  • spring

  • 标题


Free JavaScript
//Create the custom javascript

$('.xiaotu_box img').mouseover(function(){
document.getElementById("main_img"). src=this.dataLarge;


InputSpecify(PrepareLine)
document.getElementById("main_img").src= $(this).attr('dataLarge');

$('.xiaotu_box_img').mouseover(function(){

$('#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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!