当前位置:编程学习 > C#/ASP.NET >>

Microsoft JScript 运行时错误: 缺少对象

<script type="text/javascript">
    {
        imgUrl1 = "newspic/5.jpg";
        imgtext1 = "linux01"
        imgLink1 = escape("");
        imgUrl2 = "newspic/1.jpg";
        imgtext2 = "linux02"
        imgLink2 = escape("");
        imgUrl3 = "newspic/2.jpg";
        imgtext3 = "linux03"
        imgLink3 = escape("");
        imgUrl4 = "newspic/3.jpg";
        imgtext4 = "linux04"
        imgLink4 = escape("");


        var focus_width = 300
        var focus_height = 238
        var text_height = 0
        var swf_height = focus_height + text_height

        var pics = imgUrl1 + "|" + imgUrl2 + "|" + imgUrl3 + "|" + imgUrl4
        var links = imgLink1 + "|" + imgLink2 + "|" + imgLink3 + "|" + imgLink4
        var texts = imgtext1 + "|" + imgtext2 + "|" + imgtext3 + "|" + imgtext4

        document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + focus_width + '" height="' + swf_height + '">');
        document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="newspic/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
        document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
        document.write('<param name="FlashVars" value="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '">');
        document.write('<embed src="pixviewer.swf" wmode="opaque" FlashVars="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '" menu="false" bgcolor="#F0F0F0" quality="high" width="' + focus_width + '" height="' + focus_height + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');

        theTimer = setTimeout("nextAd()", 2);
    }
 </script>
错误:Microsoft JScript 运行时错误: 缺少对象
希望大家帮帮忙 --------------------编程问答-------------------- 具体是那一端代码????????????? --------------------编程问答--------------------   theTimer = setTimeout("nextAd()", 2);

这个函数在哪里? --------------------编程问答-------------------- 路过帮顶
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,