点击取色
作者:cmscn 日期:2006-11-29
方法1:
==================================================
1、UBB JS调用文件style/ubb_help.js,请用UE或记事本打开。
在最后添加下列行
function jk_tColor()
{
var arr = showModalDialog("htmledit/selcolor.html", "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0");
if (arr != null) { document.write_frm.tcolor.value = arr.substring(1,7); }
}
-------------------------------------------------------
2)调用的地方
<a title="主题字体颜色" language="javascript" onclick="jk_tColor();"><img src="htmledit/images/fgcolor.gif" width=23 height=22 align=absmiddle></a>
===================================================
方法2:
在需要调用的那页<%前面加上:
<script language=javascript>
<!--
function forum_slect_color()
{
var c=window.showModalDialog("htmledit/selcolor.html","s","dialogWidth=300px;dialogHeight=270px;status=0");
var d=c;
if (c && c!="")
{
window.document.all.item("bordercolor").bgColor=c;
if (d.length==7) { d=d.substr(1,d.length); }
window.document.all.tcolor.value=d;
}
}
-->
</script>
需要调用的地方加
<input type=text name=tcolor value='' size=10 maxlength=7> <a href='javascript:;' onClick="javascript:forum_slect_color();"><img border=0 src="htmledit/images/fgcolor.gif" width=23 height=22 align=absmiddle alt='点击选取主题字体颜色'></a> 请正确填写<font class=red_3>6</font>位颜色代码。
==================================================
1、UBB JS调用文件style/ubb_help.js,请用UE或记事本打开。
在最后添加下列行
function jk_tColor()
{
var arr = showModalDialog("htmledit/selcolor.html", "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0");
if (arr != null) { document.write_frm.tcolor.value = arr.substring(1,7); }
}
-------------------------------------------------------
2)调用的地方
<a title="主题字体颜色" language="javascript" onclick="jk_tColor();"><img src="htmledit/images/fgcolor.gif" width=23 height=22 align=absmiddle></a>
===================================================
方法2:
在需要调用的那页<%前面加上:
<script language=javascript>
<!--
function forum_slect_color()
{
var c=window.showModalDialog("htmledit/selcolor.html","s","dialogWidth=300px;dialogHeight=270px;status=0");
var d=c;
if (c && c!="")
{
window.document.all.item("bordercolor").bgColor=c;
if (d.length==7) { d=d.substr(1,d.length); }
window.document.all.tcolor.value=d;
}
}
-->
</script>
需要调用的地方加
<input type=text name=tcolor value='' size=10 maxlength=7> <a href='javascript:;' onClick="javascript:forum_slect_color();"><img border=0 src="htmledit/images/fgcolor.gif" width=23 height=22 align=absmiddle alt='点击选取主题字体颜色'></a> 请正确填写<font class=red_3>6</font>位颜色代码。
网页左对齐
作者:cmscn 日期:2006-11-16
调用
作者:cmscn 日期:2006-11-15
论坛
文章
<table border=0 width='100%'><!--文章-->
<%
sql="select top 14 id,topic from article where hidden=1 order by id desc"
set rs=joekoe_cms.exec(sql,1)
do while not rs.eof
id=rs("id")
topic=rs("topic")
response.write vbcrlf&" <tr><td height='"&dim_num(6)&"' style='border-bottom:1px dotted #e0e0e0' ><img src='"&web_dim(6)&"skin/"&joekoe_cms.web_skin&"/small/h_article.gif' border=0 align=absMiddle> <a href='article/article_view.asp?id="&id&"' target=_blank alt='"&joekoe_cms.code_html(topic,1,0)&"'>"&joekoe_cms.code_html(topic,1,22)&"</a></td></tr>"
rs.movenext
loop
rs.close
%>
</table><!--文章结束-->
引用内容
<table border=0 width='100%'>
<%
sql="select top 13 id,forum_id,topic from bbs_topic where forum_id<>999999999 order by id desc"
set rs=joekoe_cms.exec(sql,1)
do while not rs.eof
id=rs("id")
topic=rs("topic")
response.write vbcrlf&" <tr><td height='"&dim_num(6)&"' style='border-bottom:1px dotted #e0e0e0'> <img src='/skin/"&joekoe_cms.web_skin&"/small/h_forum.gif' border=0 align=absMiddle> <a href='/forum/forum_view.asp?forum_id="&rs("forum_id")&"&view_id="&id&"' target=_blank alt='"&joekoe_cms.code_html(topic,1,0)&"'>"&joekoe_cms.code_html(topic,1,20)&"</a></td></tr>"
rs.movenext
loop
rs.close
%>
</table>
<%
sql="select top 13 id,forum_id,topic from bbs_topic where forum_id<>999999999 order by id desc"
set rs=joekoe_cms.exec(sql,1)
do while not rs.eof
id=rs("id")
topic=rs("topic")
response.write vbcrlf&" <tr><td height='"&dim_num(6)&"' style='border-bottom:1px dotted #e0e0e0'> <img src='/skin/"&joekoe_cms.web_skin&"/small/h_forum.gif' border=0 align=absMiddle> <a href='/forum/forum_view.asp?forum_id="&rs("forum_id")&"&view_id="&id&"' target=_blank alt='"&joekoe_cms.code_html(topic,1,0)&"'>"&joekoe_cms.code_html(topic,1,20)&"</a></td></tr>"
rs.movenext
loop
rs.close
%>
</table>
文章
引用内容
<table border=0 width='100%'><!--文章-->
<%
sql="select top 14 id,topic from article where hidden=1 order by id desc"
set rs=joekoe_cms.exec(sql,1)
do while not rs.eof
id=rs("id")
topic=rs("topic")
response.write vbcrlf&" <tr><td height='"&dim_num(6)&"' style='border-bottom:1px dotted #e0e0e0' ><img src='"&web_dim(6)&"skin/"&joekoe_cms.web_skin&"/small/h_article.gif' border=0 align=absMiddle> <a href='article/article_view.asp?id="&id&"' target=_blank alt='"&joekoe_cms.code_html(topic,1,0)&"'>"&joekoe_cms.code_html(topic,1,22)&"</a></td></tr>"
rs.movenext
loop
rs.close
%>
</table><!--文章结束-->
Tags: 调用
Joekoe CMS 4.0 Beta1 发布倒计时代码
作者:cmscn 日期:2006-11-10
<div id="time_conter" style="width:100%; padding-top:150px; text-align:center; display:none; color:#808080; font-family:arial; font-weight:bold;">
<p>Joekoe CMS 4.0 Beta1 发布倒计时</p>
<div style="font-size:38px;"><span id=h></span>小时<span id=m></span>分<span id=s></span>秒<span id=ms></span>毫秒</div>
</div>
<script language=javascript>
function n2(n)
{
if(n < 10)return "0" + n.toString();
return n.toString();
}
function n3(n)
{
if(n < 10)return "00" + n.toString();
if(n < 100)return "0" + n.toString();
return n.toString();
}
function setLeft()
{
var d1 = new Date();
var n;
n = (d.getTime() - d1.getTime());
document.getElementById("ms").innerHTML = n3(n % 1000);
n = (n - n % 1000) / 1000;
document.getElementById("s").innerHTML = n2(n % 60);
n = (n - n % 60) / 60;
document.getElementById("m").innerHTML = n2(n % 60);
n = (n - n % 60) / 60;
document.getElementById("h").innerHTML = n2(n);
setTimeout("setLeft();", 1);
}
var a, a1, a2;
a = unescape("2006-11-10 20:00:00").split(" ");
if(a.length > 1)
{
document.getElementById("time_conter").style.display="";
a1 = a[0].split("-");
a2 = a[1].split(":");
var d = new Date(a1[0], a1[1] - 1, a1[2], a2[0], a2[1]);
setLeft();
}
</script>
保存为.asp
http://www.joekoe.com/free/4.0/beta1.asp
<p>Joekoe CMS 4.0 Beta1 发布倒计时</p>
<div style="font-size:38px;"><span id=h></span>小时<span id=m></span>分<span id=s></span>秒<span id=ms></span>毫秒</div>
</div>
<script language=javascript>
function n2(n)
{
if(n < 10)return "0" + n.toString();
return n.toString();
}
function n3(n)
{
if(n < 10)return "00" + n.toString();
if(n < 100)return "0" + n.toString();
return n.toString();
}
function setLeft()
{
var d1 = new Date();
var n;
n = (d.getTime() - d1.getTime());
document.getElementById("ms").innerHTML = n3(n % 1000);
n = (n - n % 1000) / 1000;
document.getElementById("s").innerHTML = n2(n % 60);
n = (n - n % 60) / 60;
document.getElementById("m").innerHTML = n2(n % 60);
n = (n - n % 60) / 60;
document.getElementById("h").innerHTML = n2(n);
setTimeout("setLeft();", 1);
}
var a, a1, a2;
a = unescape("2006-11-10 20:00:00").split(" ");
if(a.length > 1)
{
document.getElementById("time_conter").style.display="";
a1 = a[0].split("-");
a2 = a[1].split(":");
var d = new Date(a1[0], a1[1] - 1, a1[2], a2[0], a2[1]);
setLeft();
}
</script>
保存为.asp
http://www.joekoe.com/free/4.0/beta1.asp
Tags: 4.0