js字符拼函数时 字符变量要加引号

function showChaHref(chflag, fcolumnid, channelid, channelname, MixNo, rowid) { if (chflag == 1) { var subChannelname=channelname.substring(0,5); var innerHtml2 = "<a name='llinker30" + rowid + "' href="javascript:Playchannel("+MixNo+")" mce_href="javascript:Playchannel("+MixNo+")" onfocus='setMarquee(/""+channelname+"/","+rowid+");' onblur='freeMarquee(/""+subChannelname+"/","+rowid+");'><img src="images/btn_trans.gif" mce_src="images/btn_trans.gif" name= 'llinker30" + rowid + "' width='110' height='30' border='0' ></a>"; document.write(innerHtml2); } }

你可能感兴趣的:(JavaScript,function,border)