12 Sept 2012

Alert Message Box ေလးမ်ားလုပ္နည္း


အားလုံးပဲ မဂၤလာပါခင္ဗ်ာ…

ဒီတစ္ခါေတာ႔ အသစ္အဆန္းေလးတစ္ခု ေတြ႔ရွိလုိ႔ ျပန္လည္ ေ၀မွ်ခ်င္ပါတယ္.

ဘာလဲဆုိေတာ႔ Alert Message Box ေလးေတြ လုပ္နည္းပါ.

ကုိယ္႔ဘေလာ႔ဂ္ (သုိ႔) ၀က္ဘ္ဆုိက္ထဲကုိ ၀င္လာတဲ႔ စာဖတ္သူကုိ Message Box ေလးနဲ႔ ၾကိဳဆုိတာပဲျဖစ္ေစ၊ သိေစခ်င္တဲ႔ ေၾကျငာခ်က္ေလးေတြကုိ Highlight လုပ္ျပတာပဲ ျဖစ္ေစျဖစ္ေစ၊ သတိေပးေၾကျငာခ်င္တာေလးေတြကုိ ေျပာျပခ်င္တာပဲ ျဖစ္ေစေပါ႔ အလုိရွိသလုိ အသုံးခ်ႏုိင္ပါတယ္.

Message Box ေလးေတြကုိ လုပ္နည္း အမ်ိဳးမ်ိဳးရွိတဲ႔ အထဲက အဆင္ေျပဆုံး နည္းလမ္းေလးကုိ ေရြးခ်ယ္ျပီး ျပန္လည္ေဆြးေႏြးထားျခင္းသာ ျဖစ္ပါတယ္.

ကဲ. စလုိက္ၾကရေအာင္လားဗ်ာ…

Alert Box with OK Button

အဲဒါေလးကုိ လုပ္ဖုိ႔အတြက္ Template ထဲကုိသြားပါ. Page Elements ကုိသြားပါ. ျပီးေတာ႔ Add a page Element လုပ္ျပီး HTML/Javascript ကုိေရြးပါ. ျပီးရင္ ေအာက္ပါ ကုဒ္ဒင္းေလးေတြကုိ ထည္႔ေပးလုိက္ပါ.


<script type="text/javascript">
alert('You are about to enter an extremely funny site. People who are prone to laughing fits ... Beware!')
</script>
<noscript>Enable javascript in your browser to view an important message.</noscript>


အနီေရာင္နဲ႔ ျပထားတာေလးေတြက ကုိယ္ေပၚေစခ်င္တဲ႔ Message ေလးေတြပါ. အျပာေရာင္ေလးနဲ႔ ျပထားတာေလးကေတာ႔ တကယ္လုိ႔မ်ား user က သူ႔ရဲ႔ Browser မွာ Javascript Functions ကုိ off လုပ္ထားခဲ႔ရင္ ျပန္ဖြင္႔ေအာင္ သတိေပးထားတာပါ.

ျမန္မာလုိ ေပၚေစခ်င္တယ္ဆုိရင္ေတာ႔ Zawgyi-One ကုိ ထည္႔ေၾကျငာေပးရပါမယ္. ဒီမွာ အစမ္းလုပ္ျပထားတာ ၾကည္႔ပါ.


<script type="text/javascript">
alert(<font face="Zawgyi-One">'ေဟ႔ေဟ႔. သတိထားေနာ္. ခင္ဗ်ား အခုသြားေနတာ ကုိရန္ေအာင္ရဲ႔ ဘေလာ႔ဂ္ဗ်. ဟတ္ဟတ္ဟတ္.'</font>)
</script>
<noscript>Enable javascript in your browser to view an important message.</noscript>

ဒါမ်ိဳးေလးေပၚလာမွာ ျဖစ္ပါတယ္.




Alert Box with Confirmation Button

ဒါကက်ေတာ႔ စာဖတ္သူကုိ ေရြးခ်ယ္ခြင္႔ေပးတာပါ. ဆက္သြားမလား. ဒါမွမဟုတ္ မဖတ္ေတာ႔ဘဲ ျပန္ထြက္မလားဆိုတာကုိ ေရြးခုိင္းတာေပါ႔.

ခုနကလုိပါပဲ. Template ထဲကုိသြားပါ. Page Elements ကုိသြားပါ. ျပီးေတာ႔ Add a page Element လုပ္ျပီး HTML/Javascript ကုိေရြးပါ. ျပီးရင္ ေအာက္ပါ ကုဒ္ဒင္းေလးေတြကုိ ထည္႔ေပးလုိက္ပါ.


<script type="text/javascript">
confirm('This site contains explicit blogger hacks and tircks. You might bet dizzy. Are you sure you want to continue?');
if (confirm('This site contains explicit blogger hacks and tricks. You might bet dizzy. Are you sure you want to continue?')) {
window.location = "http://mmbloggershelpdesk.blogspot.com/";
}
else {
window.location = "http://www.yanaung.blogspot.com/";
}
</script>


အနီေရာင္နဲ႔ ျပထားတာေလးေတြက သင္ေပၚေစခ်င္တဲ႔ စာေၾကာင္းေလးေတြ ျဖစ္ပါတယ္. အျပာေရာင္ေလးနဲ႔ ျပထားတာေလးကေတာ႔ OK Button ကုိ ႏွိပ္လုိက္ရင္ ေရာက္ရွိသြားမယ္႔ လင္႔ခ္ျဖစ္ပါတယ္. လိေမၼာ္ေရာင္ေလးနဲ႔ ျပထားတာကေတာ႔ Cancel Button ကုိ ႏွိပ္လုိက္ရင္ စာဖတ္သူကုိ ျပန္ျပီးေတာ႔ Redirect လုပ္ေပးမယ္႔ စာမ်က္ႏွာျဖစ္ပါတယ္.

ဒါကေတာ႔ ျမန္မာလုိ ဥပမာေပးထားတာပါ.


<script type="text/javascript">
confirm(<font face="Zawgyi-One">'ေဟ႔ေဟ႔. သတိထားေနာ္. ခင္ဗ်ား အခုသြားေနတာ ကုိရန္ေအာင္ရဲ႔ ဘေလာ႔ဂ္ဗ်. ဟတ္ဟတ္ဟတ္. OK ကုိ ႏွိပ္လုိက္ရင္ ကၽြန္ေတာ္႔ဘေလာ႔ဂ္ေလးကုိ ေရာက္လာမွာ ျဖစ္ျပီးေတာ႔ Cancel ကုိ ႏွိပ္လုိက္ရင္ေတာ႔ Helpdesk Blog ေလးကို ေရာက္သြားပါလိမ္႔မယ္. It’s up to you!'</font>);
if (confirm(<font face="Zawgyi-One">'ေဟ႔ေဟ႔. သတိထားေနာ္. ခင္ဗ်ား အခုသြားေနတာ ကုိရန္ေအာင္ရဲ႔ ဘေလာ႔ဂ္ဗ်. ဟတ္ဟတ္ဟတ္. OK ကုိ ႏွိပ္လုိက္ရင္ ကၽြန္ေတာ္႔ဘေလာ႔ဂ္ေလးီကုိ ေရာက္လာမွာ ျဖစ္ျပီးေတာ႔ Cancel ကုိ ႏွိပ္လုိက္ရင္ေတာ႔ Helpdesk Blog ေလးကို ေရာက္သြားပါလိမ္႔မယ္. It’s up to you!'</font>)) {
window.location = "http://yanaung.blogspot.com/";
}
else {
window.location = "http://mmbloggershelpdesk.blogspot.com/";
}
</script>


ဒီလုိေလး ျဖစ္သြားပါလိမ္႔မယ္...



ဒီေလာက္ပါပဲ…

သိပ္ေတာ႔ အခက္အခဲမရွိလွဘူးလုိ႔ ထင္ပါတယ္.

ကဲ. ေကာင္းက်ိဳးဆုိးက်ဳိးေလးေတြ ဆက္ေဆြးေႏြးၾကည္႔လုိက္ၾကရေအာင္လားဗ်ာ..

ဒီလုိ Message Box ေလးေတြ လုပ္ထားတာဟာ ကုိယ္႔ရဲ႔ ဘေလာ႔ဂ္ (၀ါ) ၀က္ဘ္ဆုိက္အတြက္ လိုအပ္မွသာ လုပ္သင္႔ပါတယ္. ဘာလုိ႔လဲဆုိေတာ႔ အဲဒီ႔ Message Box ေလးေတြဟာ System Dialog Windows ေလးေတြ ျဖစ္ေနလုိ႔ပါပဲ. ဆုိလုိတာက ဒီ Box ေလးေတြ ေပၚဖုိ႔အတြက္ Browser မွာ Javascript ကုိ Enable လုပ္ထားရပါမယ္. ဒီေတာ႔ ကုိယ္႔ရဲ႔ Blog Page (or) Web Page ကုိ Upload လုပ္ေနရတဲ႔ အခ်ိန္ ပုိၾကာသြားႏုိင္ပါတယ္.
ေကာင္းတဲ႔ဖက္က ၾကည႔္မယ္ဆုိရင္ေတာ႔လည္း စာဖတ္သူကုိ Respect ေပးရာက်ပါတယ္.

ဥပမာဗ်ာ. ညစ္ညမ္းတဲ႔ Website တစ္ခုကို ၀င္ေတာ႔မယ္ ဆုိရင္.

“You must be at least 18 years old to enter this site!” ဆုိတဲ႔ Message Box ေလး ေပၚလာျပီး OK ႏွိပ္လုိက္မွ ဆက္ျပီး ခြင္႔ျပဳတာမ်ိဳးဆုိရင္ Internet Law ကုိ လုိက္နာရာက်ပါတယ္.

ဒါက ဥပမာ ေျပာျပတာပါ. တစ္ျခား အသုံး၀င္ေအာင္ သုံးတတ္ရင္ သုံးလုိ႔ျဖစ္မယ္႔ ေနရာေတြ အမ်ားၾကီး ရွိပါေသးတယ္. ၾကိဳက္သလုိသုံးပါ. ဥာဏ္ရွိသလုိ သုံးပါ.

ကၽြန္ေတာ္တုိ႔ ဘေလာ႔ဂ္ေလာကမွာေတာ႔ ဘာစည္းမ်ဥ္းဥပေဒသမွ မရိွေသးပါဘူး. ဒါေပမယ္႔ ဒီ Message box ေလးေတြဟာ စာဖတ္သူရဲ႔ ဥာဏ္ကြန္႔ျမဴးႏုိင္မႈေပၚ မူတည္ျပီး အမ်ိဳးမ်ိဳး အဖုံဖုံ အသုံး၀င္လာႏုိင္တာမုိ႔ ကၽြန္ေတာ္ဖတ္မွတ္ခဲ႔ဖူးတာေလးကုိ ျပန္လည္ေ၀မွ်လုိက္ျခင္းသာ ျဖစ္ပါတယ္ ခင္ဗ်ာ…

မွတ္ခ်က္။

သုံးတဲ႔ Browser နဲ႔ Operating Systems (ME, XP, Vista) စတာေတြေပၚ မူတည္ျပီးေတာ႔ ေပၚလာမယ္႔ Message Box ေလးေတြရဲ႔ ပုံစံလည္း ကဲြျပားျခားနားႏုိင္ပါတယ္.

အားလုံးကုိ ခ်စ္ခင္ေလးစားလ်က္

ရန္ေအာင္

0 comments:

တင္ထားသမွ် ေခါင္းစဥ္မ်ား

2Step Verification (5) A+အေၾကာင္း (1) Activator (9) Adobe CS3 Master Collection (1) Adobe Premiere Pro CS6 အသံုးျပဳနည္ (1) Adobe Software (12) Android application (1987) Android Game (710) AndroidPhoneဆိုင္ရာ (4) Antivirus (1) Apowersoft ApowerEdit v1.4.7.22 Build 04042019 (1) AVAST! Cleanup Premium 2019 version 19.1 Build 7085 (1) Blog Slider (8) Blogger Button (5) Blogger Comment (17) Blogger Ebooks (1) Blogger Hack (54) Blogger Loading Style (6) Blogger Mouse (1) Blogger Template (44) Blogger Tips (77) Blogger Widget (152) Blogs Html (63) Blogs Post (86) Blogs Tab Menu (53) Blogဆိုင္ရာ (1) Bowser ဆိုင္ရာ (21) Brothers in Arms® 3 v1.4.7c Mod Data [Unlimited Money] (1) Buddha ျမန္မာစာတန္းထုိး (53) Burning Software (34) Burning Tools (47) C-Box (10) Canon LBP 6000 Original Driver (1) Canon LBP 6030 Original Driver & Installation Guide (1) CCleaner 5.56.7144 (Business / Professional / Technician) Multilingual Portable (1) CD/DVD ဆိုင္ရာမ်ား (30) Cleanner-Speed (68) Computer Autoplay ပိတ္ထားနည္း (1) Computer Partationခြဲနည္း (1) Computer ဆိုင္ရာ (189) Computerဆိုင္ရာ (33) Converter (73) Desing Card (10) Display အလုပ္မလုပ္ေသာ ျပႆနာေျဖရွင္းနညး္မ်ား (1) Domain (3) Download Manager (42) Drive SnapShot v1.46.0.18213 (1) Driver Software (46) DVD-Cloner Platinum 2019 v16.30 Build 1446 [x86/x64] (1) DVDFab v11.0.2.4 [x86/x64] (1) Easy Translator version 14.0.0 (1) Ebooks (405) Errorေျဖ႐ွင္းနည္း (1) Eset Smart Security 12.1.34.0 (x86/x64) (1) Facebook (152) Folder Lock (17) Fonts မ်ားစုစည္းမႈ (6) Foxit PhantomPDF (1) Game (47) Game PC (32) Glary Utilities PRO version 5.117.0.142 (1) Gmail-Gtalk (70) GoogleChome &InternetDownloadmananger (1) Hacking (81) How To Download (6) Html (51) Internet Download Manager (18) InternetDownloadmananger(IDM) (1) IP Hider Software (6) Java Script (11) KhineMaster (1) KMS/2038 & Digital & Online Activation Suite v6.9 (1) MAGIX SOUND FORGE Pro 13 v.13.0.0 Build 46 (1) Marquee Technique (14) Media Player (31) MI Play store Apk (1) Microsoft Office (21) Mobile Legends Bang Bang Installer .exe Pc Version (1) Motors ( ေမာ္တာမ်ား )အေၾကာင္း (1) Movie (95) My Pdf (35) Myanmar Font (9) Myanmar Typing Software (1) MZW Solftware (1) NetGuide Journal (63) Network Software (7) New Blogs (15) Notကာကြယ္ျခင္းနည္း (1) ONEKEY PDF Convert to Word 4.0 REPACK (1) Partition Software (7) Password Recovery Software (1) paypal နွင္ ့ဆိုင္ေသာ (5) PC GAMES (17) PC recovery (13) PC Software (203) PC Speed Up (32) PC-Clean Software (73) PDF (4) PDF Editor (10) Photo Editor Software (65) PHOTO SHOP (သင္တန္း)သီးသန္႔ (44) Photo Slideshow (12) photoshop background အလန္းမ်ား (6) photoshop PNG ဖိုင္မ်ားရွာရန္ (14) Photoshop Software (36) Photoshop ဆိ္ုင္ရာ (51) Player (8) PrinterDriver (2) Programming (16) Pyidaungsu font (1) Read More (9) Recent Posts Widget (23) Recover Software (46) Recovery (33) Refresh and Restoreအေၾကာင္း (1) Reset (1) SAMSUNG One UI ဖုန္းေတြအတြက္ ျမန္မာေဖာင့္ (1) Screen Video Recorder (37) Search Box (6) Security Software (36) Sidebar Widget (71) SkyNet လိုင္းအသစ္ထည့္နည္း (1) SkynetBinfile (1) Slideshow Movie Maker (7) Social Widget (19) SOFTWARE (588) Software For Blogs (17) Software မ်ားအသံုးျပဳနည္း (2) Softwares ေတြအတြက္ Serial no (or) Key ေတာင္းလၽွင္ ေျဖ႐ွင္းနည္း (1) Speed Up Internet (13) TeamViewer version 14.2.2558.0 (Repack & Portable) (1) TTA Pie Myanmar (1) Unicode ေ​ြေပာင်းနည်း (1) Uninstaller Software (25) Upload (6) USB ျဖင့္၀င္းဒိုးတင္နည္း (4) USB ႀကိဳးကေန Virus မဝင္ေအာင္ ႀကိဳတင္ ကာကြယ္နည္း (1) Usb-Memory (19) Video Converter (29) Video Editing (76) Video Editor (1) Video Recorder (12) Virus ဆိုင္ရာ (86) WannaCry Ransomware ၏ အႏၱရာယ္ အေၾကာင္းႏွင့္ ကာကြယ္နည္း (1) Web Design ေရးဆြဲနည္း (5) Webcam Camera Software (11) Website ေရးနည္း (3) Wifi ဆိုင္ရာ (32) Win Update v1.4 (1) Window-10 ဆိုင္ရာ (2) Window-7 ဆိုင္ရာ (32) Window-xp ဆုိင္ရာ (2) window8ဆိုင္ရာ (19) Windows 10 Factory Reset ခ်နည္း (1) Windows 10 Backup & Restore လုုပ္နည္း (1) Windows 10 ကြန္ပ်ဴတာမွာျမန္မာစာတိက်မွန္စြာထည့္နည္း (1) Windows Activator (18) windows loader မ်ား (10) Windows Manager Software (23) Windows Themes (24) Windows တင္နည္းမ်ား (6) WinRAR 5.70 (Fully) (1) WinRar Full Version (12) WinRAR V3.80 Beta Version (1) WinToBootic ႏွင့္ USB ထဲ Install လုပ္နည္း (7) WinUtilities Professional Edition Tool (1) Wordpress Tips (3) Write-Protected ကို ျဖဳတ္ႏိုင္မယ့္နည္းႏွစ္သြယ္ (1) Zawgyi နဲ႔ Unocode ဘာကြာလဲ (1) ကြန္ပ်ဴတာ User Account Picture အေၾကာင္းမ်ား (1) ကြန္ပ်ဴတာဆိုင္ရာ (1) ကြန္ပ်ဴတာပတ္၀ပ္ေျပာင္းမရေအာင္လုပ္နည္း (1) ကြန္ပ်ဴတာရဲ ့Storage က HDD လား? SSD လား? စစ္ေဆးနည္းမ်ား (1) ကြန္ပ်ဴတာဟန္းေနရင္ေျဖ႐ွင္းနည္း (1) ကြ်နုပ္ႏွင့္ ပရဟိတအလွဴ (9) ကာမသိဒၶိက်မ္း (1) ခ်က္နည္းျပဳတ္နည္း (1) နည္းပညာဆိုင္ရာ (2) နည္းလမ္းမ်ား (6) ပန္ကာျပဳျပင္နည္း (1) ဖိုင္ေျဖနည္းမ်ား (8) ဗဟုသုတ (6) ဗားရွင္းအသစ္ထြက္ရွိလာတဲ႔ Facebook (ႏွင္႔) Messenger (1) ဘာသာစကား ၉၁ မ်ိုးထိ ပါ၀င္တဲ့ Easy Translator (1) ဘာသာေရးစာအုပ္မ်ား (9) မိမိဆိုက္ကိုေကာ္ပီကူးမရေအာင္ ပိတ္ထားနည္း (1) ျပည္ေထာင္စု ေဖာင့္ လက္ကြက္ ႏွင့္ စာ႐ိုက္နည္း (1) ျမန္မာစာမွန္ေအာင္လုပ္နည္း (1) ျမန္မာဆိုတာ (1) ဝင္းဒုိးကုိ AOMEISoftware ျဖင္႔ Backup & Restore လုပ္နည္း (1) သင့္ Laptop ကို ျမန္ဆန္ေအာင္လုပ္ေပးမယ့္ အခ်က္ ၇ ခ်က (1) အင္တာဗ်ဴးအစီစဥ္ (2) အပ်ိဳလမ္းၫႊန္ (1) အသံဇာတ္လမ္း (19) အေျခခံကြန္ပ်ဴတာ Pdf (1) ဦးဇာနည္နည္းလမ္းမ်ား (7) ေဆာ့ဝဲ ျပႆနာေျဖ႐ွင္းနည္း (1) ေၾကာ္ျငာ (13) ေဟာေျပာပြဲ (15)

မန္ဘာ၀င္လို႕အားေပးၾကပါ