帮助传播Ubuntu,在你的Blog贴上Ubuntu发布倒计时脚本
粘贴下面的代码到文章即可:
|
<script type="text/javascript">
var
today
=
new
Date().getDate();
var
release
=
18
;
var
days
=
release
-
today;
if
(days
<
0
) days
=
0
;
var
base
=
'
http://www.ubuntu.com/files/countdown/dist/
'
; document.write(
'
<div style="width:160px;font-family:sans-serif" align="center"><a href="http://www.ubuntu.com/testing/gutsybeta"><img id="countdownimage" src="'+base+'710countdown_'+days+'days.png" width="160" height="130" border="0" alt="Ubuntu 7.10 - 即将登陆"></a><br/><a href="http://www.ubuntu.com/getubuntu/countdown" style="font-size:7pt;color:#DBBA75;text-decoration: none">添加这个倒计时到你的网站</a></div>
'
);
</script>
<noscript
><
img id
=
"
countdownimage
"
src
=
"
http://www.ubuntu.com/files/countdown/dist/710countdown_default.png
"
width
=
"
160
"
height
=
"
130
"
alt
=
"
Ubuntu 7.10 - 即将登陆
"
></
noscript>
|