问题描述
<scripttype="text/javascript">varfocus_width=550//图片宽200varfocus_height=420//图片高130vartext_height=23//设置显示文字标题高度,最佳为20(如果不显示标题值设为0即可)varswf_height=focus_height+text_heightvarpics='images/1.jpg|images/2.jpg|images/3.jpg';varlinks='details.aspx?id=42|details.aspx?id=42|details.aspx?id=42';vartexts='开展廉政警示教育|组织消防知识培训|开展工作人员岗位大练兵考核';document.write('<objectID="focus_flash"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('<paramname="allowScriptAccess"value="sameDomain"><paramname="movie"value="images/focus.swf"><paramname="quality"value="high"><paramname="bgcolor"value="#FFFFFF">');document.write('<paramname="menu"value="false"><paramname=wmodevalue="opaque">');document.write('<paramname="FlashVars"value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');document.write('<embedID="focus_flash"src="images/focus.swf"wmode="opaque"FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'"menu="false"bgcolor="#C5C5C5"quality="high"width="'+focus_width+'"height="'+swf_height+'"allowScriptAccess="sameDomain"type="application/x-shockwave-flash"pluginspage="http://www.macromedia.com/go/getflashplayer"/>');document.write('</object>');</script>
解决方案
解决方案二:
我试了下,除了个灰色的框框,有问题吗?
解决方案三:
你试着放一下图片,我也只有灰色框,弹不出图片,我需要它弹出图片
解决方案四:
aspx是不是服务器控件..这种用来开发很操蛋的,好多js都不支持
解决方案五:
用alert尝试下代码运行到这里没有