를 작성하는 어떤 다른 방법이 내 디자인도구 팁을 표시하는 대신 여러 JQuery와 기능
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>FormBubble Examples</title>
<link href="stylesheets/formbubble.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.formbubble.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#foobar1').hover(function() { //hover
$(this).formBubble({
closeButton: false
});
$.fn.formBubble.text('hover hover hover hover');
}, function() { //mouse out
var thisBubble = $.fn.formBubble.bubbleObject;
$.fn.formBubble.close(thisBubble);
});
$('#foobar2').hover(function() { //hover
$(this).formBubble({
closeButton: false
});
$.fn.formBubble.text('Hello');
}, function() { //mouse out
var thisBubble = $.fn.formBubble.bubbleObject;
$.fn.formBubble.close(thisBubble);
});
});
</script>
</head>
<body>
<div style="width: 220px; margin: auto;">
<p>
<a href="#" id="foobar1">Static Text (Hover)</a>
</p>
<p>
<a href="#" id="foobar2">HTML-based AJAX (Click)</a>
</p>
</div>
</body>
</html>
입니다. 그 대신 하나의 기능을 가지고 필요한 도구 팁을 표시 할 수 있습니까?
시도는 아마도 당신의 선택에 대한 일반적인 클래스를 사용하여 한 번에 모든 링크를 선택 –