LBS 竖排文字
演示效果:http://ifisker.com/blog/post/0807/shuwen.html
下载shuwen.js放到blog目录
http://ifisker.com/files/shuwen.js
1,修改 class\ubbcode.asp
59行
if(bTextBlock=="1"){
str=this.formatQuote(str,baseURL);
str=this.formatCode(str);
}
修改为
[code]
if(bTextBlock=="1"){
str=this.formatQuote(str,baseURL);
str=this.formatCode(str);
str=str.replace(/\[shuwen\]/ig,'<div class="shuwen">');
str=str.replace(/\[\/shuwen\]/ig,'</div>');
}
[/code]
2,修改 global.asp
<script type="text/javascript" language="javascript" src="common.js"></script>
下面添加一行
<script type="text/javascript" language="javascript" src="shuwen.js"></script>
3,修改样式 ...\style.css
添加
.shuwen {
margin: 5px;
border: 1px solid #027ac6;
background-color: #edf5fa;
width:700px;
}
.shuwen-title {
padding: 5px;
font-weight: bold;
border-bottom: 1px dashed #027ac6;
text-align:right;
}
.shuwen-content {
word-break:break-all;
padding: 5px;
}
margin: 5px;
border: 1px solid #027ac6;
background-color: #edf5fa;
width:700px;
}
.shuwen-title {
padding: 5px;
font-weight: bold;
border-bottom: 1px dashed #027ac6;
text-align:right;
}
.shuwen-content {
word-break:break-all;
padding: 5px;
}
使用的时候直接在要竖排的文字前后加上“[ shuwen ]”“[ /shuwen ]”(不含空格)
效果
[shuwen]
词目:正龙拍虎
释义:
① 意指某人或某集团为利益驱动做假,被揭穿后还抵死不认;
② 社会公信力缺失;
典故:
① 《史记·周正龙列传》:“周氏正龙者,秦地金州镇坪人也。正龙置彼画于深山密林中,遮淹修饰,远近数数摄之,得虎照数十副。照中虎卧于林下,双目炯炯,俨然真大虫也。归而献 之县官,官喜,以呈上官,州府台阁皆不疑,布之互联网,传告天下,厚赏正龙。网民见之,咸以为假,竟相怒骂之,有好事者遍搜天下旧年画,果得虎照原版画, 多不可数。正龙之谋遂败焉,天下皆以为耻。”
② 《正龙列传之龙克赝虎》第一篇:“呜呼!彼以其伪虎诈利为可恒也哉,是囚灾物也!只增龙克赝虎笑。”
③ 《诌氏全书·正龙传》:“古有武松打虎,今有正龙拍虎,更有关克挺虎”
④《天涯史记之周正龙大传》:“太史公曰:陕府本民情纯朴,素为文重德厚之地,奈其民周正龙者,心术多邪,妄以一己之智,愚天下士人,自是愚不可及,然天下愚者,又何止周正龙耶?”
例句:
① 汉芯造假者正龙拍虎,最终咎由自取。[关键词:汉芯]
② 中石油上市,各媒体正龙拍虎,使新股民站在48元之巅。[关键词:中石油 第一套]
③ 中国彩票正龙拍虎,再次告诉国民双色球再创彩市中奖纪录 一名彩民独中1。02亿元,使彩民趋之若骛。[关键词:双色球 1.02亿]
[/shuwen]
评论Feed: http://ifisker.com/blog/feed.asp?q=comment&id=1118
引用链接: loading...
这篇日志没有评论.

