《仿网易新闻中心焦点图片幻灯显示效果函数标签》由会员分享,可在线阅读,更多相关《仿网易新闻中心焦点图片幻灯显示效果函数标签(8页珍藏版)》请在金锄头文库上搜索。
1、1、创建函数标签、创建函数标签 标签名称:163pic 分页数量:5 自动刷新:10 查询语句: select top 4 ArticleID,ChannelID,ClassID,Title,DefaultPicUrl,Content from PE_Article where Status = 3 and (IncludePic=1 or IncludePic=2) and ChannelID=input(0) and deleted=0 and Elite=true order by ArticleID desc 注:以上选择的是“推荐”图片。如果想选择最新图片,请将查询语句中的“ and
2、 Elite=true“ 去掉。 优先级:5 参数说明:频道 ID 标签内容:Loop Infobegin imgUrl$AutoID=“$InstallDir$Field(1,GetChannel,1)/$Field(1,GetChannel,3)/$Field(4, Text,0,0,0)“ imgLink$AutoID=“$InstallDir$Field(0,GetUrl,Article,1)“ imgtext$AutoID=“$Field(3,Text,0,0,0)“ imgintro$AutoID=“$Field(5,Text,60,2,1)“ Infoend /Loop docu
3、ment.write() document.write() document.write() document.write() document.write() document.write() document.write() document.write( ) document.write( ) document.write( ) document.write( ) document.write() document.write()document.write() document.write(+imgtext1+) document.write(+imgintro1+详细 ) docum
4、ent.write() document.write(+imgtext2+) document.write(+imgintro2+详细 ) document.write() document.write(+imgtext3+) document.write(+imgintro3+详细 ) document.write() document.write(+imgtext4+) document.write(+imgintro4+详细 ) document.write()2、模板调用、模板调用新闻中心BODY PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-
5、SIZE: 12px; BACKGROUND: #fff; PADDING-BOTTOM: 0px; MARGIN: 0px; COLOR: #000; PADDING-TOP: 0px; FONT- FAMILY: 宋体, serif; TEXT-ALIGN: center DIV BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER- LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TO
6、P: 0px; BORDER-RIGHT-WIDTH: 0px FORM BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER- LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BORDER-RIGHT-WIDTH: 0px IMG BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-L
7、EFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BORDER-RIGHT-WIDTH: 0px UL BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER- LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BORDER-RIGHT-W
8、IDTH: 0px OL BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER- LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BORDER-RIGHT-WIDTH: 0px LI BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER- LEFT-WIDTH: 0px; BORDER-B
9、OTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BORDER-RIGHT-WIDTH: 0px DL BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER- LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BORDER-RIGHT-WIDTH: 0px DT BORDER-TOP-
10、WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER- LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BORDER-RIGHT-WIDTH: 0px DD BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER- LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDIN
11、G-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BORDER-RIGHT-WIDTH: 0px H1 PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: normal; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px H2 PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: normal; FONT-SIZE: 12px; PADDING-BOTTOM: 0px
12、; MARGIN: 0px; PADDING-TOP: 0px H3 PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: normal; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px H4 PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: normal; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px H5 PAD
13、DING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: normal; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px H6 PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: normal; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px LI LIST-STYLE-TYPE: none INPUT CURSOR: point
14、er BUTTON CURSOR: pointer IMG VERTICAL-ALIGN: top A:link COLOR: #000; TEXT-DECORATION: none A:visited COLOR: #83006f; TEXT-DECORATION: none A:hover COLOR: #bc2931; TEXT-DECORATION: underline A:active COLOR: #bc2931 .left FLOAT: left .right FLOAT: right .focusArea CLEAR: both; BORDER-TOP: #ccc 1px so
15、lid; BACKGROUND: url(http:/ MARGIN: 0px auto; WIDTH: 960px; BORDER- BOTTOM: #ccc 1px solid; HEIGHT: 347px .focusArea .hot CLEAR: both; PADDING-RIGHT: 8px; PADDING-LEFT: 9px; BACKGROUND: #fff; PADDING-BOTTOM: 0px; MARGIN: 0px 1px; COLOR: #1f3a87; LINE-HEIGHT: 23px; PADDING-TOP: 2px; BORDER-BOTTOM: #ccc 1px solid; HEIGHT: 23px; TEXT-ALIGN: left .focusArea .hot A COLOR: #1f3a87 .focusArea .hot A:hover COLOR: #bc2931 .focusArea .col1 FLOAT: left; WIDTH: 460px .focusArea .col2 DISPLAY: inline; BACKGROUND: #fafaf