PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

首页文字颜色自己变成了蓝色 [复制链接]

1#
我也没动什么呀,我记得就是弄了一个时间,后来我想开放会员,注册一个新的管理,再后来我预览前台,栏目上的,和内容都变成了浅蓝色,我到后台想把文字颜色改回来,可是文字的颜色就是黑色的,望请西游大神和各位论坛好友相助。地址:http://391136.cnc-w254.chinadns.net/index.aspx?language=cn
分享 转发
TOP
2#

好了,搞定了,原来是时间的JS代码影响到了文字,可是怎么会呢?代码如下,望各位好友帮我分析下,看如何修改,我还得用呀,谢谢,啦。
<SCRIPT language=JavaScript>
   var enabled = 0;   today = new Date();
   var day;   var date;
   if(today.getDay()==0)     day = "星期日"
   if(today.getDay()==1)     day = "星期一"
   if(today.getDay()==2)     day = "星期二"
   if(today.getDay()==3)     day = "星期三"
   if(today.getDay()==4)     day = "星期四"
   if(today.getDay()==5)     day = "星期五"
   if(today.getDay()==6)     day = "星期六"
   document.fgColor = " cadet";
   date1 = "<font size=2face=宋体 color=0000ff>" + (today.getYear())  + "年" + (today.getMonth() + 1 ) + "月"

+ today.getDate() + "日  " + "</font>";
   date2 = "<font size=2face=宋体 color=ff0000>" +  day + "</font>";
   document.write("<center>" + date1.fontsize(2) + date2.fontsize(2) + "</center>");
   </SCRIPT>
<p id="liveclock" span=""><font color="#ff0f00" size="5">17:47:26</font> <SCRIPT language=javascript>
function www_helpor_net()
{
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
if(minutes<=9)
minutes="0"+minutes
if(seconds<=9)
seconds="0"+seconds
myclock="<font size=3color=0000ff>"+hours+":"+minutes+":"+seconds+"</font>"
if(document.layers){document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
}else if(document.all)
liveclock.innerHTML=myclock
setTimeout("www_helpor_net()",1000)
}
www_helpor_net();
//-->
</SCRIPT></p>
<p>&nbsp;</p>
TOP
3#

谢谢啦,没问题啦。果然是,恩,//document.fgColor = " black"颜色,没有闭合是,myclock="<font size=3color=0000ff>"+hours+":"+minutes+":"+seconds+"</font>"应该在size=3后边有一个空格。
TOP
发新话题 回复该主题