 |
|
ผมสร้าง popup เมื่อกดแล้วจะเด้งหน้าขึ้นมามีข้อมูลอยู่ ใช้กับ chrome หรือ firefox ใช้งานได้ปกตินะครับ
แต่พอเปิดกับ ie ไม่สามารถเลื่อนลงมาได้
Code javascript popup
<script language="javascript">
function js_popup(theURL,width,height){
leftpos = (screen.availWidth - width)/2;
toppos = (screen.availHeight - height)/2;
window.open(theURL, "viewdetails","width=" + width + ",height=" + height + ",left=" + leftpos + ",top=" + toppos);
}
</script>
code ตอนเรียกใช้
onClick="js_popup('package/HD2.php',1000,600); return false;"
Tag : PHP, HTML/CSS, JavaScript
|
|
 |
 |
 |
 |
Date :
2016-10-20 10:17:09 |
By :
serpens |
View :
1119 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |