Guest_imported
New member
- Jan 1, 1970
- 0
I have the following syntax which I am trying to open in ASP I keep getting an error on the line where is says <Script = vbscript>:
Error:
Active Server Pages error 'ASP 0138'
Nested Script Block
/test.asp, line 15
A script block cannot be placed inside another script block.
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<!-- BEGIN ESPN SPORTS TICKER -->
<script language=javascript>
<!--
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin) {
plugin = parseInt(plugin.description.substring(plugin.description.indexOf("."-1)) >= 4;
} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE">=0 && (navigator.userAgent.indexOf("Windows 95">=0 || navigator.userAgent.indexOf("Windows 98">=0 || navigator.userAgent.indexOf("Windows 2000">=0 || navigator.userAgent.indexOf("Windows NT">=0)) {
document.write('<SCRIPT LANGUAGE=VBScript\>on error resume next: plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))</SCRIPT\> \n');
}
if (plugin) {
document.write('<table width=130 border=0 cellspacing=0 cellpadding=0><tr><td>');
document.write('<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="130" height="205" id=ShockwaveFlash1>');
document.write('<param name=movie value=" document.write('<param name=quality value=high>');
document.write('<embed src=" quality=high pluginspage=" type="application/x-shockwave-flash" width="130" height="205"></embed></object></td></tr>');
document.write('</table>');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape">=0 && navigator.appVersion.indexOf("2.">=0)){
document.write('<center><font size=2 face=arial color=#FFFFFF>');
document.write('<br>You need Flash 4 to view our Enhanced ScorePost.<br>You can download Flash <a href=" target=new><font color=#FFFFFF>here</font></a>.<br>');
document.write('<br><a href=" target=new><img src=" border=0></a><br><br>');
document.write('If you have a Java enabled browser, you can view our <a href="#" onClick="window.open(\' color="#FFFFFF">old ScorePost</font></a><br>');
document.write('</font></center>');
}//--></script>
<!-- END ESPN SPORTS TICKER -->
</BODY>
</HTML>
Error:
Active Server Pages error 'ASP 0138'
Nested Script Block
/test.asp, line 15
A script block cannot be placed inside another script block.
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<!-- BEGIN ESPN SPORTS TICKER -->
<script language=javascript>
<!--
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin) {
plugin = parseInt(plugin.description.substring(plugin.description.indexOf("."-1)) >= 4;
} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE">=0 && (navigator.userAgent.indexOf("Windows 95">=0 || navigator.userAgent.indexOf("Windows 98">=0 || navigator.userAgent.indexOf("Windows 2000">=0 || navigator.userAgent.indexOf("Windows NT">=0)) {
document.write('<SCRIPT LANGUAGE=VBScript\>on error resume next: plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))</SCRIPT\> \n');
}
if (plugin) {
document.write('<table width=130 border=0 cellspacing=0 cellpadding=0><tr><td>');
document.write('<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="130" height="205" id=ShockwaveFlash1>');
document.write('<param name=movie value=" document.write('<param name=quality value=high>');
document.write('<embed src=" quality=high pluginspage=" type="application/x-shockwave-flash" width="130" height="205"></embed></object></td></tr>');
document.write('</table>');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape">=0 && navigator.appVersion.indexOf("2.">=0)){
document.write('<center><font size=2 face=arial color=#FFFFFF>');
document.write('<br>You need Flash 4 to view our Enhanced ScorePost.<br>You can download Flash <a href=" target=new><font color=#FFFFFF>here</font></a>.<br>');
document.write('<br><a href=" target=new><img src=" border=0></a><br><br>');
document.write('If you have a Java enabled browser, you can view our <a href="#" onClick="window.open(\' color="#FFFFFF">old ScorePost</font></a><br>');
document.write('</font></center>');
}//--></script>
<!-- END ESPN SPORTS TICKER -->
</BODY>
</HTML>