传奇世界组合:请问这个JS怎么写?

来源:百度文库 编辑:高考问答 时间:2024/04/28 22:56:11
请问,d.js文件这样写可以不?

document.writeln("<iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="770" height="60" src="http://unstat.baidu.com/bdun.bsc?tn=yy3000&cv=1&cid=15079&csid=1&rkcs=0&bgcr=F0F6FB&ftcr=0000CC&rk=1&bd=1&tbsz=30&tbst=1&sropls=1,4,6,2,3&wd=770&ht=60&kwnm=14&kwgp=1&sropst=2&bdas=0"></iframe>");

不可以,你最好是把第一个和最后一个双引号改成单引号。或者把中间的所有双引号去掉。