Art2008 CMS是一款具有强大的功能的基于ASP语言的网站管理软件

源代码在线查看: js-pic3.asp

软件大小: 4110 K
上传用户: yitiaojin135
关键词: 2008 Art ASP CMS
下载地址: 免注册下载 普通下载 VIP

相关代码

								
				
				
				 其中:lm2=表示:新闻栏目ID号,w,h是图象的高度。
				 
				 豪气冲天--2006-8-2改进。
				-->
				
				
				
				
				
								
				a:link {text-decoration: none; font-family: AdobeSm; color: #000000 }
				a:visited {text-decoration: none; color: #000000 }
				A:hover {COLOR: green; FONT-FAMILY: "宋体,MingLiU"; TEXT-DECORATION: underline}
				body {font-size: 9pt; font-family: 宋体,MingLiU, Arial;color: #000000}
				TD {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000;line-height: 120%;table-layout:fixed;word-break:break-all}
				p {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000}
				input {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000}
				body {margin-top: 0; margin-bottom: 0;margin-left:0;margin-right:0; color: #000000}
				select {FONT-SIZE: 9PT;font-family: 宋体}
				option {FONT-SIZE: 9pt;font-family: 宋体}
				textarea {FONT-SIZE: 9pt;font-family: 宋体}
				
				-->
				
				
								
				'ON ERROR RESUME NEXT
				
				lm2=trim(request("lm2"))
				if lm2="" then lm2=0
				if (not isNumeric(lm2)) then
				  Response.Write "alert('栏目ID参数错误或有非法字符或没指定参数,请勿随意提交数据!');location.href='/';"
				  response.end  
				end if
				
				w=trim(request("w"))
				h=trim(request("h"))
				
				if w="" or not isNumeric(w) then w=200 '默认图片宽度值
				if h="" or not isNumeric(h) then h=160 '默认图片高度值
				
				n=int(n)
				
				
				function qxalttu(nr)
					nr=trim(nr)
					nr=replace(nr,"ALT","alt")
					nr=replace(nr,"ALT","alt")
					nr=replace(nr,"ALT","alt")
					nr=replace(nr,"ALT","alt")
					nr=replace(nr,"ALT","alt")
					if instr(nr," ")0 then
						aaa=split(nr," ")
						nr=aaa(0)
					end if
					qxalttu=nr
				end function
				
				
				function titlepic(nr)
					nr=trim(nr)
					nr=replace(nr," ","")	
					titlepic=titleb(nr,n)
				end function
				
				path=config("path")
				
				'path="/news/"
				'Set rs = Server.CreateObject("ADODB.RecordSet")
				'rs.Open "select * from [config]",conn,1,1
				'if rs.recordcount0 then
				'   path=rs("path")
				'end if
				'rs.close
				'set rs=nothing
				
				set rs = server.CreateObject ("adodb.recordset")
				sql = "select top 6 id,pic,title  from news where ( pic like '%.jpg%' and pic like '%.JPG%') and sh=1 "
				if lm2"0" then sql=sql&" and (lm='"&lm2&"' or lm2='"&lm2&"' or lm3='"&lm2&"') "
				sql=sql&" order by ontop desc , updat desc  , id desc"
				rs.open sql,conn,1,1
				
				if rs.recordcount=0 then
				  Response.Write "无图片信息"
				  rs.close:set rs=nothing
				  conn.close:set conn=nothing
				  Response.end
				end if
				
				for i=1 to rs.recordcount
					
					pic1=qxalttu(rs("pic"))
					title1=titleb(rs("title"),n)
					id1=rs("id")
					rs.movenext
					if rs.eof then exit for
					
					pic2=qxalttu(rs("pic"))
					title2=titleb(rs("title"),n)
					id2=rs("id")
					
					rs.movenext
					if rs.eof then exit for
					
					pic3=qxalttu(rs("pic"))
					title3=titleb(rs("title"),n)
					id3=rs("id")
					rs.movenext
					if rs.eof then exit for
					
					pic4=qxalttu(rs("pic"))
					title4=titleb(rs("title"),n)
					id4=rs("id")
					rs.movenext
					if rs.eof then exit for
					
					pic5=qxalttu(rs("pic"))
					title5=titleb(rs("title"),n)
					id5=rs("id")
					rs.movenext
					if rs.eof then exit for
					
					pic6=qxalttu(rs("pic"))
					title6=titleb(rs("title"),n)
					id6=rs("id")
					rs.movenext
					if rs.eof then exit for	
					
				next
				
				rs.close
				set rs=nothing 
				%>
				
				
				
				var imgUrl=new Array();
				var imgLink=new Array();
				var adNum=0;
				imgUrl[1]="";
				imgLink[1]="news_view.asp?newsid=";
				imgUrl[2]="";
				imgLink[2]="news_view.asp?newsid=";
				imgUrl[3]="";
				imgLink[3]="news_view.asp?newsid=";
				imgUrl[4]="";
				imgLink[4]="news_view.asp?newsid=";
				imgUrl[5]="";
				imgLink[5]="news_view.asp?newsid=";
				imgUrl[6]="";
				imgLink[6]="news_view.asp?newsid=";
				
				
				var imgPre=new Array();
				var j=0;
				for (i=1;i				if( (imgUrl[i]!="") && (imgLink[i]!="") ) {
				j++;
				} else {
				break;
				}
				}
				function playTran(){
				if (document.all){
				document.imgInit.filters[0].play();
				}
				}
				function nextAd(){
				if(adNum				else adNum=1;
				if (document.all){
				document.imgInit.filters[0].Transition=26;
				document.imgInit.filters[0].apply();
				}
				document.images.imgInit.src=imgUrl[adNum];
				playTran();
				theTimer=setTimeout("nextAd()", 6000);
				}
				function goUrl(){
				jumpUrl=imgLink[adNum];
				jumpTarget='_blank';
				if (jumpUrl != ''){
				if (jumpTarget != '')
				window.open(jumpUrl,jumpTarget);
				else
				location.href=jumpUrl;
				}
				}
				
				
				
				
				  
				
				
								; border-color:#000000;color:#000000;margin-bottom:0px" src="javascript:nextAd()" width="" height="" border="0" name="imgInit">
				
				
				
				
				
				
				
				
				
							

相关资源