234、展开隐藏的图片

234、展开隐藏的图片

<script language="JavaScript">

var b=0;

var c=true;

function fade(){

if(document.all);

if(c == true){b+=3}

if(b>380){c=false}

u.width=300

u.height=b; //运行后图片的大小

setTimeout("fade()",1)}//根据实际情况选择延时

</script>

            <p align="center"><a href="javascript:"><img src="sto/01.gif" name="u" width=0 height=0 border=0></a><p></p>

            <p align="center"><a href="javascript:" onClick="fade()">展开图片</a><p></p>

 

Write a comment

Comments: 0