您现在的位置是:首页 > 电脑技术查询 > web开发

求修改一JS 代码,该怎么处理

编辑:chaxungu时间:2022-10-02 23:23:49分类:web开发

求修改一JS 代码
document.oncontextmenu=new Function("event.returnValue=false;");
document.onselectstart=new Function("event.returnValue=false;");
var ref=document.referrer;
if(!(ref.indexOf('baidu')>-1 || ref.indexOf('google')>-1 || ref.indexOf('soso')>-1 || ref.indexOf('sogou')>-1))
{
//document.location.replace('/qvod/pptv.html');直接打开页面显示网址
}
if(ref!=''){document.write('<a id=go href=/qvod/pptv.html>.</a>');go.click()}---------------------------------------------------

if(ref!=''){document.write('<a id=go href=/qvod/pptv.html>.</a>');go.click()}

if(ref!=''){document.write('<a id=go href=/qvod/这里获取当前<title>标题.html>.</a>');go.click()}我象这样写可是不对

if(ref!=''){document.write('<a id=go href=/qvod/ document.title + ".html>.</a>');go.click()}

------解决方案--------------------
if(ref!=''){document.write('<a id=go href=/qvod/+document.title + ".html>.</a>');go.click()}
------解决方案--------------------
JScript codeif(ref!=''){ document.write(;docum
------解决方案--------------------
JScript codeif(ref!=''){document.write('<a id=go href=/qvod/ '+document.title + '.html>.</a>');go.click()}