.nt1 {
FONT-SIZE:14px; COLOR: #333333; LINE-HEIGHT: 20px; font-weight: bold;
}
.nt2 {
FONT-SIZE:12px; COLOR: #999999; LINE-HEIGHT: 20px;
}
.nt3 {
FONT-SIZE:12px; color:#0066CC; LINE-HEIGHT: 20px;
}
.nt4 {
FONT-SIZE:12px; COLOR: #333333; LINE-HEIGHT: 20px;
}
.top{
width:645px;
clear:both;
}
.input{
FonT-SIZE:12px; color:#333333; LINE-HEIGHT: 20px;
border: 1px solid #5EA517;
width:150px;
}
上面加到common.css里
<script type="text/javascript">
function GetBrowserType()
{
if (window.navigator.userAgent.indexOf("MSIE")>=1)
{
return 1;
}
else
{
if (window.navigator.userAgent.indexOf("Firefox")>=1)
{
return 2;
}
else
{
return 3;
}
}
}
//创建embed标签
function create_embed()
{
var container=document.getElementById("radio");
var str="<embed type=\"application/x-mplayer2\" pluginspage=\"http://www.microsoft.com/windows/mediaPlayer/\" id=\"player\" src=\"mms://pub.qmoon.net/911pop\" name=\"player\" width=\"0\" height=\"0\" volume=\"100\">";
container.innerHTML+=str;
}
var isplay=true;
function play()
{
if(!isplay)
{
isplay=true;
var msplayer=document.getElementById("player");
document.getElementById("imgPlay").src="images/stop.gif";
try
{
if(GetBrowserType()==1)
{
msplayer.play();
}
else
{
create_embed();
}
}
catch(e){}
}
else
{
isplay=false;
var msplayer=document.getElementById("player");
document.getElementById("imgPlay").src="images/play.gif";
try
{
if(GetBrowserType()==1)
{
msplayer.stop();
}
else
{
var trnode=document.getElementById("player");
trnode.parentNode.removeChild(trnode);
}
}
catch(e){}
}
}
var selectid;
function openwindos()
{
if(isplay){
isplay=false;
var msplayer=document.getElementById("player");
document.getElementById("imgPlay").src="images/play.gif";
try
{
if(GetBrowserType()==1)
{
msplayer.stop();
}
else
{
var trnode=document.getElementById("player");
trnode.parentNode.removeChild(trnode);
}
}
catch(e){}
}
window.open ('Default2.aspx?radioid='+selectid,'newwindow','height=322,width=364,top=300,left=300,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no')
}
</script>
上面加到header.htm里</head><body>上面
<form name="form1" method="post" action="Default.aspx?radioid=18" id="form1">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTY5MTM4MDE2Mw9kFgICAQ9kFgQCAw9kFgJmD2QWFAIBDxYCHgNzcmMFKGh0dHA6Ly93d3cuOTExcG9wLmNvbS9pbWFnZXMvaGVhZC9keS5naWZkAgMPFgIeCWlubmVyaHRtbAUX5oiR5Li654K55q2M54uCKOebtOaSrSlkAgUPFgIfAQU65Li76aKYOiZuYnNwICZuYnNwICZuYnNwPGZvbnQgc3R5bGU9ImNvbG9yOkJsYWNrOyI+PC9mb250PmQCBw8WAh8BBT7kuLvmjIHkuro6Jm5ic3A8Zm9udCBzdHlsZT0iY29sb3I6QmxhY2s7Ij7pnaLljIUs6JGj5oC/PC9mb250PmQCCQ8WAh8BBUXml7bpl7Q6Jm5ic3AgJm5ic3AgJm5ic3A8Zm9udCBzdHlsZT0iY29sb3I6QmxhY2s7Ij4yMDowNS0yMTowMDwvZm9udD5kAgsPFgIfAAUuaHR0cDovL3d3dy45MTFwb3AuY29tL2ltYWdlcy9wcm9waWNzL20wNDlzLmdpZmQCDQ8WAh8BBRfljobljoblnKjogLPovrko5b2V5pKtKWQCDw8WAh8BBUDkuLvpopg6Jm5ic3AgJm5ic3AgJm5ic3A8Zm9udCBzdHlsZT0iY29sb3I6QmxhY2s7Ij7pl67mg4U8L2ZvbnQ+ZAIRDxYCHwEFPeS4u+aMgeS6ujombmJzcDxmb250IHN0eWxlPSJjb2xvcjpCbGFjazsiPumdkuaqrOWHuuWTgTwvZm9udD5kAhMPFgIfAQVF5pe26Ze0OiZuYnNwICZuYnNwICZuYnNwPGZvbnQgc3R5bGU9ImNvbG9yOkJsYWNrOyI+MjE6MDAtMjE6MDU8L2ZvbnQ+ZAIFDxYCHghJbnRlcnZhbAKvyCxkZFhpcnSIcpXUTNnkURwE/H4deohx" />
</div>
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
<script src="/WebResource.axd?d=UKSiOMBaU3rC5eWiiABNrw2&t=633405320389466052" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=iJ__9GQsPC7mqGpla8QP5-vQaGQuNhbjZVrlkdOw9H5QEdFfW6KCT1MtJaCYT8-J3hP0baAhwSBC-gZ6w_qsRx-LB1La1eH4IYDuiv6IQ_Y1&t=633405322533512529" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax 客户端框架未能加载。');
//]]>
</script>
<script src="/ScriptResource.axd?d=iJ__9GQsPC7mqGpla8QP5-vQaGQuNhbjZVrlkdOw9H5QEdFfW6KCT1MtJaCYT8-Jldkf1TYLUwbem7_f6uOmDVhPea_EhkqpRTwLccLvJbXqi3OZxMLNea_q6RvyPYHV0&t=633405322533512529" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=iJ__9GQsPC7mqGpla8QP5-vQaGQuNhbjZVrlkdOw9H5QEdFfW6KCT1MtJaCYT8-Je06Ss5jvEaJauo6FhU3dwM3FJ1gAwszphAAiO89E2gA1&t=633405322533512529" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ScriptManager1', document.getElementById('form1'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tUpdatePanel1'], [], [], 90);
//]]>
</script>
<div class="top"><img src="images/logo.gif" width="645" height="56" /></div>
<div id="UpdatePanel1">
<div class="top">
<div style="padding:15px 61px">
<img id="imgPlay" style="float:left;cursor:pointer;" src="images/stop.gif" onclick="play();" width="176" height="142" />
<div style="float:left;background-image:url(images/bg.gif); width:347px; height:142px;">
<div style="padding: 20px 10px 20px 40px">
<div style="text-align:right; line-height:22px;color:#0066CC"><a href="#" onclick="openwindos()">新窗口播放(与主持人互动</span>)</a></div>
<div style="">
<img src="http://www.911pop.com/images/head/dy.gif" id="imgnowcompere" style="float:left; padding-right:10px;" width="80" height="80" />
<div style="float:left;">
<div id="divnowprogram" class="nt1">我为点歌狂(直播)</div>
<div id="divnowmotif" class="nt2">主题:     <font style="color:Black;"></font></div>
<div id="divnowcompere" class="nt2">主持人: <font style="color:Black;">面包,董怿</font></div>
<div id="divnowtime" class="nt2">时间:     <font style="color:Black;">20:05-21:00</font></div>
</div>
<div style="clear:both;">
</div>
</div>
</div>
</div>
<div style="clear:both;"></div>
</div>
<div style="padding:15px 61px">
<img style="float:left; padding-top:11px;" src="images/pic.gif" width="176" height="58" />
<div style="float:left; width:347px; height:80px;">
<div style="padding: 0px 10px 20px 40px">
<div style="">
<img src="http://www.911pop.com/images/propics/m049s.gif" id="imgnextcompere" style="float:left; padding-right:10px;" width="80" height="80" />
<div style="float:left;">
<div id="divnextprogram" class="nt1">历历在耳边(录播)</div>
<div id="divnextmotif" class="nt2">主题:     <font style="color:Black;">问情</font></div>
<div id="divnextcompere" class="nt2">主持人: <font style="color:Black;">青檬出品</font></div>
<div id="divnexttime" class="nt2">时间:     <font style="color:Black;">21:00-21:05</font></div>
</div>
<div style="clear:both;">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="radio">
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/windows/mediaPlayer/" id="player" src="mms://pub.qmoon.net/911pop"
name="player" width="0" height="0" volume="100"> </embed></div>
<span id="TimerProgram" style="visibility:hidden;display:none;"></span>
<script type="text/javascript">
//<![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
$create(Sys.UI._Timer, {"enabled":true,"interval":730159,"uniqueID":"TimerProgram"}, null, null, $get("TimerProgram"));
});
//]]>
</script>
</form>
<script>
selectid=18;
</script>
上面加到你想加的页面
记得备份下文件.你试下 |