직사각형에 툴팁을 만들고 싶습니다. 툴팁은 배경처럼 텍스트 위에있을 때 툴팁이 그대로 유지됩니다. 라이브러리 및 jquery RaphaelJS (툴팁)를 사용합니다.툴팁 및 RaphaelJS
var paper = new Raphael(document.getElementById("canvas_schema"),550,300);
var rectangle2 = paper.rect(130, 75, 140,40,15);
var texte = paper.text(200, 90, "Tarification et souscription\nweb");
rectangle2.attr({fill:"0.0-white:5-yellow:100"});
rectangle2.animate({"stroke-width":0});
texte.mouseover(function(){
rectangle2.animate({
fill:"0.0-white:5-red:100",
"stroke-width":0,
title:"hello"});});
texte.mouseout(function(){
rectangle2.animate({
fill:"0.0-white:5-yellow:100"});});
rectangle2.mouseover(function(){
this.animate({
fill:"0.0-white:5-red:100"});});
rectangle2.mouseout(function(){
this.animate({
fill:"0.0-white:5-yellow:100"});});
$(rectangle2.node).qtip({
content: { text: 'ANTENIA<br>Solution Progicielle' },
style:'mystyle',
position: {
corner: {
target: 'topRight',
tooltip: 'bottomLeft'
}
}
});
http://jsfiddle.net/ua3Pg/ 내가 jsfiddle에 raphaelJS 및 jQuery를 사용하는 방법을 모르겠어요.
감사합니다.
안녕하세요, 답장을 보내 주셔서 감사합니다. 나는 내 문제의 예를 설정했다. 텍스트를 전달하면 툴팁이 사라집니다. http://jsfiddle.net/eZAC9/ – buffle
해결책을 찾았습니다. 면도칼 정말 고마워. http://jsfiddle.net/eZAC9/1/ – buffle