|
|
|
พี่ค่ะ JavaScript jQuery ชนกันค่ะ ทำยังไงดีค่ะ หนูไม่อยากลบตัวใดตัวหนึ่งออกเลย มันสำคัญมากๆ |
|
|
|
|
|
|
|
ช่วยหนูที หนูจนปัญญาแล้ว
Code (PHP)
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/smoothness/jquery-ui-1.7.2.custom.css">
<link rel="stylesheet" type="text/css" href="css/css.css">
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript">
$(function(){
// แทรกโค้ต jquery
$("#dateInput").datepicker({ dateFormat: 'yy-mm-dd' });
$("#dateInput1").datepicker({ dateFormat: 'yy-mm-dd' });
});
</script>
<script type="text/javascript" src="scripts/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<link rel="stylesheet" href="style/style.css" />
<script type="text/javascript">
$(document).ready(function() {
$('a[id^="edit"]').fancybox({
'width' : '50%',
'height' : '40%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe',
onClosed : function() {
parent.location.reload(true);
}
});
$('a[id^="delete"]').fancybox({
'width' : '20%',
'height' : '20%',
onStart : function() {
return window.confirm('Do you want to delete?');
},
onClosed : function() {
parent.location.reload(true);
}
});
});
</script>
<style type="text/css">
.ui-datepicker{
width:150px;
font-family:tahoma;
font-size:11px;
text-align:center;
}
</style>
<body>
<input type="text" name="dateInput1" id="dateInput1" value="<?php echo date('Y-m-d') ?>">
<a id="edit" class="various iframe" href="edit_outcome.php?Out_ID=<?=$objResult["Out_ID"];?>"><img src="img/edit.png" width="30" height="30"></a>
</body>
</html>
Tag : HTML/CSS, JavaScript
|
|
|
|
|
|
Date :
2013-05-21 11:26:06 |
By :
nongtoom |
View :
4195 |
Reply :
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
จัดไปครับ
|
|
|
|
|
Date :
2013-05-21 12:10:43 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
หนูเปลี่ยนตรงจาวา สคริป์ตัวที่สอง
Code (JavaScript)
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery('a[id^="edit"]').fancybox({
'width' : '50%',
'height' : '40%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe',
onClosed : function() {
parent.location.reload(true);
}
});
jQuery('a[id^="delete"]').fancybox({
'width' : '20%',
'height' : '20%',
onStart : function() {
return window.confirm('Do you want to delete?');
},
onClosed : function() {
parent.location.reload(true);
}
});
});
</script>
|
|
|
|
|
Date :
2013-05-26 00:39:49 |
By :
nongtoom |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 04
|