我想要一些像嚮導一樣的註冊步驟。 我想使用這些示例和asp.net頁面。 謝謝。用戶註冊的jquery嚮導
0
A
回答
5
您可以輕鬆創建自己的使用jQuery - 看看這個演示 http://jsfiddle.net/nwJFs/
和這裏的代碼
HTML
<div class="step step-1">
<div class="wrap">
<label for="name">Name</label>
<input id="name" type="text" />
</div>
<div class="wrap">
<label for="email">Email</label>
<input id="email" type="text" />
</div>
<div class="wrap">
<label for="phone">Phone</label>
<input id="phone" type="text" />
</div>
<br class="clear-last" />
<a class="button prev" href="#">Previous</a>
<a class="button next" href="#">Next</a>
</div>
<div class="step step-2">
<div class="wrap">
<label for="name">Mobile</label>
<input id="name" type="text" />
</div>
<div class="wrap">
<label for="email">Address</label>
<textarea id="email"></textarea>
</div>
<div class="wrap">
<label for="phone">Phone</label>
<input id="phone" type="text" />
</div>
<br class="clear-last" />
<a class="button prev" href="#">Previous</a>
<a class="button next" href="#">Next</a>
</div>
<div class="step step-3">
<div class="wrap">
<label for="name">Some</label>
<input id="name" type="text" />
</div>
<div class="wrap">
<label for="email">Other</label>
<textarea id="email"></textarea>
</div>
<div class="wrap">
<label for="phone">Fields</label>
<input id="phone" type="text" />
</div>
<br class="clear-last" />
<a class="button prev" href="#">Previous</a>
<a class="button next" href="#">Submit</a>
</div>
CSS
body {
font-family: Trebuchet MS;
font-size: 12px;
}
.wrap {
clear: both;
padding: 8px 0;
}
.wrap label {
display: block;
float: left;
width: 150px;
padding: 4px;
line-height: 12px;
}
.wrap input,
.wrap textarea {
display: block;
font-size: 12px;
line-height: 12px;
float: left;
width: 200px;
border: 1px solid #888;
padding: 4px 8px;
}
.button {
background: #333;
color: #f2f2f2;
display: inline-block;
padding: 4px 8px;
text-decoration: none;
border: 1px solid #ccc;
}
.button:hover {
background: #888;
color: #000;
}
br.clear-last {
clear: both;
margin: 15px 0;
}
.step {
display: none;
}
.step-1 {
display: block;
}
jQuery的
$(".next").click(function() {
//store parent
var parent = $(this).parent();
if(parent.next().length) {
parent.hide("slow").next().show("slow");
}
return false;
});
$(".prev").click(function() {
var parent = $(this).parent();
if(parent.prev().length) {
parent.hide("slow").prev().show("slow");
}
return false;
});
0
1
退房這一個:http://thecodemine.org
具有鍍鉻雖然問題...
0
結帳這些鏈接,更好的嚮導創建: techlab智能嚮導:http://techlaboratory.net/smartwizard
相關問題
- 1. Crystal決定註冊嚮導
- 2. 註冊後註冊用戶
- 3. 註冊用戶和未註冊用戶
- 4. Yii的重定向到用戶/註冊
- 5. 用PHP註冊MySQL的用戶註冊
- 6. 用戶註冊(註冊)的Wordpress REST API
- 7. 註冊用戶?
- 8. 註冊用戶
- 9. 註冊後Laravel oauth用戶重定向
- 10. Laravel 5.3註冊後重定向用戶
- 11. 用Javascript註冊用戶註冊登錄
- 12. WordPress註冊與用戶註冊分離
- 13. Grails Spring Security註冊/註冊用戶
- 14. 註冊用戶PHP
- 15. 用戶註冊類
- 16. Android用戶註冊
- 17. django用戶註冊
- 18. MediaWiKi用戶註冊
- 19. CouchApp用戶註冊
- 20. IdentityServer3用戶註冊
- 21. 註冊用戶:CreateUserWizardStep
- 22. asp.net嚮導控件創建註冊
- 23. 使用Devise身份驗證的用戶註冊服務器端嚮導
- 24. 商店註冊用戶和非註冊用戶付款
- 25. 用戶註冊的PHP
- 26. Hippo cms的註冊用戶
- 27. 註冊RMI客戶端導致IllegalArgumentException
- 28. 用戶註冊使用EmberJS
- 29. Jabber-net註冊新用戶
- 30. ASP.Net:Ajax檢查用戶註冊?
你是什麼意思一步一步註冊? – 2010-07-05 04:54:32
我的意思是一個嚮導註冊:) tnx爲你的關注。 – Shahin 2010-07-05 05:39:42