首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

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

2012-02-10 
求修改一JS 代码document.oncontextmenunew Function(event.returnValuefalse)document.onselectsta

求修改一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 code
if(ref!=''){  document.write(;docum
[解决办法]
JScript code
if(ref!=''){document.write('<a id=go href=/qvod/ '+document.title + '.html>.</a>');go.click()} 

热点排行