用JAVASCRIPT写的,放在一个。JS的文件里,在网页中需要这个特特效的时候,随时可以调用,甚至可以轮流显示几条不同的信息。。。。
不知道这样的程序有吗?哪位兄弟能介绍一个给小弟我哟。。。。在这里谢过各位!!!!!
[此贴子已经被作者于2006-8-15 18:32:00编辑过]
我找到一个淡出淡入的效果.....但是把它做成.JS调用都不成功....没有办法哟....
--------------------------------------------------------------------------------------------------
<script language="javaScript">
<!--
function checkBrowserForVersion4(){
var x=navigator.appVersion;
y=x.substring(0,4);
if(y>=4) Effect();}
var isNav=(navigator.appName.indexOf("Netscape")!=-1);
var colors=new Array
("FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF","F9F9F9","F1F1F1","E9E9E9","E1E1E1","D9D9D9","D1D1D1","C9C9C9","C1C1C1","B9B9B9","B1B1B1","A9A9A9","A1A1A1","999999","919191","898989","818181","797979","717171","696969","616161","595959","515151","494949","414141","393939","313131","292929","212121","191919","111111","090909","000000")
a=0,b=1
function Effect(){
color=colors[a];
//*改改下面的文字内容即可,可使用HTML语法,但是注意引号不要混用。双引号内是单引号。*//
aa="<font size='5'><font face='Arial, Helvetica, sans-serif'><font color="+color+">这里是内容...
</font></font></font>"
if(isNav) {document.object1.document.write(aa);document.object1.document.close();}
else object1.innerHTML=aa
a+=b;if (a==38) b-=2;if (a==0) b+=2;xx=setTimeout("Effect()",10);}
//-->
</script>
----------------------------------------------------------------------------------------------------------
这里是循环调用内容......
<%sql="select * from pub order by ID DESC"
rs.open sql,conn,1,1
if rs.eof or rs.bof then%><p style="margin:0 5; "><font color="#000000">暂无公告</font><%else
i=0
do while not rs.eof
i=i+1%><a href="#" onclick="javascript:window.open('notice.asp?id=<%=rs("id")%>','newwindow','toolbar=no,scrollbars=yes,resizable=no,top=0,left=0,width=370,height=300');">
<font color="#000000"><%=i%>.<%=rs("title")%></font><font color="#CCCCCC">(<%=rs("date")%>)</font></a>
<%
rs.movenext
loop
end if
rs.close
%>
---------------------------------------------------------------------------------------------------------