Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > Community Zone > Forum > ต้องการให้มี ป๊อบอัพเวลาเปิดหน้าแรกเราจะทำอย่างไรดีค่ะ



 

ต้องการให้มี ป๊อบอัพเวลาเปิดหน้าแรกเราจะทำอย่างไรดีค่ะ

 



Topic : 043554



โพสกระทู้ ( 9 )
บทความ ( 0 )



สถานะออฟไลน์




ต้องการให้มี ป๊อบอัพเวลาเปิดหน้าแรกเราจะทำอย่างไรดีค่ะ
(เป็นโปรโมชั่นขายของในเว็บอะ)

ขอโค้ดด้วยนะค่ะ



Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2010-06-02 13:19:00 By : atom_wite View : 2241 Reply : 5
 

 

No. 1



โพสกระทู้ ( 77 )
บทความ ( 0 )



สถานะออฟไลน์


นำโค้ดนี้ไปไว้ในแท็ก <head>แล้วก็สร้างหน้าเว็บเพจตามชอบใจแล้วเซฟชื่อเป็น popup.html หรืออะไรก็แล้วแต่ แล้วก็เปลี่ยนโค้ดด้านล่างตามด้วย
<script language="JavaScript">
{
window.open("popup.html","winName","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=yes,width=400,height=220");

}
</script>






Date : 2010-06-02 14:32:40 By : arta_u
 


 

No. 2

Guest


ถ้าเป็น popup ก็ใช้ window.open ได้เลยครับ

http://www.javascript-coder.com/window-popup/javascript-window-open.phtml

ก็เอาไปใส่ไว้ใน <body onload="window.open('xxxxx.htm');"> อะไรแบบนี้ก็ได้ครับ ลองไปศึกษา ตามลิงค์ดูครับ มันจะมีวิธีเลือกแสดง ว่าจะให้แสดง status bar ,toolbar พวกนี้ครับ

ตัวอย่างครับ
Code
The code below opens a window with toolbar and status bar.
window.open ("http://www.javascript-coder.com",
"mywindow","status=1,toolbar=1");

The table shows the features and the string tokens you can use:
status The status bar at the bottom of the window.
toolbar The standard browser toolbar, with buttons such as Back and Forward.
location The Location entry field where you enter the URL.
menubar The menu bar of the window
directories The standard browser directory buttons, such as What's New and What's Cool
resizable Allow/Disallow the user to resize the window.
scrollbars Enable the scrollbars if the document is bigger than the window
height Specifies the height of the window in pixels. (example: height='350')
width Specifies the width of the window in pixels.

Date : 2010-06-02 14:33:45 By : AnimalMan
 

 

No. 3



โพสกระทู้ ( 230 )
บทความ ( 0 )



สถานะออฟไลน์


ใน DreamWerver ก็ทำได้ง่าย ๆ นะคับ
1. สร้างหน้าต่างที่ต้องการให้แสดง Popup ก่อน
2. หน้าต่างอันหลัก เลือกเมนูคำสั่ง window > behaviors > ตรงเครือ่งหมายบวกลบ เลือก open browser window
3. กำหนดส่วนต่าง ๆ ว่าจะมีขนาดเท่าไหร่ มีอะไรให้แสดงบ้าง เช่น แถบต่าง ๆ
4. เลือกไฟล์หน้าต่างอันเล็กที่อยากให้แสดง Popup


คงทำได้นะครับ..ไม่ยาก หรือหาหนังสือ DreamWeaver อ่านก็ได้มีสอนเยอะ ในเว็บก็คงมีนะครับ
Date : 2010-06-02 14:36:35 By : pukmtec
 


 

No. 4



โพสกระทู้ ( 9 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากนะค่ะ เดี่ยวจะลองทำตาม
Date : 2010-06-02 14:37:20 By : atom_wite
 


 

No. 5

Guest


ขอบคุณมากคะ ช่วยได้เยอะเลย
Date : 2010-09-06 21:33:07 By : มามิ
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ต้องการให้มี ป๊อบอัพเวลาเปิดหน้าแรกเราจะทำอย่างไรดีค่ะ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 03
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่