iKuai爱快流控路由

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 904|回复: 5
打印 上一主题 下一主题

[3.X] 2.4版本JS不能使用

[复制链接]
跳转到指定楼层
楼主
发表于 2015-4-29 09:06:21 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
同一个自定义JS脚本,在2.3上可以投放成功,但是有的网站上乱码,有的网站上正常,换到2.4的20150428版后,都是同一个脚本,在所有的网站上都投放不了。附脚本代码:
<script language="javascript" type="text/javascript">var pre_x;var pre_y;function do_move(obj){ var offset_x=pre_x-event.screenX; var offset_y=pre_y-event.screenY; var x=obj.style.right.substr(0,obj.style.right.length-2)-0; x+=offset_x; var y=obj.style.bottom.substr(0,obj.style.bottom.length-2)-0; y+=offset_y; obj.style.right=x+"px"; obj.style.bottom=y+"px"; pre_x=event.screenX; pre_y=event.screenY;}function do_down(obj){ pre_x=event.screenX; pre_y=event.screenY; obj.onmousemove=function(){do_move(obj);}; obj.onmouseup=function(){obj.onmousemove=null;};  obj.onmouseout=function(){obj.onmousemove=null;};}document.writeln("<table style=\\"width: 120px; height: 200px; right: 1px; bottom: 1px; z-index: 10000; background-color: \#99CCFF; position: fixed;\\" cellspacing=\\"0\\" cellpadding=\\"0\\"  onmousedown=\\"do_down(this)\\">");document.writeln("  <tr><td style=\\"height: 14px; text-align: right;\\"><font title=\\"关闭\\" style=\\"font-family:\\'CommercialPi BT\\'; font-size: 14px; background-color: \#FFFFFF; cursor: hand;\\" onclick=\\"if (event.ctrlKey) this.parentNode.parentNode.parentNode.parentNode.style.display=\\'none\\';\\">(</font></td></tr>");document.writeln("  <tr><td style=\\"height: 43px; background-image: url(\\'http://www.ikuai8.com/img/logo-big.png\\'); background-repeat: no-repeat; background-color: \#FFFFFF;\\"> </td></tr>");document.writeln("  <tr>");document.writeln("    <td style=\\"height: 143px; background-color: \#99CCFF; vertical-align: middle;\\">");document.writeln("      <p style=\\"font-size: 19px; font-weight: bold;\\">出售户户通接收机,免费收看中央1-16台等58套电视节目。</p>");document.writeln("      <p style=\\"font-size: 14px;\\">QQ:895012320<br></p>");document.writeln("    </td>");document.writeln("  </tr>");document.writeln("</table>");</script>
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
沙发
发表于 2015-4-29 09:29:42 | 只看该作者
本帖最后由 9622315 于 2015-4-29 09:35 编辑

这段代码怎么那么眼熟?俺在关闭按钮处挖的小坑,居然还在,嘻嘻嘻

这是因为原先的2.3.1版有转义字符BUG的问题,特此修正了一些特殊字符书写语法,
可以说不是标准的JS语法了。不不知道是不是2.4修正了这个问题,导致……

板凳
 楼主| 发表于 2015-4-29 09:35:06 | 只看该作者
9622315 发表于 2015-4-29 09:29
这段代码怎么那么眼熟?

这是因为原有的2.3有转义字符bug的问题,修正了一些转义字符,可以说不是标 ...

这段代码就是你写的哦,请重写一个2.4的出来吧,最好做一个生成代码的模板。
地板
发表于 2015-4-29 09:53:45 | 只看该作者
楼主,JS 代码有问题呦
5#
发表于 2015-4-29 09:54:21 | 只看该作者
转义符号去掉试试,应该都是转义符的问题
6#
发表于 2015-4-29 09:55:25 | 只看该作者
里面包含爱快的URL好像不可以哦
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

QQ|小黑屋|手机版|Archiver|论坛规章制度|iKuai Inc. ( 京ICP备13042604号 )

GMT+8, 2024-6-7 15:51

Powered by Discuz! X3.3

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表