vbscript调用javascript函数的问题?
vbscript中的函数xs()怎么调用javascript中的函数?
我这么写对吗,怎么执行不了?
====================================
<%
function xs()
if request.QueryString( "orderby ") <> " " then
response.Write " <scripr LANGUAGE= 'JavaScript '> return showhideLayer( 'gd1 ', 'hide ') </script> "
end if
end function
%>
------解决方案--------------------直接用就可以了
<SCRIPT LANGUAGE= "JavaScript ">
<!--
var a = "aaaaaaaaaaaa ";
function test(){
return "adsf ";
}
//-->
</SCRIPT>
<SCRIPT LANGUAGE= "VBScript ">
<!--
Function xs()
MsgBox(test())
End Function
xs()
MsgBox(a)
//-->
</SCRIPT>