แนะนำ Alert ใช้งานง่ายๆ ครับ

เริ่มโดย dekmv, 23 มีนาคม 2015, 12:37:54

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

dekmv

AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
AlertifyJS not only provides a replacement for default browser dialogs, it makes it super easy to create your own!

http://alertifyjs.com/

if(!alertify.myAlert){
  //define a new dialog
  alertify.dialog('myAlert',function(){
    return{
      main:function(message){
        this.message = message;
      },
      setup:function(){
          return {
            buttons:[{text: "cool!", key:27/*Esc*/}],
            focus: { element:0 }
          };
      },
      prepare:function(){
        this.setContent(this.message);
      }
  }});
}
//launch it.
alertify.myAlert("Browser dialogs made easy!");


ลองเล่นดูนะครับ  :wanwan003: :wanwan003: :wanwan003:

i3ankboy

ขอบคุณครับ
เดียวนี้ javascript ทำอะไรได้หลายอย่างมาก
[direct=https://www.digitalocean.com/?refcode=09b50b2533d4]้VPS SSD Inter Linux เริ่มเดือนละ 150 บาท[/direct]

** HOSTING INTER (USA) SSD 5GB Unlimited Bandwidth 500 บาท/ปี ติดต่อ Line: i3ankboy

bcozudotcom

ลองรัน Example ดูน่าสนใจมากๆ เลยคับ
[direct=https://www.facebook.com/mtlfarm]MTL Farm - สมชายแมว[/direct]
[direct=https://www.toskysoft.com/]toSKYsoft[/direct]
[direct=https://www.kanexkane.com]KanexKane[/direct]

Jir4yu

ขอบคุณครับ

แวะมาแนะนำอีกตัวใช้งานได้ง่ายไม่แพ้กันครับ - https://limonte.github.io/sweetalert2/
ทำบุญ สถานที่ทำบุญ สายมู-สายธรรมะ - [direct=http://www.buacha.com/]วอลเปเปอร์สายมู[/direct] และบทความเกี่ยวกับพุทธศาสนา

dekmv

อ้างถึงจาก: Jir4yu ใน 23 มีนาคม 2015, 21:57:11
ขอบคุณครับ

แวะมาแนะนำอีกตัวใช้งานได้ง่ายไม่แพ้กันครับ - https://limonte.github.io/sweetalert2/

ลองเข้าไปเล่นดูแล้วครับ เจ๋งมากๆ

hahaoo