JFCMS/资讯模板
来自站长百科
本模板为JFCMS的资讯页面的模板,主要显示资讯正文内容及相关评论等。
模板安装[ ]
把编辑好的模板,通过控制面版--栏目管理-添加栏目进添加(资讯模板),如果是修改的话,直接点栏目修改即可.在模板制作过程中,除了主体调用的部分,还配合了辅助JS调用功能.在下图中最右边的两个版块就是自定义文件调用的效果.具体用法见代码:只要把自定义文件里的生成代码复制过来放到HTML中就行了.js的效果可以参见 标签调用示例效果 .
模板效果[ ]
模板代码[ ]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>[JF:Title]</title>
<link href="/css/css.css" rel="stylesheet" type="text/css" />
<SCRIPT language=JavaScript>
function doZoom(size){
document.getElementById('zoom').style.fontSize=size+'px'
}
</SCRIPT>
<script language='javascript'>
function copyToClipBoard(){
var copy = document.formcopy.copy.value;
// alert(copy);
var clipBoardContent=copy
clipBoardContent+='\r\n';
clipBoardContent+=document.location;
window.clipboardData.setData("Text",clipBoardContent);
alert("你已复制成功!");
}
</script>
</head>
<body>
<center>
<table width="780" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" align="left" valign="middle" class="nan"> ◆ 你现在的位置是:[JF:Navigation]</td>
</tr>
<tr>
<td height="1"> </td>
</tr>
</table>
<table width="780" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table width="780" border="0" cellspacing="0" cellpadding="0"style="border: 1px solid #6caed4;">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#FFFFFF" height:25px"><h1>[JF:Title]</h1>
</td>
</tr>
<tr>
<td colspan="2" align="center" height:30px"><div style="margin-bottom:2px; text-align:center;
border-bottom:1px dashed #b2b2b2">2007-01-22 阅读:6649 出处:<a href="comment_110724_1.htm"
target="_blank"></a> 作者: 编辑: </div></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2" align="center" valign="top" width="590"><div align="left"><div style="float:left;
margin:5px;"><script type="text/javascript"><!--
google_ad_client = "pub-5571671063971311";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
google_ad_type = "text_image";
//2007-01-07: jfstudio新闻页右边广告, jfstudio新闻页内容广告
google_ad_channel = "8650686084+4989861312";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><div id="Zoom">
[JF:Content]</div></div></td>
</tr>
<tr>
<td colspan="2"><div style="margin-right:10px; text-align:right">[JF:SubPage]</div></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="6">
<tr>
<td height="1" colspan="2" background="//images/bg_dot.gif"></td>
</tr>
<tr>
<td height="25" align="left">上一条新闻:<a href='[JF:PrevNews]' target=_blank>[JF:PrevTitle]</a><br>
下一条新闻:<a href='[JF:NextNews]' target=_blank>[JF:NextTitle]</a> </td>
<td align="right"></td>
</tr>
<tr>
<td width="97%" height="25" align="right"><div class="STYLE4">[<a href="javascript:doZoom(16)">大</a> <a
href="javascript:doZoom(14)">中</a> <a href="javascript:doZoom(12)">小</a> ] [<a href="javascript:"
onclick="window.print();return false;" title="打印正文">打印文章</a>]
[<a href="javascript:window.close()">关闭窗口</a>] [<a href="#top">到顶部↑</a>]</td>
<td width="3%" align="right"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="30" colspan="3" align="center">
<form name="formcopy">
<div class="sendTo">
<input title="点击复制标题和地址到剪贴版,直接在POPO/MSN上粘贴即可."
type=button value="点击复制本网址,发给POPO/QQ/MSN好友共享" name="B3" onclick="copyToClipBoard()">
<input type="hidden" id="copy" name="copy" value="加入渐飞IT人阵地,共同提高自己,早日实现自己的梦想" />
</div>
</form>
</td>
</tr>
<tr>
<td colspan="2"><hr color="#CC6600" size="1px" /></td>
</tr>
<tr>
<td colspan="2"><TABLE borderColor=#e5e5e5 cellSpacing=0 cellPadding=1 width=99%
align=center border=1>
<TR>
<TD bgColor=#eeeeee>
<DIV class="body">
<div align="justify" class="cpx12lan5 STYLE6</div>
</DIV></TD>
</TR>
</TABLE></td>
</tr>
<tr>
<td colspan="2"><div align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="ccccd4">
<td width="12" height="22" bgcolor="#EDEDED"></td>
<td width="588" bgcolor="#ddedfc"><strong>相关资讯</strong></td>
</tr>
<tr bgcolor="#f2f3f7">
<td colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="2" cellpadding="0">
[JF:Correlation JF:NewsCount=8]
<tr>
<td height="16" align="left">· <a href="[JF:NewsPath]" target="_blank">[JF:Title]</a> 2007/01/22</td>
</tr>
[/JF:Correlation]
</table>
</td>
</tr>
</table></div></td>
</tr>
<tr>
<td width="595" valign="top">
<TABLE width=100% border=0 cellPadding=0 cellSpacing=0 bgColor=#A8D9EC>
<TBODY>
<TR>
<TD>
<TABLE width="98%" height="20"
border=0 align=center cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD height="52"> <DIV style="margin:10px; text-align:left"><A
href="http://www.jfstudio.net" target="_blank"><IMG src="/images/arc_b1.gif" alt="进入渐飞IT人阵地"
border=0></A></DIV></TD>
<TD valign="middle">
<div align="right" ><a href="comment_110724_1.htm"
target="_blank" class="cpx12hui">网友评论<span class="STYLE7">0</span>条</a> </div></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR>
<TD vAlign=top bgColor=#d5e2f3>
<TABLE cellSpacing=0 cellPadding=5 width="100%" border=0>
<TBODY>
<TR>
<TD valign="top" bgcolor="#CCE9F4"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="600" colspan="2"><table width="100%" border="0" cellspacing="5" cellpadding="3">
<tr>
<td>[JF:LastReview]</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="12" cellpadding="0">
[JF:Review]
<tr>
<td><table width="100%" border="0" cellpadding="6" cellspacing="0">
<input type=hidden name=DocumentID value=1734>
<tr>
<td>姓名:
<input name=ReviewName type=text>
<input name=submit type=submit class="button-01" value=提交评论>
<span >发言时务必尊重网上道德与相关法律法规 </span></td>
</tr>
<tr>
<td><textarea name=ReviewContent cols=60 rows=6 style="width:100%"></textarea></td>
</tr>
</table></td>
</tr>
[/JF:Review]
</table></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table></td>
</tr>
</table>
</center>
</body>
</html>
参考来源[ ]
JFCMS使用手册导航 | ||||||||
|---|---|---|---|---|---|---|---|---|
|
