1 Star 0 Fork 2

毕设收集/8-3YouHub视频分享网站

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
AjaxdoThumbs21.js 2.71 KB
一键复制 编辑 原始数据 按行查看 历史
WzhZnb 提交于 2019-05-08 16:28 . AjaxFinal
function Thumbsup1(vid,cid)
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url="doThumbs-up2.php"
url=url+"?vid="+vid
url=url+"&cid="+cid
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedTh("sub1")
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function Thumbsup2(vid,cid)
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url="doThumbs-up2.php"
url=url+"?vid="+vid
url=url+"&cid="+cid
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedTh("sub2")
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function Thumbsup3(vid,cid)
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url="doThumbs-up2.php"
url=url+"?vid="+vid
url=url+"&cid="+cid
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedTh("sub3")
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function Thumbsup4(vid,cid)
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url="doThumbs-up2.php"
url=url+"?vid="+vid
url=url+"&cid="+cid
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedTh("sub4")
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function Thumbsup5(vid,cid,flag)
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url="doThumbs-up2.php"
url=url+"?vid="+vid
url=url+"&cid="+cid
url=url+"&sid="+Math.random()
if (flag==1){
xmlHttp.onreadystatechange=stateChangedTh1
}
if (flag==2) {
xmlHttp.onreadystatechange=stateChangedTh2
}
if (flag==3) {
xmlHttp.onreadystatechange=stateChangedTh3
}
if (flag==4) {
xmlHttp.onreadystatechange=stateChangedTh4
}
if (flag==5) {
xmlHttp.onreadystatechange=stateChangedTh5
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function stateChangedTh1()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("pp1").innerHTML=xmlHttp.responseText
}
}
function stateChangedTh2()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("pp2").innerHTML=xmlHttp.responseText
}
}
function stateChangedTh3()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("pp3").innerHTML=xmlHttp.responseText
}
}
function stateChangedTh4()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("pp4").innerHTML=xmlHttp.responseText
}
}
function stateChangedTh5()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("pp5").innerHTML=xmlHttp.responseText
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/design-collection/Spider.git
git@gitee.com:design-collection/Spider.git
design-collection
Spider
8-3YouHub视频分享网站
master

搜索帮助