关于我
by solo L2008-02-03T22:30:00Z
Solo.org只是个个人站点,她没有脚本的支持,也没有数据库的支持,只有些静态的页面。这些页面由一些XSLT脚本构建而成。如下是她的全景:
注:她完全是照着Comet Daily的样子打扮的。如果这伤害了任何人,请尽快告知我。
文章发布的一些约定:
图片尺寸,最大宽度为571px,高度不限,颜色要和站点保持一致。
代码,有转换器的按照转换的样子,例如:
Java
public static String segment(String content, String type)
throws AlgorithmException {
char[] chars = content.toCharArray();
StringBuffer sb = new StringBuffer();
IAlgorithm algorithm = factory.createAlgorithm(type);
IWord word = algorithm.next(chars);
while (word != null) {
sb.append(word.getValue());
sb.append(Config.SEPARATOR);
word = algorithm.next(chars);
}
return sb.toString();
}
JavaScript
Request["prototype"].send = function(content){ if(typeof content == "undefined"){ // for firefox return this.request.send(null); } return this.request.send(content); }
没有转换器的按照如下的样子:
public static String segment(String content, String type)
throws AlgorithmException {
char[] chars = content.toCharArray();
StringBuffer sb = new StringBuffer();
IAlgorithm algorithm = factory.createAlgorithm(type);
IWord word = algorithm.next(chars);
while (word != null) {
sb.append(word.getValue());
sb.append(Config.SEPARATOR);
word = algorithm.next(chars);
}
return sb.toString();
}

