Commit cf629e9f authored by 纪泽龙's avatar 纪泽龙

a

parent 96ca3366
...@@ -209,14 +209,14 @@ $(function () { ...@@ -209,14 +209,14 @@ $(function () {
}); });
$('.legendcss').on('mouseover', function (ev) { $('.legendcss').on('mouseover', function (ev) {
console.log(ev.target.className); // console.log(ev.target.className);
if (ev.target.tagName.toLowerCase() !== 'ul' &&ev.target.tagName.toLowerCase()!=="a"&& ev.target.className !=="legendchild" ) { // if (ev.target.tagName.toLowerCase() !== 'ul' &&ev.target.tagName.toLowerCase()!=="a"&& ev.target.className !=="legendchild" ) {
$("#legend").find("li .legendchild").hide(); // $("#legend").find("li .legendchild").hide();
$(ev.target).closest('li').find(".legendchild").show(); // $(ev.target).closest('li').find(".legendchild").show();
$(ev.target).closest('li').css({"backgroundImage":"url(images/vectorbot.png)"}) // $(ev.target).closest('li').css({"backgroundImage":"url(images/vectorbot.png)"})
}else{ // }else{
} // }
// if(ev.target.tagName.toLowerCase()=="a" || ev.target.className =="legendchild"){ // if(ev.target.tagName.toLowerCase()=="a" || ev.target.className =="legendchild"){
// $(ev.target).closest('li').css({"backgroundImage":"url(images/re.png)"}); // $(ev.target).closest('li').css({"backgroundImage":"url(images/re.png)"});
// } // }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment