Myanmar IT Resource Forum
Myanmar IT Resource Forum
Myanmar IT Resource Forum

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

nay@zaw

nay@zaw
VIP Member



VIP Member
javascript အေၾကာင္းေလးပါ ။
javascript ဆိုတာ java မဟုတ္ပါဘူး ။ java က C,C++ တုိ႔လို language ေတြပါ ။
Javascipt က html ထည္းမွာထည့္ေပါင္းေရးတဲ့ web programming langauge ၿဖစ္ပါတယ္ ။ သူ႔ကို ေရးဖို႔ အတြက္ notepad နဲ႔ အသံုးၿပဳနိုင္ပါတယ္။
php တို႔လို server side language မဟုတ္ပါဘူး။
client side language အမ်ိဳးအစားပါ ။object oriented stripting language ၿဖစ္တဲ့ အတြက္ object ေတြနဲ႔ အသံုးၿပဳပါတယ္။



Last edited by nay@zaw on 26th October 2009, 10:26 pm; edited 2 times in total

nay@zaw

nay@zaw
VIP Member



VIP Member
Code:


<html>
<body>

<script type="text/javascript">
document.write("hello JavaScript!");
</script>

</body>
</html>




html ထည္းမွာ javascript ကိုထည့္ေရးသြားတာပါ ။
မေရးခင္မွာ script language သံုးတယ္ဆုိတာ ေၾကၿငာသြားေပးရတယ္ ။
ဒါေၾကာင့္ document.write ကေတာ့ output ကိုေၿပာထားတာပါ " " ထည္းမွာရွိတာက ၿမင္ေတြ႔ရမယ့္စာသားပါ ။ [You must be registered and logged in to see this image.] ဥပမာ hello javascript! ထည့္မည့္ အစား weclcome mmitsource လို႔ထည့္လည္းရပါတယ္ ေနာက္ဆံုးမွာ ;ထည့္ရမွာကိုေတာ့ ကိုေတာ့မေမ့နဲ႔ ေပါ့ ။ javascript ကိုသံုးၿပီး ဆိုၿပီး ၿပန္ပိတ္ေပးရပါတယ္ ။ ၿပီးရင္ Html ကိုၿပန္ဆက္ေရးလို႔ရပါတယ္ ။

nay@zaw

nay@zaw
VIP Member



VIP Member
Code:
<!--
document.write("  ");
//-->
တခ်ဳိ႕ old browser ေတြက Javascript ကို support မလုပ္ေတာ့ပါဘူး ။ အဲ့အခ်ိန္ၾကရင္ javascript ကpage ေပၚမွာေနပါလိမ့္မယ္ ဒါကို ကာကြယ္ဖို႔ အတြက္
HTML comment tag ၿဖစ္တဲ့ <!-- //--> ကို javascript ကိုၿမွူတ္ထားဖို႔ အသံုးၿပဳၾကပါတယ္ ။
-----------------------------------------------------------------------------------------------------


javascript ကို html ေပၚမွာ head မွာေကာ body မွာေကာပါ ေရးနိုင္ပါတယ္။
နွစ္ခုလံုးမွာတၿပိဳင္နက္ထည္းေရးနိုင္ပါတယ္ ။
ဘယ္ script ကုိအရင္လုပ္ေဆာင္မလည္းလို႔ ေမးစရာၿဖစ္လာပါလိမ့္မယ္ ။
head မွာေရးထားတဲ့ script ကိုပထမဆံုးလုပ္ေဆာင္မွာပါ ။။
ၿပီးမွာ body က script ကိုလုပ္ေဆာင္ပါလိမ့္မယ္ ။

nay@zaw

nay@zaw
VIP Member



VIP Member
Code:
<script type="text/javascript">
document.write("<h1>H1</h1>");
document.write("<p>P1.</p>");
document.write("<p>P2.</p>");
</script>

အားလံုး html ကိုနားလည္ၿပီးသားလို႔ ယူဆပါတယ္ ။ ဒါေၾကာင့္ အေပၚ က javascript ကိုနာလည္ ပါလိုက္မယ္ ။

ေနာက္တခုက

Code:
<script type="text/javascript">

{document.write("<h1>H1</h1>");

document.write("<p>P1.</p>");

document.write("<p>P2.</p>");}

</script>

ပါ ။
အဲ့နွစ္ခုပါဘာကြာ မလည္း ။ { } ပါတာနဲ႔ မပါတာ ပဲကြာပါလိမ့္မယ္ ။
ဘာပိုထူးၿခားသြားမလည္း ။ browser ရဲ့ အလုပ္လုပ္ပံုပါ ပဲ။ ပထမတခု ကို browser ကတေၾကာင္းခ်င္ ဘာသာၿပန္ ၿပီးလုပ္ေဆာင္သြားပါလိမ့္မယ္ ။ ဒုတိရတခု ကေတာ့ { } ထည္းမွာရွိတာေတြကို တခါ ထည္း တခ်ိန္ ထည္း ေပါင္းၿပီးလုပ္ေဆာင္သြားပါလိမ့္မယ္ ။

nay@zaw

nay@zaw
VIP Member



VIP Member
one line comments and multi comments

programming ေတြ မွာ မိမိေရးထားတဲ့ script ကိုသူမ်ားနာလည္ေအာင္ programmer က comments ေပးေလ့ရွိတယ္

// ကေတာ့ one line comments ပါ
ဥပမာ -
Code:
< script type = "text/javascript" >
// bla bla bla (ေရးခ်င္တာေရးနိုင္သည္ :P)

//bla bla bla ( ၾကံဳတုန္းေလး spam ဖြသြားအုန္းမယ္ )

</script>

ဒါကေတာ့
multi comments /* */

Code:
<script type="text/javascript">
/*
bla bla bla bla
bla bla bla bla bla ( ေရးခ်င္တာေရး :P )
*/
document.write(" ");
</script>

nay@zaw

nay@zaw
VIP Member



VIP Member
javascript နဲ႔ ေပါင္းနွူတ္ေၿမွာက္စား ။ လြယ္တယ္ ဒါေပမယ့္ ေရးလိုက္ပါမယ္ ။ အားလံုအိပ္ငိုက္ေတာ့မွာေတာ့ ေသခ်ာတယ္ ။

အေပါင္း အနွူတ္ အတြက္လိုအပ္တာေလးေတြ [You must be registered and logged in to see this image.]
Code:
+  = ေပါင္းခ်င္း
-  = ႏွုတ္ခ်င္း
*  = ေၿမွာက္ခ်င္း
/  = စားခ်င္း
% = အၾကြင္း
++= ၁ တိုး
-- =  ၁ ေလ်ာ့
==      = ညီမွ်ခ်င္
<      =  အနည္း သည္
>    = ပိုမ်ားသည္ ။
<=  =  နည္သည္ သို႔ မဟုတ္ ညီသည္
>=    =  မ်ားသည္ သို မဟုတ္  ညီသည္

nay@zaw

nay@zaw
VIP Member



VIP Member
အေပါင္းအနွူတ္ေတြ နဲ႔ ပါတ္သတ္ၿပိး က်ေနာ္ အလြယ္စား ဥပမာ ေလးကို ၿပမယ္ဗ် ။

Code:
<html>
<body>

<script type="text/javascript">
x=6+4;
document.write(x);
document.write("<br />");
x="6"+"4";
document.write(x);
document.write("<br />");
<p> the result will not the same </p>

</body>
</html>

result နွစ္ခု မတူပါဘူး ။ ဘာေၾကာင့္လည္းဆုိေတာ့ 6 နဲ 4 မွာပါတဲ့ " " ေလးေၾကာင့္ ပါ ။ ။
ပထမတခုရဲ့ result က 10 ေပမယ္ ။
ဒုတိရ တခုရဲ့ result က 64 ၿဖစ္ေနပါလိမ့္မယ္ ။

8basic basic javascript ေခၚ ECMAScript language Empty if else in javascript 24th October 2009, 8:06 pm

nay@zaw

nay@zaw
VIP Member



VIP Member
condition စစ္တာ javascript တင္မဟုတ္ ။ programming language တုိင္းမွာ မပါမၿဖစ္ပါ ရေသာ အစိတ္အပိုင္းတခု ၿဖစ္သည္ ။
if (condition ) <action1> , else <action2>
ေၿပာခ်င္တာကေတာ့ ဒီ condition မွာဆုိရင္ ဒါကိုလုပ္ ။ မဟုတ္ရင္ ေနာက္တခု လုပ္ဆုိတဲ့သေဘာကိုေၿပာခ်င္တာပါ ။

if ( mark >= 50 )
document.write("u pass the exam");
else
document.write ("u fail");

ဒီသေဘာမ်ိဳးပါပဲ ။ ( mark >= 50 ) ဆိုတာ codition ပါ ။ action ကေတာ့ u pass the exam ဆုိတဲ့ စာေၾကာင္းေလးေပၚလာတာကိုပါ ။
else ကေတာ့ အဲ့ condition သမဟုတ္ခဲ့ရင္
action2 ၿဖစ္တဲ့ u fail ဆုိတာကို ၿပမွာပါ ။ Smile

9basic basic javascript ေခၚ ECMAScript language Empty function 24th October 2009, 8:30 pm

nay@zaw

nay@zaw
VIP Member



VIP Member
programming laguage ေတြမွာ condition စစ္တာတုိ႔ ။ တြက္ခ်က္တုိ႔ ။ ခန ခနလုပ္ေဆာင္ရတဲ့ အလုပ္ပါလာတတ္တယ္ ။
တခါလာတုိင္ condition စစ္ ။ ဒုတိယ တေခါက္လည္း condition စစ္ဆုိရင္ programing code တခုကိုပဲ ခန ခန ေရးေနရလိမ့္မယ္ ။
အဲ့ေတာ့ အၿမဲတန္းလုပ္ေဆာင္တဲ့ ဟာေလးကိုသတ္သတ္ မွတ္မွတ္ function ဆုိတာေလးလုပ္ၿပီးထားထားလုိက္မွာပါ ။ လိုအပ္တဲ့ data ေတြ parameters အေနနဲ႔ ပို႔ေပးမွာ ။
တေခါက္ ၿပန္ေခၚတုိင္ fuction name ေလးကိုေခၚၿပီး paramerter နဲ႔ လိုအပ္တဲ့ value and date ေတြ လြဲပဲ လိုက္ယံုပါပဲ၊ value ေတြ data ေတြမပါရင္ parameter မွာလည္း value ထည့္စရာမလိုဘူး ။ [You must be registered and logged in to see this image.] ေဘာ္လံုးၿပစ္တုိင္း ကစားတာနဲ႔ တူပါတယ္ ။
fuction စသံုးေတာ့မယ္ ။
ပထမဆံုး fuction name ေပးဖို႔ အတြက္ function defining ကိုလုပ္ေပးရတယ္ ။
ၿပီးမွာ function ကိုေခၚသံုးရမွာပါ ။
ဒီလိုေလးပါ ။ ဒါ function တခုရဲ့ format လို႔ေၿပာရမွာေပါ့
Code:
functionName([parameters]){functionBody};
fuction defining ကိုစၿပမွာပါ ။
Code:

function welcome ()
{ document.write (" welcome to myanmaritsource");
}
အေပၚက ဥပမာမွာ parameter မပါဘူး ။
function calling ေခၚ ေနာက္ ယူသံုးခ်င္တဲ့အခ်ိန္မွာ
Code:

welcome()

nay@zaw

nay@zaw
VIP Member



VIP Member
javascript tutorial လုပ္ၿပရခက္ပါသည္ ။ code filtering ေတြ ရွိလို႔ code ေတြေၿပာက္ေၿပာက္သြားပါတယ္ Sad

nay@zaw

nay@zaw
VIP Member



VIP Member
paramerter နဲ႔ function ေလးၿပတာပါ

Code:
function add(a, b)
{                   
  return a+b;
}                   
alert(add(1,2));

nay@zaw

nay@zaw
VIP Member



VIP Member
ေနာက္တမ်ိဳး ေရးထားတာ ေလး

Code:
var add=function [b]theAdd[/b](a, b)
{                   
  return a+b;
}                   
alert(add(1,2));          // produces 3
alert([b]theAdd[/b](1,2));        // also produces 3
add ဆိုတဲ့ variable ကို theAdd ဆုိတဲ့ fuction နဲ႔ခ်ိတ္သံုးထားတဲ့ ဥပမာေလးပါ

nay@zaw

nay@zaw
VIP Member



VIP Member
object
oriented programming မွာ function ကို object ရဲ့ property အေနနဲ႔ အသံုးခ်လို႔ရပါတယ္ ။
[code]
var oop=new Object();[/color]

oop ဆိုတဲ့ object တခုကို ဖန္တီးလိုက္တာပါ
oop.add=function(a,b){return a+b};
// myObject now has a property/a method named "add"
// and I can use it like below
oop.add(1, 2);

oop ဆိုတဲ့ object တခုကို ဖန္တီးလိုက္တာပါ

nay@zaw

nay@zaw
VIP Member



VIP Member
အားတတ္စရာၾကီး ဘယ္သူမွ အားေပးတဲ့ပံုလည္းေပၚဘူး ။ က်ေနာ္ အေရးအသားညံ့တာလည္းပါတာေပါ့ Sad

kyizin

kyizin
MITR New User



nay@zaw wrote:အားတတ္စရာၾကီး ဘယ္သူမွ အားေပးတဲ့ပံုလည္းေပၚဘူး ။ က်ေနာ္ အေရးအသားညံ့တာလည္းပါတာေပါ့ [You must be registered and logged in to see this image.]

ေရးပါ အစ္ကို. ကၽြန္ေတာ္အားေပးေနပါတယ္ အစ္ကို။ ဘာမွေရးမသြားျဖစ္တာက အကုန္မဖတ္ရေသးလို႔ပါ [You must be registered and logged in to see this image.]
ေက်းဇူးျပဳလို႔ ဆက္ေရးပါလား အစ္ကို. အားေပးပါတယ္ အစ္ကို. ကၽြန္ေတာ္လည္း သိခ်င္ပါတယ္။

kyawmin

kyawmin
MITR Reader



MITR Reader
nay@zaw wrote:အားတတ္စရာၾကီး ဘယ္သူမွ အားေပးတဲ့ပံုလည္းေပၚဘူး ။ က်ေနာ္ အေရးအသားညံ့တာလည္းပါတာေပါ့ [You must be registered and logged in to see this image.]
ကြ်န္ေတာ္လဲ အားေပးတယ္ ကုိေနေဇာ္ ....ဆက္ေရးပါ ၊ ဘာမွ အားမငယ္နဲ႔ ၊ ၾကည္စင္လဲရွိတယ္ ။ ႏွစ္ေယာက္ရွိတယ္ ။

K0ht3t

K0ht3t
Moderator



Moderator
nay@zaw wrote:အားတတ္စရာၾကီး ဘယ္သူမွ အားေပးတဲ့ပံုလည္းေပၚဘူး ။ က်ေနာ္ အေရးအသားညံ့တာလည္းပါတာေပါ့ [You must be registered and logged in to see this image.]

အားမေပးတာ မဟုတ္ပါဘူး ကုိေနေဇာ္ရယ္ .. ကြ်န္ေတာ္ က ၾကိတ္သင္ေနတာ ။။ ဟီးဟီး .. ကုိေနေဇာ္ အရွိန္ေသသြားမွာစိုးလုိ႕ မေျပာတာပါဂ်ာ ။။။ ဆက္ေရးေနာ္ .. တကယ္ၾကီး အားေပးေနတာ ဗ်.. [You must be registered and logged in to see this image.]

sHa92

sHa92
Founder



Founder
ဟီး
က်ေနာ္လည္း ကိုထက္ လိုဘဲ ၊ ၾကိတ္ၿပီးသင္ေနတာ။
ေတာ္ၾကာ က်ေနာ္ Reply ၿပန္လိုက္ရင္ ၀င္ေရးခိုင္းေနမွာစိုးလုိ႔။ [You must be registered and logged in to see this image.]
အခုလည္း တစ္ခုေလာက္ ၀င္ေမးဦးမယ္။ တကယ္မသိလုိ႔ပါေနာ္။

Code:
function ဂတ္ကြတ္ကီး( name )
{
        var start = document.ကြတ္ကီး.indexOf( name + "=" );
        var len = start + name.length + 1;
        if ( ( !start ) && ( name != document.ကြတ္ကီး.substring( 0, name.length ) ) ) {
                return null;
        }
        if ( start == -1 ) return null;
        var end = document.ကြတ္ကီး.indexOf( ';', len );
        if ( end == -1 ) end = document.ကြတ္ကီး.length;
        return unescape( document.ကြတ္ကီး.substring( len, end ) );
}

ဘာလုပ္လုိ႔ရတယ္ဆုိတာပါေၿပာၿပၿပီး။ နမူနာေလးလည္းလုပ္ၿပပါေနာ္။

(ဟဲဟဲ Code နဲ႔ JS ေတြ တင္လုိ႔မရတာ အခု တင္လုိ႔ရသြားဘီ။ ဘာတတ္ႏိုင္ေသးလဲ ၿမန္မာေဖာင့္ ၾကားညွပ္ပလိုက္တယ္။ ဟီးဟီး Razz Razz Razz)

http://www.myanmaritresource.info

19basic basic javascript ေခၚ ECMAScript language Empty JAVASCRIPT INTRO 27th October 2009, 8:45 am

CrustyDi@per

CrustyDi@per
MITR Reader



MITR Reader
One of the recommended languages for beginning Web Developers.Before you learning about javascript,you should have a basic knowledge of the
following:
*HTML
*Text Editors
*Web Browsers

Javascript & Java are two different languages.Java is a full programming language that must be complied before a program can be exected.Java is
more powerful but also more complex.Javascript doesn't need a compiler and is more lenient in a number of areas,such as syntax .JavaScript does
have similarities to other programming and scripting languages.
JavaScript came about as a joint effort between Netscape Communications Corporation and Sun Microsystems,Inc.The news release of the new
language come on December 4,1995,back when NetScape Navigator 2.0 was still in its Beta version.JavaScript is an object-based,client-side scripting
language that you can use to make webpages more dynamic.Object-based means that JavaScript can use items called objects.Clientside means that
JavaScript runs in the client that the viewer is using.In this case,the client is web browser.A client side language is run directly through the client
being used by the viewer.JavaScript is run directly in the Web Browser and doesn't need to go through the extra step of sending and retrieving
information form the Web Server.
JavaScript can also be used to check the information entered into a form before the form is sent to a server-side program to be processed.This
information check can prevent strain on the web server by preventing submissions with in accurate or incomplete information.A scripting language
doesn't require a program to be compiled before it is run.All the interpretation is done on-the-fly by the client.


By Crusty Di@per (3Revolution)

http://ucsycyber.ning.com

sHa92

sHa92
Founder



Founder
ရိွၿပီးသား Topic ၿဖစ္လို႔ အစ္ကိုက Code နဲ႔ သင္တာမဟုတ္ဘဲ Java Script အေၾကာင္း Knowledge အေနနဲ႔ ေၿပာေပးတယ္ထင္လို႔ ၂ ခုကို ေပါင္းလိုက္ပါတယ္။

http://www.myanmaritresource.info

ET

ET
Moderator



Moderator
အားေပးေနပါတယ္
သင္ၾကားေရးအပိုင္းမွာ
ၾကားျဖတ္ပိုစ္ေတြပါ၇င္ ေလ့လာသူလည္း အခက္အခဲျဖစ္ေစတာေပါ့
အဲ့ဒါမို႕ မေျပာၾကတာပါ
ဘာပဲျဖစ္ျဖစ္ ဖတ္မွတ္ေလ့လာျပီးသြားရင္ ေက်းဇူးတင္စကားေလး ေျပာသြားေစခ်င္ပါတယ္

http://alinkarnya.blogspot.com/

nay@zaw

nay@zaw
VIP Member



VIP Member
$ƴǩǾ wrote:ဟီး
က်ေနာ္လည္း ကိုထက္ လိုဘဲ ၊ ၾကိတ္ၿပီးသင္ေနတာ။
ေတာ္ၾကာ က်ေနာ္ Reply ၿပန္လိုက္ရင္ ၀င္ေရးခိုင္းေနမွာစိုးလုိ႔။ [You must be registered and logged in to see this image.]
အခုလည္း တစ္ခုေလာက္ ၀င္ေမးဦးမယ္။ တကယ္မသိလုိ႔ပါေနာ္။

Code:
function ဂတ္ကြတ္ကီး( name )
{
        var start = document.ကြတ္ကီး.indexOf( name + "=" );
        var len = start + name.length + 1;
        if ( ( !start ) && ( name != document.ကြတ္ကီး.substring( 0, name.length ) ) ) {
                return null;
        }
        if ( start == -1 ) return null;
        var end = document.ကြတ္ကီး.indexOf( ';', len );
        if ( end == -1 ) end = document.ကြတ္ကီး.length;
        return unescape( document.ကြတ္ကီး.substring( len, end ) );
}

ဘာလုပ္လုိ႔ရတယ္ဆုိတာပါေၿပာၿပၿပီး။ နမူနာေလးလည္းလုပ္ၿပပါေနာ္။

(ဟဲဟဲ Code နဲ႔ JS ေတြ တင္လုိ႔မရတာ အခု တင္လုိ႔ရသြားဘီ။ ဘာတတ္ႏိုင္ေသးလဲ ၿမန္မာေဖာင့္ ၾကားညွပ္ပလိုက္တယ္။ ဟီးဟီး [You must be registered and logged in to see this image.])
ညီေမးထားတာ cookie ပိုင္းၿဖစ္ေနလို႔ တဆင့္ၿပီးမွ တဆင့္သြားမယ္ေနာ္ ။ type of cookie ေတြ cookie ေတြ အလုပ္လုပ္ပံုေတြ ကိုအရင္ၿပၿပီးမွ ညီ ၿပထားတဲ့ exam နဲ႔ေပါင္းတင္လုိက္ပါမယ္ Smile

sHa92

sHa92
Founder



Founder
nay@zaw wrote:
$ƴǩǾ wrote:ဟီး
က်ေနာ္လည္း ကိုထက္ လိုဘဲ ၊ ၾကိတ္ၿပီးသင္ေနတာ။
ေတာ္ၾကာ က်ေနာ္ Reply ၿပန္လိုက္ရင္ ၀င္ေရးခိုင္းေနမွာစိုးလုိ႔။ [You must be registered and logged in to see this image.]
အခုလည္း တစ္ခုေလာက္ ၀င္ေမးဦးမယ္။ တကယ္မသိလုိ႔ပါေနာ္။

Code:
function ဂတ္ကြတ္ကီး( name )
{
        var start = document.ကြတ္ကီး.indexOf( name + "=" );
        var len = start + name.length + 1;
        if ( ( !start ) && ( name != document.ကြတ္ကီး.substring( 0, name.length ) ) ) {
                return null;
        }
        if ( start == -1 ) return null;
        var end = document.ကြတ္ကီး.indexOf( ';', len );
        if ( end == -1 ) end = document.ကြတ္ကီး.length;
        return unescape( document.ကြတ္ကီး.substring( len, end ) );
}

ဘာလုပ္လုိ႔ရတယ္ဆုိတာပါေၿပာၿပၿပီး။ နမူနာေလးလည္းလုပ္ၿပပါေနာ္။

(ဟဲဟဲ Code နဲ႔ JS ေတြ တင္လုိ႔မရတာ အခု တင္လုိ႔ရသြားဘီ။ ဘာတတ္ႏိုင္ေသးလဲ ၿမန္မာေဖာင့္ ၾကားညွပ္ပလိုက္တယ္။ ဟီးဟီး [You must be registered and logged in to see this image.])
ညီေမးထားတာ cookie ပိုင္းၿဖစ္ေနလို႔ တဆင့္ၿပီးမွ တဆင့္သြားမယ္ေနာ္ ။ type of cookie ေတြ cookie ေတြ အလုပ္လုပ္ပံုေတြ ကိုအရင္ၿပၿပီးမွ ညီ ၿပထားတဲ့ exam နဲ႔ေပါင္းတင္လုိက္ပါမယ္ [You must be registered and logged in to see this image.]

ေအာ္ ဟုတ္ကဲ့
ဒါဆုိလည္း ကြတ္ကီး အေၾကာင္းရွင္းမွဘဲ လာနားေထာင္ေတာ့မယ္။ ေလာေလာဆယ္ေတာ့ တၿခားဟာေတြ ဆက္လုပ္လုိက္ဦးမယ္ဗ်ိဳ႕။

http://www.myanmaritresource.info

ogre

ogre
Moderator



Moderator
ဆက္ေရးေပးပါဗ်ာ တိုးလို ့ တန္းလန္း ျကီးက်န္ခဲ.လို ့။ Smile

http://www.myanmarhelper.co.cc

alt.332

alt.332
Administrator



Administrator
ကိုေနေဇာ္ေရ...ဆက္ေရးဦးေလ...တန္းလန္းႀကီးျဖစ္ေနလို႔... ( စာဖတ္ရတာေျပာပါတယ္ ) Very Happy အိမ္မွာ Eng လိုႀကီး ဖတ္ရတာ အေတာ့္ကိုတိုင္ပတ္ေနလို႔ Very Happy ဆက္ေရးေနာ္... Very Happy

http://www.myanmaritresource.info

nay@zaw

nay@zaw
VIP Member



VIP Member
ေဆာတီ ေနာ္ ။ က်ေနာ္ ခုတေလာ စာေမးပြဲ ရွိလု႔ိ မအားဘူးေၿပာရင္ ညာရာက်မယ္ ။ ပ်င္းလို႔ မေရးၿဖစ္တာက တေၾကာင္း self improvement အတြက္စာ ဖတ္ေနရတာကတေၾကာင္းေၾကာင့္မေရးၿဖစ္ၿဖစ္ေနပါတယ္ ။ ခုၿပန္ ဆက္သြားေပးမွာပါ ။

အားလံုး ပဲ ခြင့္လြတ္ေပးက်ပါ ။
----------------------------------------------------------
Code:

<html>
  <head>
      <script type="text/javascript">
        function myfunction()
        {
          alert("Welcome to my mmitresource!!");
        }
      </script>
    </head>

    <body>
        <form name="myform">
          <input type="button" value="click me" onclick="myfunction()">
        </form>
    </body>
</html>
ဒါက click me ဆိုတဲ့ button ကို သံုးတဲ့ myfuncition ဆိုတဲ့ function ကိုယူသံုးမွာၿဖစ္ပါတယ္ ။

tulip

tulip
MITR New User



အရမး္ေကာင္းပါတယ္..Advance ပါထပ္တင္ေပးပါလား
ဆက္ေရးေပးပါေနာ္. အခုမွစေလ့လာတဲ့သူဆုိေတာ့ နားလည္လည္းလြယ္တယ္
ေက်းဇူးတင္ပါတယ္

အားေပးေနမွာပါ.
စာထပ္ေမးခ်င္ရင္ ဘယ္လုိလုပ္ရမလဲမသိဘူးေနာ္.. Smile

sHa92

sHa92
Founder



Founder
စာေမးခ်င္ရင္ ဒီ Topic နဲ႔ ဆုိင္ရင္ေတာ့ ဒီ ေအာက္မွာဘဲ ဆက္ေမးေပါ့။
ေလာေလာဆယ္ေတာ့ ကို ေနေဇာ္ ဘုန္းၾကီး၀တ္ေနတယ္တဲ့။ ဘယ္ေတာ့ၿပန္လာမယ္ေတာ့ မသိ။ Very Happy

http://www.myanmaritresource.info

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum

 

Forumotion's free forums | ©phpBB | Free forum support | Report an abuse | Forumotion.com