jQuery는 마우스가 it_jquery 위로 지나갈 때 팝업 프롬프트 정보의 맵 핫스팟 효과를 구현합니다.
이 기사의 예에서는 jQuery가 마우스가 지나갈 때 팝업 프롬프트 정보의 맵 핫스팟 효과를 구현하는 방법을 설명합니다. 참고할 수 있도록 모든 사람과 공유하세요. 세부 내용은 다음과 같습니다.
여기 있는 jQuery 마우스 팝업 맵 핫스팟 효과는 많은 웹사이트에서 사용하고 있으며 작성자에게 감사의 마음을 전합니다.
런닝 효과 스크린샷은 다음과 같습니다.
구체적인 코드는 다음과 같습니다.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>jQuery地图热点效果-鼠标经过弹出提示信息</title> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <script src="jquery-1.6.2.min.js" type="text/javascript"></script> <style type="text/css"> .map img { width:496px; height: 415px; } .mapDiv { width:140px; height:61px; padding: 5px; color:#369; background: url('http://files.jb51.net/file_images/article/201508/201587110632401.gif') no-repeat; position:absolute; display: none; word-break:break-all; } </style> <script type="text/javascript"> $(document).ready(function(){ $("area").each(function(){ var $x=-70; var $y=-80; var name=$(this).attr("alt"); $(this).mouseover(function(e){ var index_num=$(this).index(); var dom="<div class='mapDiv'><p>提示消息<span class='name'></span><span class='num'></span></p></div>"; $("body").append(dom); $(".name").text(name); $(".num").text(index_num) $(".mapDiv").css({ top: (e.pageY + $y)+"px", left: (e.pageX + $x)+"px" }).show("fast"); }).mouseout(function(){ $(".mapDiv").remove(); }).mousemove(function(e){ $(".mapDiv").css({ top: (e.pageY + $y)+"px", left: (e.pageX + $x)+"px" }) }); }); }) </script> </head> <body> <div class="map"> <img src="/static/imghw/default1.png" data-src="http://files.jb51.net/file_images/article/201508/201587110854867.png" class="lazy" border="0" usemap="#Map" / alt="jQuery는 마우스가 it_jquery 위로 지나갈 때 팝업 프롬프트 정보의 맵 핫스팟 효과를 구현합니다." > <map name="Map" id="Map"> <area id="beijing" alt="jQuery는 마우스가 it_jquery 위로 지나갈 때 팝업 프롬프트 정보의 맵 핫스팟 효과를 구현합니다." href="forum.php?gid=1" coords="354,140,380,153" shape="rect"> <area id="shanghai" alt="上海" href="forum.php?gid=3" coords="434,246,462,259" shape="rect"> <area id="tianjin" alt="天津" href="forum.php?gid=2" coords="382,168,408,180" shape="rect"> <area id="chongqing" alt="重庆" href="forum.php?gid=4" coords="294,264,320,276" shape="rect"> <area id="hebei" alt="河北" href="forum.php?gid=5" coords="347,174,374,186" shape="rect"> <area id="shanxi" alt="山西" href="forum.php?gid=6" coords="322,186,348,198" shape="rect"> <area id="neimenggu" alt="内蒙古" href="forum.php?gid=7" coords="349,110,388,124" shape="rect"> <area id="liaoning" alt="辽宁" href="forum.php?gid=8" coords="406,128,432,140" shape="rect"> <area id="jilin" alt="吉林" href="forum.php?gid=9" coords="427,101,454,115" shape="rect"> <area id="heilongjiang" alt="黑龙江" href="forum.php?gid=10" coords="424,58,464,73" shape="rect"> <area id="jiangsu" alt="江苏" href="forum.php?gid=11" coords="404,224,417,250" shape="rect"> <area id="zhejiang" alt="浙江" href="forum.php?gid=12" coords="413,265,427,291" shape="rect"> <area id="anhui" alt="安徽" href="forum.php?gid=13" coords="382,236,395,263" shape="rect"> <area id="fujian" alt="福建" href="forum.php?gid=14" coords="399,300,413,327" shape="rect"> <area id="jiangxi" alt="江西" href="forum.php?gid=15" coords="371,286,385,313" shape="rect"> <area id="shandong" alt="山东" href="forum.php?gid=16" coords="373,196,399,208" shape="rect"> <area id="henan" alt="河南" href="forum.php?gid=17" coords="337,228,364,239" shape="rect"> <area id="hubei" alt="湖北" href="forum.php?gid=18" coords="329,258,356,271" shape="rect"> <area id="hunan" alt="湖南" href="forum.php?gid=19" coords="325,294,352,306" shape="rect"> <area id="guangdong" alt="广东" href="forum.php?gid=20" coords="356,343,382,355" shape="rect"> <area id="guangxi" alt="广西" href="forum.php?gid=21" coords="302,343,328,355" shape="rect"> <area id="hainan" alt="海南" href="forum.php?gid=22" coords="313,398,340,411" shape="rect"> <area id="sichuan" alt="四川" href="forum.php?gid=23" coords="239,265,265,277" shape="rect"> <area id="guizhou" alt="贵州" href="forum.php?gid=24" coords="283,311,308,324" shape="rect"> <area id="yunnan" alt="云南" href="forum.php?gid=25" coords="225,337,251,349" shape="rect"> <area id="shaanxi" alt="陕西" href="forum.php?gid=26" coords="303,224,316,251" shape="rect"> <area id="gansu" alt="甘肃" href="forum.php?gid=27" coords="179,156,205,168" shape="rect"> <area id="qinghai" alt="青海" href="forum.php?gid=28" coords="174,206,200,218" shape="rect"> <area id="ningxia" alt="宁夏" href="forum.php?gid=29" coords="277,188,290,212" shape="rect"> <area id="xinjiang" alt="新疆" href="forum.php?gid=30" coords="85,140,111,152" shape="rect"> <area id="xizang" alt="西藏" href="forum.php?gid=31" coords="87,249,113,261" shape="rect"> <area id="xianggang" alt="香港" href="forum.php?gid=32" coords="379,358,406,370" shape="rect"> <area id="aomen" alt="澳门" href="forum.php?gid=33" coords="349,371,375,383" shape="rect"> <area id="taiwan" alt="台湾" href="forum.php?gid=34" coords="434,322,448,348" shape="rect"> </map> </div> </body> </html>
이 기사가 모든 사람의 jquery 프로그래밍 설계에 도움이 되기를 바랍니다.

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

Video Face Swap
완전히 무료인 AI 얼굴 교환 도구를 사용하여 모든 비디오의 얼굴을 쉽게 바꾸세요!

인기 기사

뜨거운 도구

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

드림위버 CS6
시각적 웹 개발 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

뜨거운 주제











jQuery 참조 방법에 대한 자세한 설명: 빠른 시작 가이드 jQuery는 웹 사이트 개발에 널리 사용되는 JavaScript 라이브러리로, JavaScript 프로그래밍을 단순화하고 개발자에게 풍부한 기능을 제공합니다. 이 기사에서는 jQuery의 참조 방법을 자세히 소개하고 독자가 빠르게 시작할 수 있도록 구체적인 코드 예제를 제공합니다. jQuery 소개 먼저 HTML 파일에 jQuery 라이브러리를 도입해야 합니다. CDN 링크를 통해 소개하거나 다운로드할 수 있습니다.

jQuery에서 PUT 요청 방법을 사용하는 방법은 무엇입니까? jQuery에서 PUT 요청을 보내는 방법은 다른 유형의 요청을 보내는 것과 유사하지만 몇 가지 세부 사항과 매개 변수 설정에 주의해야 합니다. PUT 요청은 일반적으로 데이터베이스의 데이터 업데이트 또는 서버의 파일 업데이트와 같은 리소스를 업데이트하는 데 사용됩니다. 다음은 jQuery에서 PUT 요청 메소드를 사용하는 구체적인 코드 예제입니다. 먼저 jQuery 라이브러리 파일을 포함했는지 확인한 다음 $.ajax({u를 통해 PUT 요청을 보낼 수 있습니다.

jQuery를 사용하여 요소의 높이 속성을 제거하는 방법은 무엇입니까? 프런트엔드 개발에서는 요소의 높이 속성을 조작해야 하는 경우가 종종 있습니다. 때로는 요소의 높이를 동적으로 변경해야 할 수도 있고 요소의 높이 속성을 제거해야 하는 경우도 있습니다. 이 기사에서는 jQuery를 사용하여 요소의 높이 속성을 제거하는 방법을 소개하고 구체적인 코드 예제를 제공합니다. jQuery를 사용하여 높이 속성을 연산하기 전에 먼저 CSS의 높이 속성을 이해해야 합니다. height 속성은 요소의 높이를 설정하는 데 사용됩니다.

제목: jQuery 팁: 페이지에 있는 모든 태그의 텍스트를 빠르게 수정하세요. 웹 개발에서는 페이지의 요소를 수정하고 조작해야 하는 경우가 많습니다. jQuery를 사용할 때 페이지에 있는 모든 태그의 텍스트 내용을 한 번에 수정해야 하는 경우가 있는데, 이는 시간과 에너지를 절약할 수 있습니다. 다음은 jQuery를 사용하여 페이지의 모든 태그 텍스트를 빠르게 수정하는 방법을 소개하고 구체적인 코드 예제를 제공합니다. 먼저 jQuery 라이브러리 파일을 도입하고 다음 코드가 페이지에 도입되었는지 확인해야 합니다. <

제목: jQuery를 사용하여 모든 태그의 텍스트 내용을 수정합니다. jQuery는 DOM 작업을 처리하는 데 널리 사용되는 인기 있는 JavaScript 라이브러리입니다. 웹 개발을 하다 보면 페이지에 있는 링크 태그(태그)의 텍스트 내용을 수정해야 하는 경우가 종종 있습니다. 이 기사에서는 jQuery를 사용하여 이 목표를 달성하는 방법을 설명하고 구체적인 코드 예제를 제공합니다. 먼저 페이지에 jQuery 라이브러리를 도입해야 합니다. HTML 파일에 다음 코드를 추가합니다.

jQuery는 웹 페이지에서 DOM 조작 및 이벤트 처리를 처리하는 데 널리 사용되는 인기 있는 JavaScript 라이브러리입니다. jQuery에서 eq() 메서드는 지정된 인덱스 위치에서 요소를 선택하는 데 사용됩니다. 구체적인 사용 및 적용 시나리오는 다음과 같습니다. jQuery에서 eq() 메서드는 지정된 인덱스 위치에 있는 요소를 선택합니다. 인덱스 위치는 0부터 계산되기 시작합니다. 즉, 첫 번째 요소의 인덱스는 0이고 두 번째 요소의 인덱스는 1입니다. eq() 메소드의 구문은 다음과 같습니다: $("s

jQuery 요소에 특정 속성이 있는지 어떻게 알 수 있나요? jQuery를 사용하여 DOM 요소를 조작할 때 요소에 특정 속성이 있는지 확인해야 하는 상황이 자주 발생합니다. 이 경우 jQuery에서 제공하는 메소드를 사용하여 이 기능을 쉽게 구현할 수 있습니다. 다음은 jQuery 요소에 특정 속성이 있는지 확인하기 위해 일반적으로 사용되는 두 가지 방법을 특정 코드 예제와 함께 소개합니다. 방법 1: attr() 메서드와 typeof 연산자를 // 사용하여 요소에 특정 속성이 있는지 확인

jQuery는 웹 개발에 널리 사용되는 인기 있는 JavaScript 라이브러리입니다. 웹 개발 중에 JavaScript를 통해 테이블에 새 행을 동적으로 추가해야 하는 경우가 많습니다. 이 기사에서는 jQuery를 사용하여 테이블에 새 행을 추가하는 방법을 소개하고 특정 코드 예제를 제공합니다. 먼저 HTML 페이지에 jQuery 라이브러리를 도입해야 합니다. jQuery 라이브러리는 다음 코드를 통해 태그에 도입될 수 있습니다.
