此外还有一个htc文件:
<public:component tagName="player">
<public:defaults viewLinkContent="true" viewInheritStyle="false" viewMasterTab="false" />
</public:component>
<style>
body,td,button{font:normal 12px Tahoma;color:#333333;text-align:center}
button{border:1px solid #333333;background:#EEEEEE;margin:2px;font-family:Webdings;height:20px}
div{cursor:default}
.menu{margin:3;line-height:20px;border:1px solid #dedede;background:#FFFFFF;display:none;position:absolute;z-index:1000}
.menu a:link,a:visited{border:1px solid #FFFFFF;background:#FFFFFF;text-decoration:none;display:block;padding:0 3;margin:1;color:#333333;cursor:default;text-align:left;text-indent:15px}
.menu a:hover{background:#dedede;border-color:#666666;color:#000000}
#ctlButtons IMG{behavior:url(rollover.htc)}
</style>
 <script src="play.js"></script>
<div oncontextmenu="return false" onselectstart="return false">
<div style="padding:0">
<table border="0" cellpadding="0" cellspacing="1" bgcolor="#000000"><tr><td>
<object id="movie" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400" align="middle">
<param name="movie" value="about:blank" />
<param name="wmode" value="Opaque" />
<param name="quality" value="high" />
</object>
</td></tr></table><table style="width:550px;height:35px;vertical-align:bottom" cellspacing="0" cellpadding="0" border="0">
<tr>
<td style="">
<table style="border:0px solid #333333;width:90%;" cellpadding="1" cellspacing="0">
<tr>
<td style="text-align:left;vertical-align:left;background:url(bg.gif);height:8px" onMouseDown="Jump(total*event.offsetX/421|0)">
<div id="bar" style="width:0%;font:3px;height:3px;background:#00FF44"></div>
</td>
<tr>
</table>
</td>
<td style="text-align:right;width:50px;font:11px Tahoma" id="frameCount"></td>
</tr>
</table>
<span id="ctlButtons" onClick="QStop()">
<img onClick="Rewind()" title="跳至第一帧" text="9" src="images/dd1.gif" hoverSrc="images/hh1.gif">
<img onClick="Back();this.disabled=!ctlButtons.document.all.tags('IMG')[5].disabled" title="快退" text="7" src="images/dd2.gif" hoverSrc="images/hh2.gif">
<img onClick="Play()" title="播放" text="4" src="images/hh3.gif" hoverSrc="images/dd3.gif">
<img onClick="Pause()" title="暂停" text=";" src="images/dd4.gif" hoverSrc="images/hh4.gif">
<img onClick="Stop()" title="停止" text="<" src="images/dd5.gif" hoverSrc="images/hh5.gif">
<img onClick="Forward();this.disabled=!ctlButtons.document.all.tags('IMG')[1].disabled" title="快进" text="8" src="images/dd6.gif" hoverSrc="images/hh6.gif">
<img onClick="GoToEnd()" title="跳至最末帧" text=":" src="images/dd7.gif" hoverSrc="images/hh7.gif">
<img onClick="Replay()" title="重放" text="q" src="images/dd8.gif" hoverSrc="images/hh8.gif">
<script id="scriptBlock" defer>showMirrors()</script>
<img onClick="showMenu(menu)" title="打开 Flash 文件" text="5" src="images/dd9.gif" hoverSrc="images/hh9.gif">
<input type="file" id="moviefile" style="display:none" onpropertychange="loadMovie()"></span>
<div id="menu" class="menu" onClick="this.style.display='none'">
<a href="打开指定URL" onClick="OpenRemoteSwf();return false">打开指定URL</a>
<a href="选择本地文件" onClick="selectMovie();return false">选择本地文件</a>
<a href="选择本地文件" onClick="alert('FLash8 Player 3.0 Preview\nCopyright (C) Flash8.Net\nCode By 我佛山人');return false">关于Flash8 Player</a>
</div></div>
<script defer>
movie=document.getElementById("movie")
loadSWF(element.src,element.width,element.height)
</script>
</div>

解决方案 »

  1.   

    再还有两个js文件:
    一:
    function tURL(ftopics,furls,fnsorts){
      var ftopic,furl,fnsort,url
      ftopic=ftopics
      furl=furls
      fnsort=fnsorts
      if(ftopic.length<1)ftopic=""
      if(furl.length<1)furl=""
      if(fnsort.length<1)fnsort=""
      ftopic=escape(ftopic)
      furl=escape(furl)
      fnsort=escape(fnsort)
      url="../fav.asp?ftopic="+ftopic+"&furl="+furl+"&fnsort="+fnsort
      
    open_win(url,'add_fav',240,100,'no')
    }
    function open_win(url,name,width,height,scroll)
    {
    var Left_size = (screen.width) ? (screen.width-width)/2 : 0;
    var Top_size = (screen.height) ? (screen.height-height)/2 : 0;
    var open_win=window.open(url,name,'width=' + width + ',height=' + height + ',left=' + Left_size + ',top=' + Top_size + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scroll + ',resizable=no' );
    }
    二:
    var movie,timer,step,total,state,delay=1000,qtimer,left,osrc=element.src,tcount,selUrl
    function init(){
    step=5
    state=null
    total=movie.TotalFrames
    buttonState(false)
    left=18+movie.width*1/2-265
    if(movie.width<500)left=25
    bar.outerHTML='<img onmousedown="Down()" onmousemove="Move()" onmouseup="Up()" src="posbar.gif" width="29" height="10" id="bar" style="position:absolute;left:{LEFT};top:{TOP};filter:alpha(opacity=80)" onmouseover="this.filters[0].opacity=100" onmouseout="this.filters[0].opacity=80">'.replace(/{Left}/,left).replace(/{TOP}/,movie.height*1+16)
    timer = window.setInterval(showStatus,delay)
    }function Rewind(){
    movie.Rewind()
    }function Back(){
    if(movie.FrameNum>=step&&state!="forward"){
    state="back"
    Quick()
    qtimer=window.setTimeout(Back,delay)
    }
    else QEnd(1)
    }function Play(){
    movie.Play()
    }function Pause(){
    with(movie)IsPlaying()?StopPlay():Play()
    }function Stop(){
    movie.StopPlay()
    }function Forward(){
    if(movie.FrameNum!=total-1&&state!="back"){
    state="forward"
    Quick()
    qtimer=window.setTimeout(Forward,delay)
    }
    else QEnd(5)
    }function GoToEnd(){
    movie.GoToFrame(total-1)
    }function Replay(){
    Rewind()
    Play()
    window.setTimeout(Play,delay*5)
    }function showStatus(){
    var N=movie.FrameNum
    frameCount.innerText=(N+1)+"/"+total
    if(element.src!=osrc&&element.src!=movie.movie)loadSWF(element.src,element.width,element.height)
    document.getElementById("bar").style.posLeft=left+421*(N+1)/total|0
    }function Quick(){
    var targetFrame=movie.FrameNum+step*{back:-1,forward:1}[state]
     movie.GoToFrame(targetFrame)
    }function selectMovie(){
    document.getElementById("moviefile").click()
    }function loadMovie(){
    var file=event.srcElement.value
    if(file=="")return false
    var dim=window.prompt("请输入该SWF文件的宽和高(只能是大于三位数小于五位数的数字)","500,400")
    if(/.+\.swf$/.test(file)&&/^(\d{3,5}),(\d{3,5})$/i.test(dim)){
    //movie.LoadMovie(0,file)
    element.src=file
    loadSWF(file,dim.split(",")[0],dim.split(",")[1])
    }
    else alert("文件格式错误,请重新选择")
    }function buttonState(de){
    var images=ctlButtons.document.all.tags("IMG")
    for(var i=0;i<images.length-2;i++)
     images[i].disabled=de
    images[2].disabled = false;
    }function loaded(){
    frameCount.innerText=movie.PercentLoaded()+"%"
    bar.style.width=frameCount.innerText
    if(movie.PercentLoaded()==100)  init()
    else window.setTimeout(loaded,100)
    }function Jump(n){
    event.cancelBubble=true
    movie.GoToFrame(n)
    Play()
    }function QStop(){
    var bText=event.srcElement.text
    if(bText!='7'&&bText!='8'){
    window.clearTimeout(qtimer)
    window.status="完毕"
    if(state!=null)
    ctlButtons.document.all.tags("IMG")[{back:1,forward:5}[state]].disabled=false
    state=null
    step=5
    }
    else{
    if(state=={7:"back",8:"forward"}[bText])step++
    else step--
    if(step==0)step=1
    window.status="当前快放倍数:×"+step+"  帧速率:"+step*1000/delay+" fps"
    }
    }function QEnd(n){
    state=null
    ctlButtons.document.all.tags("IMG")[n].disabled=false
    }function OpenRemoteSwf(){
    var url=window.prompt("请输入指定SWF文件的地址(必须是HTTP协议的合法URL)",movie.movie)
    if(!url)return false
    var dim=window.prompt("请输入该SWF文件的宽和高(只能是大于三位数小于五位数的数字)","500,400")
    if(/^(http:\/\/)?.+\.swf$/i.test(url)&&/^(\d{3,5}),(\d{3,5})$/i.test(dim)){
    bar.outerHTML='<div id="bar" style="width:0%;font:3px;height:3px;background:#00FF44">'
    element.src=url
    loadSWF(url,dim.split(",")[0],dim.split(",")[1])
    }
    else alert("输入错误,请重新检查后再输入。")
    }var down=false,ox,cx
    function Down(){
    window.clearInterval(timer)
    event.cancelBubble=true
    down=true
    ox=event.offsetX
    cx=document.body.scrollLeft+event.x
    bar.setCapture()
    }function Move(){
    if(down&&event.x>left+ox&&event.x<left+421+ox){
    Jump(total*(event.x-left)/421|0)
    bar.style.posLeft=document.body.scrollLeft+event.x-ox
    }
    }function Up(){
    down=false
    bar.releaseCapture()
    timer = window.setInterval(showStatus,delay)
    }function loadSWF(src,w,h){
    if(src=="")return false
    window.clearInterval(timer)
    window.clearTimeout(qtimer)
    movie.movie = src
    movie.width = w
    movie.height = h
    buttonState(true)
    loaded()
    }function bloadSWF(src,w,h,index){
    bar.outerHTML = '<div id="bar" style="width:0%;font:3px;height:3px;background:#00FF44"></div>'
    var links = mirror.document.all.tags("A")
    links[selUrl/2].runtimeStyle.color="#333333"
    links[index/2].runtimeStyle.color="red"
    selUrl = index
    setCookie("Index",index)
    loadSWF(src,w,h)
    }function showMenu(obj){
    with(obj.runtimeStyle){
    display={none:"block",block:"none"}[obj.currentStyle.display]
    posLeft=document.body.scrollLeft+event.x-5
    posTop=document.body.scrollTop+event.y-obj.offsetHeight
    }
    }function showMirrors(){
    var urls = element.Urls
    selUrl = (getCookie("Index")||0)|0
    var highlight = ""
    var sHtml = "<img onClick=\"showMenu(mirror)\" title=\"选择最快的flash文件镜像(自动记录)\" text=\"55\" src=\"images\/dd10.gif\" hoverSrc=\"images\/hh10.gif\">\n<div id=\"mirror\" class=\"menu\" onClick=\"this.style.display='none'\">"
    var sFormat = "<a href=\"{text}\" onClick=\"bloadSWF('{url}',{width},{height},{index});return false\"{highlight}>{text}</a>"
    if(urls!=null&&urls!="")
    urls=urls.split(",")
    else return false;
    element.src = urls[selUrl+1]
    if(!(urls.length%2)){
    for(var i=0;i<urls.length;i+=2){
    if(i==selUrl)highlight = " style=\"color:red\""
    else highlight = ""
    sHtml += sFormat.replace(/{text}/g,urls[i]).replace(/{url}/g,urls[i+1]).replace(/{width}/g,element.width).replace(/{height}/g,element.height).replace(/{index}/g,i).replace(/{highlight}/g,highlight)
    }
    }
    else return false;
    sHtml +="<\/div>"
    scriptBlock.outerHTML=sHtml
    }function setCookie(){
    var name=arguments[0],value=escape(arguments[1]),days=365,path="/"
    if(arguments.length>2)days=arguments[2]
    if(arguments.length>2)path=arguments[3]
    with(new Date()){
    setDate(getDate()+days)
    days=toUTCString()
    }
    document.cookie=[name+"="+value,"expires="+days,"path="+path].join(";")
    }function getCookie(){
    var returnValue=document.cookie.match(new RegExp("[\^\b;]"+arguments[0]+"=([^;]*)(;?)","i"))
    return returnValue?unescape(returnValue[1]):returnValue
    }document.onclick=function(){
    var bText=event.srcElement.text
    if(bText!="5"&&bText!="a") menu.runtimeStyle.display="none"
    if(bText!="55")mirror.runtimeStyle.display="none"
    }