Wed 8 Mar 2006 11:23:20
เพจtest2.htmlจะเด้งขึ้นมาเป็นpopupทันที จะลบกวนสอบถามวิธีตัดแทบbarสีน้ำเงิน
ของpopupทิ้งไปให้ส่วนที่เป็นสีขาวของเนื้อเพจอย่างเดียวนะครับนะครับ
ขอบคุณมากครับ
รบกวนขอโค้ดบ้างนะครับ
Wed 8 Mar 2006 11:33:24
เพจtest2.htmlจะเด้งขึ้นมาเป็นpopupทันที จะลบกวนสอบถามวิธีตัดแทบbarสีน้ำเงิน
ของpopupทิ้งไปให้ส่วนที่เป็นสีขาวของเนื้อเพจอย่างเดียวนะครับนะครับ
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<form name="form1" method="post" action="">
<input name="Submit" type="submit" onClick="MM_openBrWindow('test2.html','','width=100,height=100,top=120,left=87')" value="POPUP">
</form>
</body>
test
</body>
</html>
รบกวนขอโค้ดบ้างนะครับ
Wed 8 Mar 2006 14:56:28
ขอบคุณมากครับ ผมลองเข้าไปดูแล้วเอาโค้ดมาลองทำดูก็ได้ แต่ติดตรงที่มันย่อpopupไม่ได้ พอที่จะย่อpopupตามขนาดที่เราต้องการได้ไหมครับ
รบกวนด้วยนะครับ
ขอบคุณมากครับ
var windowH=398 // high
เปลี่ยนค่าที่ส่วนนี้ครับ
Thu 9 Mar 2006 08:35:16
ผมลองแก้ตามที่บอกแล้วครับมะได้ครับมันยังเต็มหน้าจอเหมือนเดิมครับ รบกวนดูให้ทีครับ
<script>
// Amazing Frameless Popup Window - Version I
// (C) 2000 www.CodeLifter.com
// Free for all users, but leave in this header
// set the popup window width and height
var windowW=10 // wide
var windowH=10 // high
// set the screen position where the popup should appear
var windowX = 260 // from left
var windowY = 100 // from top
// set the url of the page to show in the popup
var urlPop = "http://www.google.co.th"
// set the title of the page
var title = "This Is A Frameless Popup Window"
// set this to true if the popup should close
// upon leaving the launching page; else, false
var autoclose = true
// ============================
// do not edit below this line
// ============================
s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false
function openFrameless(){
if (beIE){
NFW = window.open("","popFrameless","fullscreen,"+s) ---น่าจะเป็นตรงนี้รึเปล่าครับแก้ไม่ถูก
NFW.blur()
window.focus()
NFW.resizeTo(windowW,windowH)
NFW.moveTo(windowX,windowY)
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=auto>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
NFW.document.open();
NFW.document.write(frameString)
NFW.document.close()
} else {
NFW=window.open(urlPop,"popFrameless","scrollbars,"+s)
NFW.blur()
window.focus()
NFW.resizeTo(windowW,windowH)
NFW.moveTo(windowX,windowY)
}
NFW.focus()
if (autoclose){
window.onunload = function(){NFW.close()}
}
}
</script>
</head>
<body onload="top.window.focus()">
<a href="javascript
penFrameless()">click here</a>
</body>
รบกวนด้วยนะครับ
Fri 10 Mar 2006 09:15:51
รบกวนขอวิธีแก้ไขทีครับ ให้แบบกำหนดได้นะครับ
ขอบคุณมากครับ

















