想开个休闲食品店:请推荐一个好的blog 源代码? asp的?

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/29 05:21:36
1楼不明白我说什么吧B L O G ,

<script language="JavaScript">
var EFlag = 1;

function KeyDown(){
if(!(event.shiftKey||event.altKey)&&event.keyCode==13&&event.ctrlKey){
document.form1.submit();
}
}

function addcontent(str1,str2)
{
if(EFlag == 1)
{
form1.content.focus();
if ((document.selection)&&(document.selection.type== "Text"))
{
var range= document.selection.createRange();
var ch_text=range.text;
range.text= str1 + ch_text + str2;
}
else
{
document.form1.content.value=document.form1.content.value+str1+str2;
form1.content.focus();
}
}
else{insertHTML2(str1+str2);return;}
}

function addcontent2(str){
document.form1.content.value += str;
}

function fontchuli(){
if ((document.selection)&&(document.selection.type == "Text")) {
var range = document.selection.createRange();
var ch_text=range.text;
range.text = fontbegin + ch_text + fontend;
}
else {
document.form1.content.value=fontbegin+document.form1.content.value+fontend;
document.form1.content.focus();
}
}

function showsize(size){
fontbegin="[size="+size+"]";
fontend="[/size]";
fontchuli();
}

function showface(face){
fontbegin="[face="+face+"]";
fontend="[/face]";
fontchuli();
}

function showalign(align){
fontbegin="[align="+align+"]";
fontend="[/align]";
fontchuli();
}

function showcolor(color){
fontbegin="[color="+color+"]";
fontend="[/color]";
fontchuli();
}
</script>