鼠标点击 php,php怎么判断鼠标是否点击了a标签
php如何判断鼠标是否点击了a标签
比如鼠标点击了a标签的时候
就调用php的 echo “i”;
这样要怎么做 为什么网上找不到php的事件代码
求高手帮忙写下
PHP
鼠标
标签
-——-解决方案——————————
html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
无标题文档
xmlHttp = new XMLHttpRequest();
function click_A(value){
xmlHttp.open(‘GET’,’test.php?click=1’,true);
xmlHttp.onreadystatechange = function(){
if((xmlHttp.readyState == 4)&&(xmlHttp.status ==200)){
document.getElementById(‘click’).innerHTML = xmlHttp.responseText;
}//end of if
}//end of on readystatechange
xmlHttp.send();
}
我是标签a,点击我
if($_GET[‘click’]){echo “
标签a已经被点击了”;}
?>
/*********************************/
有点长不过很多都是没用的。就是Ajax的方法
-——-解决方案——————————
你
function func(obj){
obj.innerHTML=’好’;
}
-——-解决方案——————————
$(function (){
$(“a”).click(function(){
$(this).text(‘好’);
});
})
你
还没有评论,来说两句吧...