|
 |
|
คือไปเจอสคิปนี้ใน dir แต่ไม่รู้ว่าเอาไว้ทำอะไร ท่านใดพอท่านบ้างครับว่า น่าจะอยู่ในฟังก์ชั่นเกี่ยวกับอะไร |
|
 |
|
|
 |
 |
|
Code (JavaScript)
// Making the tabs look nicer
$(document).ready(function() {
$("ul.idTabs a.selected").parent('li').addClass('active');
$('ul.idTabs > li > a').click(function() {
$(this).parent().addClass('active').siblings().removeClass('active');
return false;
});
});
// Fade buttons on hover
$(document).ready(function() {
if($.support.opacity) {
$('.fader').hover(
function() {
$(this).stop().animate({opacity:0.75, filter: ''},100);
},
function() {
$(this).stop().animate({opacity:1, filter: ''},100);
});
}
});
// Modal windows
$().ready(function() {
$('#login').jqm({trigger: '#trigger_login, #trigger_login_footer'});
$('#register').jqm({trigger: '#trigger_register, #trigger_register_footer'});
$('#request').jqm({trigger: '#trigger_request, #trigger_request_footer'});
});
// "Blinking" message
$(document).ready(function() {
if($('.modal_window').is(':visible')) {
$('.error_message, .ok_message, .msg_bottom').hide();
$('.error_message, .ok_message, .msg_bottom').fadeIn(900);
}
});
// Auto-clear input
$(document).ready(function() {
$(".field").ClearInput();
});
(function($) {$.fn.ClearInput = function() {
$(this).each(function() {
var DefaultValue = this.defaultValue;
$(this).focus(function(){
var CurrValue = $(this).val();
if(CurrValue == DefaultValue) {
$(this).val("");
}
});
$(this).blur(function(){
var CurrValue = $(this).val();
if(CurrValue.length == 0) {
$(this).val(DefaultValue);
}
});
});
}})(jQuery);
Tag : PHP, MySQL

|
|
 |
 |
 |
 |
Date :
2013-08-14 22:19:10 |
By :
peap |
View :
748 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
น่าจะเป็นจัดการพวก Tab และ Input ใน Tab หรือเปล่าครับ
|
 |
 |
 |
 |
Date :
2013-08-15 08:37:32 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เป็น Form Controller ที่อยู่ใน Dialog Popup (Modal) ใน JQuery Mobile ค่ะ
|
 |
 |
 |
 |
Date :
2013-08-15 09:13:21 |
By :
survivor |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|