由于浏览器设置过,所以打开UTF-8编码的页面会显示乱码 想请问一下 下面的代码哪里出了问题 不能设置为gb2312的编码 非要手动设置才能正常浏览? :cry: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <!-- saved from url=(0021)http://www.charw.com/ --> <HTML lang=zh-cn xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>奥运直播|体育直播 </TITLE> <META http-equiv=Content-Type content="text/html; charset=gb2312"> <META http-equiv=Content-Language content=gb2312> <META content=all name=robots> <META content=奥运直播 name=author> <META content=体育直播 name=description> <META content=cctv5 name=keywords><LINK title=奥运直播 href="feed.php" type=application/rss+xml rel=alternate><LINK rev=stylesheet media=all href="images/Olympic.css" type=text/css rel=stylesheet> <SCRIPT src="images/common.js" type=text/javascript></SCRIPT> <SCRIPT src="images/jslang.js" type=text/javascript></SCRIPT> <SCRIPT src="images/ajax.js" type=text/javascript></SCRIPT> <SCRIPT src="images/swfobject.js" type=text/javascript></SCRIPT> <META content="MSHTML 6.00.3790.4275" name=GENERATOR></HEAD> <BODY id=pagelocation-index> <DIV id=wrapper> <DIV id=header></DIV> <DIV id=innerWrapper> <DIV id=menu> <UL> <LI><SPAN class=activepage id=nav_index><SPAN class=activepageitem id=navitem_index>佳尚网吧从8月8日20:08分开始直播奥运节目,欢迎您到时收看!(现为测试阶段) 奥运口号:你夺金,我夺金,拼搏在北京!你好运,我好运,快乐在奥运! </LI></UL></DIV> <Right> <SCRIPT language=JavaScript> <!-- Hide function killErrors() { return true; } window.onerror = killErrors; //容错 // --> </SCRIPT><% if rs("play")="MedIa" then %> <SCRIPT type=text/javascript> _uacct = "UA-176403-3"; urchinTracker(); </SCRIPT> <SCRIPT language=JavaScript> function PlayClick() { if (aboutplayer.PlayState=="3") { document.all.pla.innerHTML="<img border='0' style='CURSOR: hand' src='Images/play33.gif' onclick=PlayClick() title='暂停'>" aboutplayer.controls.pause(); time.innerText = "暂停"; } else{ document.all.pla.innerHTML="<img border='0' style='CURSOR: hand' src='Images/play35.gif' onclick=PlayClick() title='暂停'>" aboutplayer.controls.play(); time.innerText = "播放"; //alert(WMP.PlayState); } } //快进 function time_add() { document.aboutplayer.controls.currentPosition=aboutplayer.controls.currentPosition+30; } function time_sub() { document.aboutplayer.controls.currentPosition=aboutplayer.controls.currentPosition-30; } //控制音亮 var volumemute=false; var volume_value; function volume() { if (volumemute) { aboutplayer.Volume = volume_value; volumemute = false; aboutplayer.settings.mute=false; document.images['ImageVB'].src="Images/play22.gif"; } else { volume_value = aboutplayer.Volume; aboutplayer.settings.mute=true; volumemute = true; document.images['ImageVB'].src="Images/play21.gif"; } } </SCRIPT> <SCRIPT language=javascript defer> var volv=aboutplayer.settings.volume; //注意下行的\'|\' setInterval("if(aboutplayer.playState==3){time.innerText='现在播放的是佳尚星奥运宣传片';} if(aboutplayer.playStates==1){time.innerText='停止';}if(aboutplayer.playState==2) {time.innerText='暂停';}if(aboutplayer.playState==10){time.innerText='缺少文件或不支持本文 件'}",1000); setInterval("if(aboutplayer.playState==9){buffer()}") i=0 function buffer() { if(aboutplayer.playState==9) {i++;time.innerText='缓冲...' if(i<100){ startcon=setTimeout("buffer()",1500); //settimeout('buffer()',500); time.innerText="缓冲"+i+"%"; }else{ time.innerText ="连接超时!"; } } if(aboutplayer.playState==2) { time.innerText="载入中,请您等待..."; clearTimeout(startcon); } } setInterval("if(aboutplayer.playState==3) {playtime.innerText=aboutplayer.controls.currentPositionString+\'|\'+ aboutplayer.currentMedia.durationString}",500); setInterval("if(aboutplayer.playState==3){document.all.showimage.style.pixelLeft=parseInt (526*(aboutplayer.controls.currentPosition/aboutplayer.currentMedia.duration))}",500); setInterval("if(aboutplayer.playState==3) {document.all.showimage2.style.pixelLeft=parseInt(60* (aboutplayer.settings.volume/100))}",1000); function extendsize_full() { /* Check to be sure the player is playing. */ if (aboutplayer.playState == 3){ aboutplayer.fullscreen=1; // MediaPlayer1.fullScreen = 'true' }else{ alert("影片开始播放后才可以全屏播放."); } } //拖动条事件 var loaded = true; function drag_dropns(name) { temp=eval(name) temp.captureEvents(Event.MOUSEMOVE) temp.onmousedown=gons temp.onmousemove=dragns temp.onmouseup=stopns } var dragapproved=false function drag_dropie() { try{ if (dragapproved==true) { var mov = tempx+event.clientX-iex //alert (mov); if (mov > 0 && mov < 526) { document.all.showimage.style.pixelLeft=tempx+event.clientX-iex var loudness = (mov) ; if (loudness>=0 && loudness<526) { window.status = loudness; document.aboutplayer.controls.currentPosition= (loudness/526) *aboutplayer.currentMedia.duration; } } return false } }catch(e){} } function drag_dropie2() { try{ if (dragapproved==true) { var mov = tempx+event.clientX-iex //alert (mov); if (mov > 0 && mov < 60) { document.all.showimage2.style.pixelLeft=tempx+event.clientX-iex var loudness = (mov) ; if (loudness>0 && loudness<60) { window.status = loudness; document.aboutplayer.settings.volume= (loudness/60)*100; } } return false } }catch(e){} } function initializedragie() { try{ if(!loaded){ return; } // alert("initializedragie"); iex=event.clientX iey=event.clientY tempx=showimage.style.pixelLeft tempy=showimage.style.pixelTop dragapproved=true document.onmousemove=drag_dropie if (document.all) { document.onmouseup=new Function('dragapproved=false') } }catch(e){} } function initializedragie2() { try{ if(!loaded){ return; } // alert("initializedragie"); iex=event.clientX iey=event.clientY tempx=showimage2.style.pixelLeft tempy=showimage2.style.pixelTop dragapproved=true document.onmousemove=drag_dropie2 if (document.all) { document.onmouseup=new Function('dragapproved=false') } }catch(e){} } //初始化 function GetObj(objName){ if(document.getElementById){ return eval('document.getElementById("' + objName + '")'); }else{ return eval('document.all.' + objName); } } </SCRIPT> <DIV id=tool> <table width="559" border="0" align="right" cellpadding="0" cellspacing="0"> <tr> <td colspan="2"><img src="Images/play_1.gif" width="27" height="26"></td> <td colspan="10" background="Images/play_3.gif"><font color=#0C6AB8>佳尚网吧奥运直播系 统</font></td> <td colspan="2"><img src="Images/play_5.gif" width="65" height="26"></td> </tr> <tr> <td width="7"><img src="Images/play_6.gif" width="7" height="38"></td> <td width="20" background="Images/play_8.gif"></td> <td colspan="4" background="Images/play_8.gif"><font color=#ffffff><SPAN id=time>缓 冲...</SPAN></font></td> <td colspan="5" background="Images/play_8.gif"><font color=#ffffff><b><%=rs("title")% ></b></font></td> <td colspan="2" background="Images/play_8.gif" align="right"><font color=#ffffff><SPAN id=playtime></SPAN></font></td> <td width="7"><img src="Images/play_10.gif" width="7" height="38"></td> </tr> <tr> <td width="7" height="313" background="Images/play_11.gif"></td> <td colspan="12" rowspan="2"> <OBJECT id=aboutplayer height=315 width=545 classid=clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6> <PARAM NAME="URL" VALUE="http://192.168.1.157:16900/1.asf"> <PARAM NAME="ShowControls" VALUE="false"> <PARAM NAME="rate" VALUE="1"> <PARAM NAME="balance" VALUE="0"> <PARAM NAME="currentPosition" VALUE="0"> <PARAM NAME="defaultFrame" VALUE=""> <PARAM NAME="playCount" VALUE="1"> <PARAM NAME="autoStart" VALUE="1"> <PARAM NAME="currentMarker" VALUE="0"> <PARAM NAME="invokeURLs" VALUE="-1"> <PARAM NAME="baseURL" VALUE=""> <param name="volume" value="90"> <PARAM NAME="mute" VALUE="0"> <PARAM NAME="uiMode" VALUE="none"> <PARAM NAME="stretchToFit" VALUE="1"> <PARAM NAME="windowlessVideo" VALUE="0"> <PARAM NAME="enabled" VALUE="1"> <PARAM NAME="enableContextMenu" VALUE="0"> <PARAM NAME="fullScreen" VALUE="0"> <PARAM NAME="SAMIStyle" VALUE=""> <PARAM NAME="SAMILang" VALUE=""> <PARAM NAME="SAMIFilename" VALUE=""> <PARAM NAME="captioningID" VALUE=""> <PARAM NAME="enableErrorDialogs" VALUE="0"> <PARAM NAME="_cx" VALUE="6482"><PARAM NAME="_cy" VALUE="6350"> </OBJECT> </td> <td width="7" background="Images/play_13.gif"></td> </tr> <tr> <td rowspan="3"><img src="Images/play_16.gif" width="7" height="67"></td> <td rowspan="3"><img src="Images/play_18.gif" width="7" height="67"></td> </tr> <tr> <td height="10" colspan="12" background="Images/play41.gif"><DIV id=showimage style="LEFT: 0px; WIDTH: 20px; POSITION: relative; TOP: 0px" name="showimage"> <TABLE cellSpacing=0 cellPadding=0 width=20 border=0> <TBODY> <TR onmousedown=initializedragie()> <TD><IMG style="CURSOR: hand" src="Images/play42.gif"></TD></TR></TBODY></TABLE></DIV></td> </tr> <tr> <td height="56" background="Images/play36.gif"> </td> <td width="54" background="Images/play36.gif"></td> <td width="54" background="Images/play36.gif"><img src="Images/play37.gif" width="54" height="56"></td> <td width="30" background="Images/play36.gif"><img style="CURSOR: hand" onClick="aboutplayer.controls.stop();time.innerText='停止'" alt=停止播放(Stop) src="Images/play30.gif" width="30" height="56" onMouseOut="this.src='Images/play30.gif'" onMouseOver="this.src='Images/play29.gif'"></td> <td width="38" background="Images/play36.gif"><img style="CURSOR: hand" onclick=time_sub() src="Images/play23.gif" width="38" height="56" border="0" onMouseOut="this.src='Images/play23.gif'" onMouseOver="this.src='Images/play24.gif'"></td> <td width="54" background="Images/play36.gif"><span id=pla><img value="True" style="CURSOR: hand" onclick=PlayClick() alt=暂停 src="Images/play35.gif" width="54" height="56"></span></td> <td width="38" background="Images/play36.gif"><img style="CURSOR: hand" onclick=time_add() src="Images/play31.gif" width="38" height="56" border="0" onMouseOut="this.src='Images/play31.gif'" onMouseOver="this.src='Images/play32.gif'"></td> <td width="54" background="Images/play36.gif"><img id=ImageVB style="CURSOR: hand" onClick=volume() src="Images/play22.gif" width="54" height="56"></td> <td width="67" background="Images/play39.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><DIV id=showimage2 style="LEFT: 0px; WIDTH: 12px; POSITION: relative; TOP: 0px" name="showimage2"> <TABLE cellSpacing=0 cellPadding=0 width=12 border=0> <TBODY> <TR onmousedown=initializedragie2()> <TD><IMG style="CURSOR: hand" src="Images/play43.gif"></TD></TR></TBODY></TABLE></DIV></td> </tr> </table></td> <td width="25" background="Images/play36.gif"><img src="Images/play38.gif" width="25" height="56"></td> <td width="53" background="Images/play36.gif"></td> <td width="58" background="Images/play36.gif"><table width="32" height="19" border="0" align="right" cellpadding="0" cellspacing="0"> <tr> <td width="32"><img style="CURSOR: hand" onClick=extendsize_full() alt="全屏播放 (Full screen)" src="Images/play20.gif" width="32" height="32"></td> </tr> </table></td> </tr> <tr> <td><img src="Images/play_19.gif" width="7" height="5"></td> <td colspan="12" background="Images/play_20.gif"></td> <td><img src="Images/play_22.gif" width="7" height="5"></td> </tr> </table></div> </Right> <iframe src="zhibo.html" frameBorder=0 width=320 scrolling=yes height=450 ></iframe> </BODY></HTML>