script冲突

来源:百度知道 编辑:UC知道 时间:2024/05/11 03:41:57
<script language="vbscript">
<!--
sub copyvalue()
copycon=document.all.copycontent
document.all.copycontent.focus()
document.all.copycontent.select()
document.execCommand("copy")
msgbox "本条信息已复制,请按CTRL+V发送给您的好友!谢谢",64
end sub
//-->
</script>
<IMG style="VERTICAL-ALIGN: middle; CURSOR: pointer; HEIGHT: 18px" onclick="this.src='code.asp?t='+Math.random()" alt=验证码,看不清楚?请点击刷新验证码 src="code.asp">

这两个script有没有办法可以不冲突啊?哪位大哥指点下?

给下面的img 加上language属性 language="javascript"
<script language="vbscript">
<!--
sub copyvalue()
copycon=document.all.copycontent
document.all.copycontent.focus()
document.all.copycontent.select()
document.execCommand("copy")
msgbox "本条信息已复制,请按CTRL+V发送给您的好友!谢谢",64
end sub
//-->
</script>
<IMG style="VERTICAL-ALIGN: middle; CURSOR: pointer; HEIGHT: 18px" onclick="this.src='code.asp?t='+Math.random()" alt=验证码,看不清楚?请点击刷新验证码 src="code.asp" language="javascript">