Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 需要jquery工具提示帮助_Php_Jquery_Jquery Tooltip - Fatal编程技术网

Php 需要jquery工具提示帮助

Php 需要jquery工具提示帮助,php,jquery,jquery-tooltip,Php,Jquery,Jquery Tooltip,如何在工具提示中编写php代码(变量) 这是我的密码:- <head> <link type="text/css" rel="stylesheet" href="css/screen.css" media="screen" /> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script type="te

如何在工具提示中编写php代码(变量) 这是我的密码:-

<head>
<link type="text/css" rel="stylesheet" href="css/screen.css" media="screen"  />
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>  
<script type="text/javascript" src="js/chilltip-packed.js"></script>
<script type="text/javascript">
$(function() {

$('.ChillTip').ChillTip();
$('.ChillTip1').ChillTip({ 
CTBK:'#fff', 
CTBC:'#000',    
CTW:'150'
});
});

</script>
</head>
<body>
<?php
$abc= 'Urvisha';
?>

<a href="chilltip" class="ChillTip1" title="&#60;span class=&#34;one&#34;&#62;Blue&#60;&#47;span&#62;, &#60;span class=&#34;two&#34;&#62;Pink&#60;&#47;span&#62;, &#60;span class=&#34;three&#34;&#62;Green&#60;&#47;span&#62;, &#60;span class=&#34;four&#34;&#62;Purple&#60;&#47;span&#62;, &#60;span class=&#34;five&#34;&#62;Red&#60;&#47;span&#62;, &#60;span class=&#34;six&#34;&#62;Yellow&#60;&#47;span&#62;">For more info.</a>
<button class="ChillTip" title="This is a button example">BUTTON</button>

</body> 

$(函数(){
$('.ChillTip').ChillTip();
$('.ChillTip1').ChillTip({
CTBK:“#fff”,
CTBC:“#000”,
CTW:'150'
});
});
按钮
我希望我的工具提示中有$abc 如果我在title=”“内写入$abc,则$abc不显示其值
请帮助我….

您只需将变量回显到HTML中:

<button class="ChillTip" title="<?php echo $abc?>">BUTTON</button>

谢谢@immution我犯了一个非常愚蠢的错误再次感谢你。它完全从我的脑海中消失了……它发生了:)如果这个解决方案有效,你应该接受答案