<div class="codetitle"> <span><a style="CURSOR: pointer" data="60552" class="copybut" id="copybut60552" onclick="doCopy('code60552')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code60552"> <br><style type="text/css"> <BR>.divFrame { <BR>width:260px;border:1px solid #666;font-size:10pt; <BR>} <BR>.divTitle { <BR>background-color:#eee;padding:5px; <BR>} <BR>.divContent { <BR>padding:5px;display:none; <BR>} <BR>.divCurrColor { <BR>background-color:red; <BR>} <BR></style> <br><script src="jQuery/jquery-1.9.1.js"></script> <br><script type="text/javascript"> <BR>$(function () { <BR>$('.divTitle').click(function () { <BR>$(this).addClass('divCurrColor').next('.divContent').css('display', 'block'); <BR>}) <BR>}) <BR></script> <br> <br> <br><div class="divFrame"> <br><div class="divTitle">主题</div> <br><div class="divContent"> <br><a href="#">链接一</a><br> <br><a href="#">链接二</a><br> <br><a href="#">链接三</a> <br> </div> <br> </div> <br> <br> </div>