CnBlogs.Com用到的CSS控制的代码折叠功能测试

来源:百度文库 编辑:神马文学网 时间:2024/07/02 17:46:48
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


CnBlogs.Com用到的CSS控制的代码折叠功能测试







跟帖关闭调用页面close.htm代码如下:


<html>

    
<head>

        
<meta http-equiv="content-type" content="text/html; charset=gb2312">

    
</head>



    
<body>

        
<script language="javascript">

            
//控制列表关闭的代码

            var parentfollow=parent.document.getelementbyid("follow356")

            
var parentfollowtd=parent.document.getelementbyid("followtd356")

            
var parentfollowimg=parent.document.getelementbyid("followimg356")

            
if(parentfollow)

            
{

                parentfollow.style.display
="none";    

            }


            parentfollowtd.style.display
="none";

            parentfollowimg.innerhtml
=<a href="open.htm" target="hiddenframe"  title="展开帖子列表" ><img src="plus.gif" border="0" ></a>‘;

        
</script>

    
</body>

</html>