1
A
回答
1
您需要一點jQuery,以及一些CSS。
CSS:
#terms
{
display: none; /*necessary*/
/* otherstyles*/
}
的jQuery:
$("#header").click(function(){
$("#terms").toggle();
});
當您單擊標題這應該現在顯示方面的元素。
2
你必須在頁面的絕對位置上有你的條款。並將它們CSS放在您的標題下方。
CSS是這樣的:
#termsdiv {
display: none; /* Wil be shown by jQuery */
position : absolute;
width: 800px;
height: 600px;
overflow: auto;
top: 100px;
left: 50%; /* CENTER the DIV */
margin: 0 0 0 -400px; /* CENTER the DIV */
}
你的JavaScript看起來像:
$("#header").click(function(){
$("#termsdiv").toggle(); /* or use .fadeToggle() to use fades */
});
如果你想這樣做很容易,沒有做太多到自己。嘗試http://www.fancybox.net
1
Soemthing沿着這些線路應爲你工作:
$("#header").click(function() {
$("#terms").toggle();
});
CSS
#terms { display: none; }
1
這人會做一個漸變效果。
var isDisplay = false;
$('#T_&_C').bind('click', function() {
if(isDisplay = false)
{
$('#id_content_div').fadeIn('slow');
isDisplay = true;
}
else
{
$('#id_content_div').fadeOut('slow');
isDisplay = false;
}
});
相關問題
- 1. Django條款和條件表
- 2. GCM條款和條件
- 3. 連接條款中的條件和條款
- 4. 加入表格時的條款條件
- 5. 服務條款和緩存條款
- 6. 在AppDelegate上顯示條款和條件
- 7. WooCommerce翻譯條款和條件鏈接?
- 8. 條款和條件 - ESP - Google Schemas
- 9. Magento中的動態條款和條件
- 10. Linq多條款條件如果條件
- 11. 多條件條款SQL
- 12. 條件中有條款
- 13. 有大條款的條件
- 14. 向Crystal Reports報告添加條款和條件頁面
- 15. SSRS。我需要在報價末尾添加「條款和條件」
- 16. 將條款和條件添加到應用程序
- 17. 將條款和條件添加到新帳戶註冊
- 18. 雙人和條款
- 19. 條款
- 20. 條款
- 21. 左移和條款加入與scalikejdbc
- 22. 加上WHERE和GROUP BY條款
- 23. 加入條款和凡在甲骨文
- 24. 接受Python和機械化的條款和條件
- 25. 添加或條款中並在SF2條款的QueryBuilder
- 26. Android SQLite更新條款與條款
- 27. 條款聲明內部條款
- 28. 添加「來自」條款
- 29. 用條款添加Lambda
- 30. LINQ加入我的條款
你可以發佈你到目前爲止的代碼嗎 –