在网上看到很多页面转换的特效,感觉很酷,很漂亮,但是看网页代码时,发现都是flash做的.难道这种效果除了flash.就没有别的方法了?.答案是错的其实通javascript 也是可以完成此效果的.而且就二行代码可以搞定只要对html语言稍懂一点的朋友都可以看懂.敢快试试
二行代码:
把如下代码加入<head>区域中
<meta HTTP-EQUIV="Page-Enter" CONTENT="revealtrans(duration=6.0, transition=23)">
<meta HTTP-EQUIV="Page-Exit" CONTENT="revealtrans(duration=6.0, transition=23)">
源代码如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>页面转换特效
</TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<meta HTTP-EQUIV="Page-Enter" CONTENT="revealtrans(duration=6.0, transition=23)">
<meta HTTP-EQUIV="Page-Exit" CONTENT="revealtrans(duration=6.0, transition=23)">
</HEAD>
<BODY>
关注java,JAVASCRIPT,网站建设 专业博客,www.javaidc.com </br>
页面转换时即可看到效果!
请点击就可以看到效果
<a href=http://www.javaidc.com >javakht 的博客</a> </br>
<TEXTAREA NAME="" ROWS="12" COLS="42">
把如下代码加入<head>区域中
<meta HTTP-EQUIV="Page-Enter" CONTENT="revealtrans(duration=6.0, transition=23)">
<meta HTTP-EQUIV="Page-Exit" CONTENT="revealtrans(duration=6.0, transition=23)">
</TEXTAREA>
</BODY>
</HTML>
二行代码:
把如下代码加入<head>区域中
<meta HTTP-EQUIV="Page-Enter" CONTENT="revealtrans(duration=6.0, transition=23)">
<meta HTTP-EQUIV="Page-Exit" CONTENT="revealtrans(duration=6.0, transition=23)">
源代码如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>页面转换特效
</TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<meta HTTP-EQUIV="Page-Enter" CONTENT="revealtrans(duration=6.0, transition=23)">
<meta HTTP-EQUIV="Page-Exit" CONTENT="revealtrans(duration=6.0, transition=23)">
</HEAD>
<BODY>
关注java,JAVASCRIPT,网站建设 专业博客,www.javaidc.com </br>
页面转换时即可看到效果!
请点击就可以看到效果
<a href=http://www.javaidc.com >javakht 的博客</a> </br>
<TEXTAREA NAME="" ROWS="12" COLS="42">
把如下代码加入<head>区域中
<meta HTTP-EQUIV="Page-Enter" CONTENT="revealtrans(duration=6.0, transition=23)">
<meta HTTP-EQUIV="Page-Exit" CONTENT="revealtrans(duration=6.0, transition=23)">
</TEXTAREA>
</BODY>
</HTML>