select ID,Title,PicUrl,PicNews,Verific from KS_Article where PicNews=1 and Verific=1 and Tid in(select KS_Class.ID from KS_Class where KS_Class.TS like '%这里是拦目ID%') order by AddDate desc
图片样式{SQL_ceshi_1()}到{SQL_ceshi_5()}
[loop=1]
<DIV class=real_images><A
href="{$Field(id,GetInfoUrl,1,1)}"
target=_blank><IMG alt={$Field(title,Text,0,...,0,)} src="{$Field(picurl,Text,0,...,0,)}"
border=0 width=320 height=180></A></DIV>
<DIV class=focus_text><A class=Agrey
href="{$Field(id,GetInfoUrl,1,1)}"
target=_blank>{$Field(title,Text,0,...,0,)}</A></DIV>
[/loop]
新闻列表样式{SQL_ceshi_6()}到{SQL_ceshi_10()}
[loop=3]
<LI>·<A class=Ablack
href="{$Field(id,GetInfoUrl,1,1)}"
target=_blank>{$Field(title,Text,0,...,26,)}</A>
[/loop]
滚动样式{SQL_ceshi_11()}
[loop=8]
<A class=Ared
href="{$Field(id,GetInfoUrl,1,1)}"
target=_blank>{$Field(title,Text,0,...,0,)}</A>
[/loop]
页面代码
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>栏目切换</TITLE>
<LINK
href="qiehuan/index_style_new.css" type=text/css rel=stylesheet>
<SCRIPT src="qiehuan/BX.1.0.1.U.js"></SCRIPT>
<SCRIPT type=text/javascript>
/*设定默认焦点栏目*/
var focus_index = 1;
var focus_fav=C.getCookie('focus_index');
var focus_swap_interval=3000;
var focus_ev0=null;
if(focus_fav)
{
focus_index=parseInt(focus_fav);
}
var focus_array=['focusNews','focusBroadband','focusBlog','focusFun','focusFashion'];
function switch_focus(index)
{
O.hide(['ea'+focus_index,'eb'+focus_index]);
O.removeClass(focus_array[focus_index-1],'tag_current');
focus_index=index;
O.show(['ea'+focus_index,'eb'+focus_index]);
O.addClass(focus_array[focus_index-1],'tag_current');
}
function set_focus(){
C.setCookie('focus_index',focus_index);
alert("默认头条设置成功");
return false;
}
function focus_auto_swap()
{
if(focus_index){
var index=focus_index;
var _auto=function()
{
switch_focus(index);
index>=5?(index=1):index++;
clearTimeout(focus_ev0);
if(index==2){
focus_ev0=setTimeout(_auto,5000);
}else
{
focus_ev0=setTimeout(_auto,focus_swap_interval);
}
}
_auto();
}
}
var focus_link_array=[];
function init_focus()
{
switch_focus(focus_index);
V.addListener(
focus_array,
'mouseover',
function(e,obj){
var j=1;
for(var i=0;i!=focus_array.length;i++)
{
if(obj.id==focus_array[i])
{
j=i+1;break;
}
}
clearInterval(focus_ev0);
switch_focus(j);
}
);
V.addListener(
focus_array,
'click',
function(e,obj){
var j=1;
for(var i=0;i!=focus_array.length;i++)
{
if(obj.id==focus_array[i])
{
j=i+1;break;
}
}
window.open(focus_link_array[j-1]);
//switch_focus(j);
}
);
//V.addListener('makeDefault','click',set_focus);
focus_auto_swap();
}
</SCRIPT>
</HEAD>
<BODY bgColor=#ffffff>
<DIV id=focusImages><!-- focusImages begin-->
<DIV id=focus_left>
<DIV id=tag_contain>
<UL>
<LI class=tag_label id=focusNews style="BORDER-LEFT-WIDTH: 0px">资 讯 </LI>
<LI class=tag_label id=focusBroadband>宽 频 </LI>
<LI class=tag_label id=focusBlog>博 客 </LI>
<LI class=tag_label id=focusFun>娱 乐 </LI>
<LI class=tag_label id=focusFashion>时 尚 </LI></UL></DIV>
<DIV id=images_contain>
<DIV id=ea1>
{SQL_ceshi_1()}</DIV>
<DIV id=ea2>
{SQL_ceshi_2()}</DIV>
<DIV id=ea3>
{SQL_ceshi_3()}</DIV>
<DIV id=ea4>
{SQL_ceshi_4()}</DIV>
<DIV id=ea5>
{SQL_ceshi_5()}</DIV>
<UL id=eb1>
{SQL_ceshi_6()}</LI></UL>
<UL id=eb2>
{SQL_ceshi_7()}</LI></UL>
<UL id=eb4>
{SQL_ceshi_8()}
</li></UL>
<UL id=eb3>
{SQL_ceshi_9()} </LI></UL>
<UL id=eb5>
{SQL_ceshi_10()} </LI></UL>
<DIV class=breaking_news>
<H1><A class=Awhite title=查看当日即时新闻 href="#"
target=_blank>即时新闻</A></H1>
<MARQUEE onmouseover=this.stop(); onmouseout=this.start(); scrollAmount=3><!--碎片 d_general_a_blank begin-->
{SQL_ceshi_11()}<!--碎片 d_general_a_blank end--></MARQUEE></DIV></DIV></DIV>
<DIV id=focus_right>
<DIV id=mainContent>
<DIV id=focus_newstext><!--碎片 s_phoenix_defaultpage_focus_news_headline_v1_1 begin-->
<SCRIPT>init_focus();</SCRIPT>
<!-- focusImages end--></DIV>
</DIV>
</DIV>
</DIV>
</BODY></HTML>
此主题相关图片如下:
效果网址:http://www.phoenixtv.com/
下载信息 [文件大小:142.19 KB 下载次数: 次] |
点击下载文件: |
只提供学习 因为实用效果不是很强 太多标签 生成很慢
建议大家用"通用页面"来做 然后在首页用个框架
[此贴子已经被作者于2007-1-4 18:15:14编辑过]