Author: 冷沁如风 | Category: 电脑技巧 | Views: 3615
2010-08-13 /

BLOG系统里的编辑器里的一些小技巧及解释

Font Size: Large | Medium | Small
    [1]
    [2]
    [3]
这个意思是,列表,列出一,二,三之类。



+++++ 以下内容被设置为隐藏,请您 登录 后浏览 +++++



这个意思是,设置为隐藏,要你登录后才能察看。


这个意思是,从这里截断。如果不设置,系统会自动截断。自动截断的数据在后台设置。
引用
这里是引用的意思
引用,从哪里来的。
<html>
<head>
<title>网页特效|Linkweb.cn/Js|---计算出生时间</title>
<style type="text/css">
<!--
body { font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 4px; margin-right: 0px}
A { COLOR: black; FONT-SIZE: 13px; FONT-WEIGHT: 400; TEXT-DECORATION: none }
 A:hover { COLOR: red; FONT-SIZE: 13px; FONT-WEIGHT: 400; TEXT-DECORATION: underline }
a:active { font: 9pt "宋体"; cursor: hand; color: #FF0033 }
--></style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body OnLoad="startclock()">
<br>
<br>
<center><font color=red face="隶书" size=6>计算出生时间</font></center>
<br>
<center>
<table border=0 bordercolor=blue borderlight=green style="border-collapse: collapse" cellpadding="0" cellspacing="0">
<tr><td align=center><font size=5 color=red face="Arial, Helvetica, sans-serif"><strong>下面框中为脚本显示区</strong></font></td></tr>
<tr><td align=center height=80>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var mm = prompt('请输入你出生的月份?','1-12');
var bday = prompt('请输入你出生在哪一天?','1-31');
var byear = prompt('请输入你出生的年份?','1975');
var year = new Date();
var year2 = year.getYear();
var year3 = (year < 2000) ? year2 + 1900 : year2;
thedate = new Date();
mm2 = thedate.getMonth() + 1;
dd2 = thedate.getDate();
yy2 = thedate.getYear();
if (yy2 < 100) yy2 += 1900
yourage = yy2 - byear;
if (mm2 < mm) yourage--;
if ((mm2 == mm) && (dd2 < bday)) yourage--;
TMonth = new Array(
'January','February','March',
'April','May','June','July',
'August','September','October',
'November','December'
);
CurMonth = mm - 1;
bmonth = TMonth[CurMonth];
var age2 = yourage + 1;
var timerID;
var timerRunning = false;
var today = new Date();
var startday = new Date();
var enday = new Date();
var secPerDay = 0;
var minPerDay = 0;
var hourPerDay = 0;
var secsLeft = 0;
var secsRound = 0;
var secsRemain = 0;
var minLeft = 0;
var minRound = 0;
var minRemain = 0;
var timeRemain = 0;
function stopclock() {
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function startclock() {
stopclock();
showtime();
showtime1();
}
function showtime() {
today = new Date();
enday = new Date(""+bmonth+", "+bday+" "+year3+" 00:00");
enday.setYear(""+year3+"");
secsPerDay = 1000 ;
minPerDay = 60 * 1000 ;
hoursPerDay = 60 * 60 * 1000;
PerDay = 24 * 60 * 60 * 1000;
secsLeft = (enday.getTime() - today.getTime()) / minPerDay;
secsRound = Math.round(secsLeft);
secsRemain = secsLeft - secsRound;
secsRemain = (secsRemain < 0) ? secsRemain = 60 - ((secsRound - secsLeft) * 60) : secsRemain = (secsLeft - secsRound) * 60;
secsRemain = Math.round(secsRemain);
minLeft = ((enday.getTime() - today.getTime()) / hoursPerDay);
minRound = Math.round(minLeft);
minRemain = minLeft - minRound;
minRemain = (minRemain < 0) ? minRemain = 60 - ((minRound - minLeft) * 60) : minRemain = ((minLeft - minRound) * 60);
minRemain = Math.round(minRemain - 0.495);
hoursLeft = ((enday.getTime() - today.getTime()) / PerDay);
hoursRound = Math.round(hoursLeft);
hoursRemain = hoursLeft - hoursRound;
hoursRemain = (hoursRemain < 0) ? hoursRemain = 24 - ((hoursRound - hoursLeft) * 24) : hoursRemain = ((hoursLeft - hoursRound) * 24);
hoursRemain = Math.round(hoursRemain - 0.5);
daysLeft = ((enday.getTime() - today.getTime()) / PerDay);
daysLeft = (daysLeft - 0.5);
daysRound = Math.round(daysLeft);
daysRemain = daysRound;
if (daysRemain == 1) day_rem = " day, "
else day_rem = " 天, "
if (hoursRemain == 1) hour_rem = " hour, "
else hour_rem = " 小时, "
if (minRemain == 1) min_rem = " minute, "
else min_rem = " 分, "
if (secsRemain == 1) sec_rem = " second"
else sec_rem = " 秒"
timeRemain = daysRemain + day_rem + hoursRemain + hour_rem + minRemain + min_rem + secsRemain + sec_rem;
document.down.face.value = timeRemain;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
if (daysRemain < 0) year3 = year3 + 1
}
function showtime1() {
startday = new Date(""+bmonth+" "+bday+", "+byear+" 00:00 EDT");
startday.setYear(""+byear+"");
today = new Date();
secsPerDay = 1000 ;
minPerDay = 60 * 1000 ;
hoursPerDay = 60 * 60 * 1000;
PerDay = 24 * 60 * 60 * 1000;
secsLeft = (today.getTime() - startday.getTime()) / minPerDay;
secsRound = Math.round(secsLeft);
secsRemain = secsLeft - secsRound;
secsRemain = (secsRemain < 0) ? secsRemain = 60 - ((secsRound - secsLeft) * 60) : secsRemain = (secsLeft - secsRound) * 60;
secsRemain = Math.round(secsRemain);
minLeft = ((today.getTime() - startday.getTime()) / hoursPerDay);
minRound = Math.round(minLeft);
minRemain = minLeft - minRound;
minRemain = (minRemain < 0) ? minRemain = 60 - ((minRound - minLeft) * 60) : minRemain = ((minLeft - minRound) * 60);
minRemain = Math.round(minRemain - 0.495);
hoursLeft = ((today.getTime() - startday.getTime()) / PerDay);
hoursRound = Math.round(hoursLeft);
hoursRemain = hoursLeft - hoursRound;
hoursRemain = (hoursRemain < 0) ? hoursRemain = 24 - ((hoursRound - hoursLeft) * 24) : hoursRemain = ((hoursLeft - hoursRound) * 24);
hoursRemain = Math.round(hoursRemain - 0.5);
daysLeft = ((today.getTime() - startday.getTime()) / PerDay);
daysLeft = (daysLeft - 0.5);
daysRound = Math.round(daysLeft);
daysRemain = daysRound;
if (daysRemain == 1) day_rem = " day, "
else day_rem = " 天, "
if (hoursRemain == 1) hour_rem = " hour, "
else hour_rem = " 小时, "
if (minRemain == 1) min_rem = " minute, "
else min_rem = " 分, "
if (secsRemain == 1) sec_rem = " second"
else sec_rem = " 秒"
timeRemain = daysRemain + day_rem + hoursRemain + hour_rem + minRemain + min_rem + secsRemain + sec_rem;
document.up.face.value = timeRemain;
timerID = setTimeout("showtime1()",1000);
timerRunning = true;
}
// End -->
</script>
<form name="down" onSubmit="0">
<script Language="JavaScript">
document.write("<b>你出生于"+bmonth+" "+bday+", "+byear+". ("+mm+"/"+bday+"/"+byear+")</b>");
document.write("<br><br>你已经 "+yourage+" 岁了,离你生日还有.");
</script>
<br>
<input type="text" name="face" size="47" value="A browser supporting JavaScript 1.1+ is needed.">
</form>
<p>
<br>
<form name="up" onSubmit="1">
你已经生活了...<br>
<input type="text" name="face" size="47" value="A browser supporting JavaScript 1.1+ is needed.">
</form>
</td></tr></table></center>
<br>
<br>
<center>

<SCRIPT LANGUAGE="JavaScript">

<!-- hide
function goHist(a)
{
 history.go(a);
}
//-->
</script>
</center>
<br>
<center>
&nbsp;<br>
<br>
</body>
</html>
试一下什么意思,应该是代码调试。 真的是代码调试。

 这个是插入flash的。就不介绍啦。flash不能正常显示,有点问题哦~!

 插入MP3歌曲的啦。

Big
 插入图片的啦。
[email]176519485@qq.com[/email] 插入邮件的啦。也不正常显示。奇怪。

http://www.design1314.cn 插入链接的啦。

 居中显示


   不知道什么意思   切换全角,半角的意思。有知道有什么用。

不知道有什么意思试下什么意思。写在下面的。什么意思。字变小些了?

不知道,还是不知道 这个也不懂是什么意思 写在上面的啦,也变小了。

试一下是咐意思 不试不知道,不是吧。搞个删除线!

这个是下划线,应该没错 嘿嘿,这个我知道的啦~!

这个是斜体的意思 当然没错啦!

粗体的意思 当然OK啦!
[Last Modified By 冷沁如风, at 2010-08-13 23:55:22]
Comment Feed Feed: http://www.design1314.cn/feed.asp?q=comment&id=563
Trackback Url Trackback: http://www.design1314.cn/trackback.asp?id=563&key=233defre2

引用 Sajid*
[ 2012-05-27 06:50:12 ]
What a pleasure to find someone who identifies the iusess so clearly
1

Post Comment
用户名:   密码:  *游客发言不必输入密码. 现在注册? 验证码 * 请输入验证码
Smilies
[smile] [confused] [cool] [lh] [eek] [angry] [wink] [sweat] [lol] [stun] [razz] [redface] [sad] [yes] [no] [heart] [star] [bad smile] [cry] [greedy] [haha] [money] [the_iron_man] [xixi] [hen] [ku] [leng] [dao] [ye] [yun] [god] [han] [xin] [lei] [he]
Enable UBB Codes Auto Convert URL Show Smilies Auto save Hidden Comment

+ 请遵守国家法律,请对自己的言论及行为负责。在注册用户前请详细阅读 用户注册协议
+ 游客发言不需要密码,但为了保护您的发言权,建议您 注册用户
+ 百度知道让您学到更多有用的知识,