 |
|
สอบถามเรื่อง jquery หน่อยครับ ผมใช้ 2 อันนี้พร้อมกันไม่ได้
อันที่ 1
Code (PHP)
<link rel="stylesheet" href="jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css" />
<script>
$(function() {
$( "#accordion" ).accordion();
});
</script>
<script>
$(function(){
$("#dialog").dialog({
title: "ทดสอบการสร้าง dialog",
width: 350,
modal: true
});
});
</script>
อันที่ 2 Code (PHP)
<script type="text/javascript" src="fancybox/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="fancybox/.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="fancybox/fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="fancybox/fancybox-1.3.4.css" media="screen" />
<link rel="stylesheet" href="style/style.css" />
<script type="text/javascript">
$(document).ready(function() {
$('a[id^="new"]').fancybox({
'width' : '72%',
'height' : '25%',
'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);
}
});
ถ้าผมเดาไม่ผิด น่าจะผิดตรงเรียกใช้ หรือเปล่าครับ ช่วยแนะนำทีครับ เพิ่งศึกษา
ขอบคุณครับ
Tag : PHP, jQuery
|
|
 |
 |
 |
 |
Date :
2013-03-25 00:51:55 |
By :
oknaja |
View :
1119 |
Reply :
4 |
|
 |
 |
 |
 |
|
|
|
 |