顯示具有 html code 標籤的文章。 顯示所有文章
顯示具有 html code 標籤的文章。 顯示所有文章

2008年12月2日 星期二

社群版倒數計時迎接 11.1

詳情請參考 http://lists.opensuse.org/opensuse/2008-12/msg00009.html
David C. Rankin 版本:使用新的藍色的底圖
無中文版本,但在上面連結中可找到php程式碼,可自行修改字樣成中文
(如果您有伺服器的話)
小圖:

網頁程式碼:
<a href="http://en.opensuse.org/OpenSUSE_11.1"><img src="http://www.3111skyline.com/download/openSUSE_11.1/images/countdown-small.php"></a>

中圖:

網頁程式碼:
<a href="http://en.opensuse.org/OpenSUSE_11.1"><img src="http://www.3111skyline.com/download/openSUSE_11.1/images/countdown.php"></a>

Sylvester Lykkehus 版本:可自由設定顏色、大小和語系,使用 openSUSE 官方的底圖(medium)
在上面連結中也可以找到php程式碼,有伺服器的人也可以參考看
可設定的參數有
red green blue (0~255)
alpha (0~127)
gamma (0.1~2.0)
size (最大 256x256)
lang (繁體中文請設 tw)
例如:

網頁程式碼:
<a href="http://en.opensuse.org/OpenSUSE_11.1"><img src="http://solidonline.dk/11.1.php?red=127&green=0&blue=0&alpha=30&gamma=0.5&size=160x160"></a>


網頁程式碼:
<a href="http://en.opensuse.org/OpenSUSE_11.1"><img src="http://solidonline.dk/11.1.php?red=127&green=127&blue=0&alpha=30&gamma=0.5&lang=jp"></a>


網頁程式碼:
<a href="http://en.opensuse.org/OpenSUSE_11.1"><img src="http://solidonline.dk/11.1.php?red=255&green=255&blue=255&alpha=70&gamma=0.5&size=200x200&lang=tw"></a>

大家一起迎接 openSUSE 11.1 吧!
openSUSE 官方版本一起擺上來湊熱鬧:


網頁程式碼參考 openSUSE 11.1 倒數計時器(繁體中文版)

無關此主題的筆記:
張貼程式碼時
&alpha 會變成 α
&gamma 會變成 γ
&lang 則變成 〈
要將 & 改成 &amp;

2008年11月23日 星期日

openSUSE 11.1 倒數計時器(繁體中文版)

我想是因為外國人都搞不清楚我們複雜的語系
所以明明已經將翻譯寄給 counter 的作者
但是網頁上自動偵測語系還是不行
我本來想自己畫一個了
還好 google 到這個網頁
http://vavai.net/2008/11/07/opensuse-111-count-down-localization/
所以我們可以強迫使用繁體中文來顯示
小張圖的代碼

<a href="http://en.opensuse.org/OpenSUSE_11.1"><img src="http://counter.opensuse.org/11.1/small.tw"/></a>

中圖的代碼

<a href="http://en.opensuse.org/OpenSUSE_11.1"><img src="http://counter.opensuse.org/11.1/medium.tw"/></a>

大張圖的代碼

<a href="http://en.opensuse.org/OpenSUSE_11.1"><img src="http://counter.opensuse.org/11.1/large.tw"/></a>

拜託英文較好的同學,可不可以幫幫忙常常和外國人多溝通一下啊!
(抱怨一下:版面設計實在可以加強些)

2007年9月27日 星期四

練習貼一段程式碼

這是 1-Click Install 用的

<metapackage xmlns:os="http://opensuse.org/Standards/One_Click_Install" xmlns="http://opensuse.org/Standards/One_Click_Install">
<group>
<repositories>
<repository recommended="true">
<name>home:swyear</name>
<summary>swyear's Home Project</summary>
<description>swyear's home, maintaining some Chinese software.
these are tests, use on your risk!

這裡是 swyear 的家,幫忙打包一些中文套件。
我盡力做好這份工作,但是可能還是做得不夠好。</description>
<url>http://download.opensuse.org/repositories/home:/swyear/openSUSE_10.3</url>
</repository>
<repository recommended="true">
<name>openSUSE:10.3</name>
<summary>openSUSE 10.3 distribution</summary>
<description>The openSUSE 10.3 distribution.</description>
<url>http://download.opensuse.org/repositories/openSUSE:/10.3/standard</url>
</repository>
</repositories>
<software>
<item>
<name>gcin</name>
<summary>gcin : Chinese input method server</summary>
<description>gcin is a Chinese input method server for traditional Chinese. It features
a better GTK user interface.</description>
</item>
</software>
</group>
</metapackage>

因為常常貼一些 html
發現在 blogspot 裡好像貼不出來
參考了
http://blog.sina.com.tw/tomato/article.php?pbgid=13588&entryid=6594
先用文字編輯器將
< 用 &lt; 取代
> 用 &gt; 取代
然後將程式碼貼到 <code> 和 </code> 間
您如果要打出 &lt;
還得將 <code> 和 </code> 包住 &lt; 的一部分,像是
<code>&</code>lt;
打字好像在玩繞口令
一般人都是這樣做的嗎?
感覺以前在 lifetype 和 wordpress 都不用如此麻煩
blogspot 的 『修改html』和『撰寫』感覺分不清楚,有點爛