0
我想在矩形上創建一個工具提示,當我在文本中時,工具提示仍然保持不變,就像在背景中一樣。 我使用庫和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/ 我不知道如何使用raphaelJS和jQuery上的jsfiddle。
謝謝
嗨, 謝謝你的回答,它可以幫助我很多。 我給你舉了一個我的問題的例子。當我通過文字工具提示消失。 http://jsfiddle.net/eZAC9/ – buffle 2013-05-10 07:44:32
我找到了解決方案。非常感謝你的剃刀。 http://jsfiddle.net/eZAC9/1/ – buffle 2013-05-10 07:59:41