页头美化Dx1.5
将下面这段代码增加到后台—全局—优化设置—其他头部信息
或者:后台—扩展—站点广告—全局 页头通栏广告
<script type="text/javascript">
function addFav(){ // 加入收藏夹
if (document.all) {
window.external.addFavorite(window.location.href, document.title);
} else if (window.sidebar) {
window.sidebar.addPanel(document.title, window.location.href, "");
}
}
</script>
<script type="text/javascript">
function setHomepage(){ // 设为首页
if (document.all)
{
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage(' http://www.fjgaoxiao.com');
}
else if (window.sidebar)
{
if(window.netscape)
{
try
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
}
catch (e)
{
alert("该操作被浏览器拒绝,如果想启用该功能,请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true");
}
}
var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
prefs.setCharPref('browser.startup.homepage',' http://www.fjgaoxiao.com');
}
}
</script>
<CENTER><TABLE border=0 cellSpacing=0 cellPadding=0 width=970 align=center>
<TBODY>
<TR>
<TD width=5><IMG src="http://www.fjgaoxiao.com/pic/gx01.jpg" width=5 height=27></TD>
<TD background=http://www.feiba.net/tu/fb_02.jpg width=771>
<TABLE style="FONT-SIZE: 12px" border=0 cellSpacing=0 cellPadding=0 width=960>
<TBODY>
<TR>
<TD width=555>今天是<SCRIPT language=JavaScript> <!--
var today=new Date;
var week=new Array(7);
week="天";
week="一";
week="二";
week="三";
week="四";
week="五";
week="六";
document.write( today.getFullYear() + "年" + (today.getMonth() + 1) + "月" + today.getDate() + "日" +" "+ "星期" + week);
// --></SCRIPT>
<script language="JavaScript">
var mess1="";
document.write("<font color='#2E9AFE'>")
day = new Date( )
hr = day.getHours( )
if (( hr >= 0 ) && (hr <= 4 ))
mess1=" 眼睛疲倦了么?熬夜有害健康,盟友们Good night!"
if (( hr >= 4 ) && (hr < 7))
mess1=" 微凉的气息,您是刚醒还是没睡?
"
if (( hr >= 7 ) && (hr < 12))
mess1=" 太阳当空照、花儿对我笑,小鸟说早早早…你记得下一句么?"
if (( hr >= 12) && (hr <= 13))
mess1=" 吃饱了么?昏昏欲睡了吧?那、就小眯会儿吧。
"
if (( hr >= 13) && (hr <= 17))
mess1=" 你顶或者不顶,帖就在那里,只增不减。#^_^笑一个~
"
if (( hr >= 17) && (hr <= 18))
mess1=" 人是铁、饭是钢,一餐不吃饿得慌。吃饭去吧,论坛需要你。"
if (( hr >= 18) && (hr <= 21))
mess1=" 娱乐时间、看看论坛有什么新闻八卦吧。记得、回帖是美德。
!"
if (( hr >= 22) && (hr <= 23))
mess1=" 滴答滴、抓住今天的小尾巴,开心的不开心的都来告诉我们吧。"
document.write(mess1)
document.write("</font>")
</script></TD>
<TD width=372>联盟官方YY频道:2333307;加盟合作:1097990799 572766036</TD>
<TD width=62><A onclick=addFav() href="javascript:void(0)"><font color=red>添加收藏</font></A></TD>
<TD width=62><A onclick=setHomepage() href="javascript:void(0)"><font color=red>设为首页</font></A></TD></TR></TBODY></TABLE></TD>
<TD width=5><IMG alt="" src="http://www.fjgaoxiao.com/pic/gx03.jpg" width=5 height=27></TD></TR></TBODY></TABLE></CENTER>
页:
[1]