SlideShare una empresa de Scribd logo
1 de 28
Reacting
to a Virtual World

   By Jaime Christine Perez
 Introduction to Scripting Languages

         December 3, 2010
presented by Jaime Christine Perez
JavaScript
    •      JavaScript is THE scripting language of the Web.


    •      JavaScript is used in millions of Web pages to add
           functionality, validate forms, detect browsers, and much
           more.




•       JavaScript is the most popular scripting language on the
        internet, and works in all major browsers, such as
        Internet Explorer, Firefox, Chrome, Opera, and Safari.
What can JavaScript do?

     JavaScript gives HTML designers a programming tool

     JavaScript can put dynamic text into an HTML page

     JavaScript can react to events

     JavaScript can read and write HTML elements

     JavaScript can be used to validate data

     JavaScript can be used to detect the visitor's browser

     JavaScript can be used to create cookies
What are functions?
   Functions contains code that
   will be executed by an event or
   by a call to the function.
JavaScript Function
Example:   <html>
           <head>
           <script type="text/javascript">
           function displaymessage()
           {
           alert("Hello World!");
           }
           </script>
           </head>

           <body>
           <form>
           <input type="button" value="Click me!"
           onclick="displaymessage()" />
           </form>
           </body>
           </html>

Result:
An Alert Implemented
    Inside a Function
            <html>
Example:    <head>
            <script type="text/javascript">
            function show_alert()
            {
            alert("I only exist to annoy you");
            }
            </script>
            </head>
            <body>

            <input type="button" onclick="show_alert()"
            value="Show alert box" />

            </body>
            </html>



  Result:
Several Types of JavaScript Events




onLoad                              onClick
         onMouseOver   onMouseOut
What do the events do?

                 This creates an event when the user
    onLoad                 enters the page.

                This creates an event when the mouse is
  onMouseOver       passed over active text or image.

                This creates an event when the mouse is
  onMouseOut        taken off of an active text image.

                This creates an event when active text or
    onClick               images are clicked on.
onLoad example
Example:   This what you see at
           the end of a cookie
           </script>
           </head>

           <body onload="checkCookie()">
           </body>
           </html>




 Result:
onMouseOver example
Example:
<html>
<head>
<script type="text/javascript">
function writeText(txt)
{
document.getElementById("desc").innerHTML=txt;

                                                                          Result:
}
</script>
</head>

<body>
<img src="planets.gif" width="145" height="126"
alt="Planets" usemap="#planetmap" />

<map name="planetmap">
<area shape ="rect" coords ="0,0,82,126"
onMouseOver="writeText('The Sun and the gas giant planets like Jupiter
are by far the largest objects in our Solar System.')"
href ="sun.htm" target ="_blank" alt="Sun" />

<area shape ="circle" coords ="90,58,3"
onMouseOver="writeText('The planet Mercury is very difficult to study
from the Earth because it is always so close to the Sun.')"
href ="mercur.htm" target ="_blank" alt="Mercury" />

<area shape ="circle" coords ="124,58,8"
onMouseOver="writeText('Until the 1960s, Venus was often considered a
twin sister to the Earth because Venus is the nearest planet to us, and
because the two planets seem to share many characteristics.')"
href ="venus.htm" target ="_blank" alt="Venus" />
</map>                                                                              The Sun and the gas giant planets like Jupiter
<p id="desc"></p>                                                                   are by far the largest objects in our Solar
</body>
                                                                                    System.
</html>
onMouseOut example
Example:
<html>
<head>                                                                    Result:
<script type="text/javascript">
function writeText(txt)
{
document.getElementById("desc").innerHTML=txt;
}
</script>
</head>

<body>
<img src="planets.gif" width="145" height="126"
alt="Planets" usemap="#planetmap" />

<map name="planetmap">
<area shape ="rect" coords ="0,0,82,126"
onMouseOver="writeText('The Sun and the gas giant planets like Jupiter
                                                                                    The Sun and the gas giant planets like Jupiter
are by far the largest objects in our Solar System.')"                              are by far the largest objects in our Solar
href ="sun.htm" target ="_blank" alt="Sun" />
                                                                                    System.
<area shape ="circle" coords ="90,58,3"
onMouseOver="writeText('The planet Mercury is very difficult to study
from the Earth because it is always so close to the Sun.')"
href ="mercur.htm" target ="_blank" alt="Mercury" />

<area shape ="circle" coords ="124,58,8"
onMouseOver="writeText('Until the 1960s, Venus was often considered a
twin sister to the Earth because Venus is the nearest planet to us, and
because the two planets seem to share many characteristics.')"
href ="venus.htm" target ="_blank" alt="Venus" />
</map>
                                                                                    The planet Mercury is very difficult to study
<p id="desc"></p>                                                                   from the Earth because it is always so close to
</body>                                                                             the Sun.
</html>
onClick example
           <html>
Example:   <head>
           <script type="text/javascript">
           function displaymessage()
           {
           alert("Hello World!");
           }
           </script>
           </head>

           <body>
           <form>
           <input type="button" value="Click me!" onclick="displaymessage()" />
           </form>

           <p>By pressing the button above, a function will be called. The function will alert a
           message.</p>

           </body>
           </html>



Result:
How can an onLoad event be used
     in Internet Marketing?
     To get the customer to take action.
        You might want them to buy
                  something,
       or sign up for your newsletter!
         To communicate and build a
       relationship with the customer.
How can an onMouseOver event be
  used in Internet Marketing?

          To create tool tips, or to
         add additional information
        about a product or service.
How can an onMouseOut event be
  used in Internet Marketing?

    To bring the customer back
       to the first selection.
     To create interactivity for
              the user.
How can an onClick event be used
     in Internet Marketing?

           To send the customer an alert
                       message.
           To let the customer know, that
                   they have made
            a purchase, signed up, or offer
                  additional savings!
What is Camel Case?
        Camel Case is the use of upper-case letters
        for each first letter of every word within a URL.




        Example (standard URL):
        www.jaimechristineperez.com

        Example (Camel Case):
        www.JaimeChristinePerez.com
File Naming Conventions


       NAME




                          Online Training Library® » Adobe » Dreamweaver CS4 Essential Training » File naming
•   Lynda video (lynda.com »
                          conventions)
Are Java and JavaScript the same?




          JavaScript
                 JScript
  NO!
  Java and JavaScript are two completely different languages in both concept and design!

  Java (developed by Sun Microsystems) is a powerful and much more complex
  programming language.
JavaScript
Jscript and ECMA Script

      How does JavaScript differ
    from Jscript and ECMA Script?
JavaScript
•   Netscape originally developed a
    scripting language for use in its
    browsers, calling it LiveScript.


•   Java being an internet buzzword at
    that time, for marketing reasons they
    renamed the scripting language to
    JavaScript.


•   Brendan Eich (born 1961) is the
    creator of the JavaScript
    programming language.


•   Now he is the Chief Technology
    Officer at the Mozilla Corporation.
JScript
• Microsoft
 implemented its
 own version of
 JavaScript and
 called it JScript.
ECMAScript
•   Netscape, Microsoft and others started
    standardizing the scripting language, using the
    ECMA standardizing organization for that.


•   Thus the language standard is now called ECMA
    Script.


•   ECMA standard is only about the core language,
    with data and objects like numbers, strings,
    booleans, Object, Array, Function, Date, Math, but
    NOT about application specific objects like browser
    specific objects (document, window, links, images
    etc).


•   ECMA International
    (http://www.ecma-international.org/)
ECMAScript
The Real Name is ECMAScript
      •    JavaScript's official name is ECMAScript.


      •    ECMAScript is developed and maintained by the ECMA
           organization. 


      •    ECMA-262 is the official JavaScript standard.


          The language was invented and has appeared in all
  1996    Netscape and Microsoft browsers.

  1996    The development of ECMA-262 started.

          The first edition of was adopted by the ECMA General
  1997    Assembly in June 1997.
          The standard was approved as an international ISO
  1998    (ISO/IEC 16262) standard.                              ECMA International
                                                                 (http://www.ecma-international.org/)
The development of the standard is still in progress.
Resources
•   http://getjins.wordpress.com/2008/09/15/javascript-vs-jscript-vs- ecmascript/


•   http://www.pavan.org/images/javaScriptIcon.gif


•   http://weblogs.java.net/blog/campbell/archive/images/orangebox.png


•   http://fforw.de/ffjs/image/logo.png


•   http://www.onlinereadingcorner.com/wp-content/uploads/2010/07/right-web-dev.jpg


•   http://www.ecma-international.org/images/logo_printerf.jpg


•   http://www.worldphoto360.com/wp-content/uploads/2010/08/web-browsers.jpg


•   http://www.seedol.com/wp-content/uploads/2010/09/Internet-Marketing-Services.jpg




                                                                                       (continue....)
Resources
                                                                                                       (continued....)

•   http://www.bloghighlight.com/wp-content/uploads/wordpress-seo/unique-wordpress-seo.jpg


•   http://www.icondrawer.com/img/PF_crittersims_icon.jpg


•   http://jeffbradfield.ca/images/seo-web-design-tools.jpg


•   http://usabilityfriction.com/wp-content/uploads/2010/03/alertbox.png


•   http://www.w3schools.com/js/js_functions.asp


•   http://www.buildwebsite4u.com/advanced/javascript-examples.shtml


•   http://www.htmlgoodies.com/beyond/javascript/article.php/3470771/Advanced-JavaScript-for-Web-Developers-onClick-and-
    onMouseOver.htm


•   (lynda.com »Online Training Library® » Adobe » Dreamweaver CS4 Essential Training » File naming conventions)
The End

Más contenido relacionado

La actualidad más candente

DHTML - Events & Buttons
DHTML - Events  & ButtonsDHTML - Events  & Buttons
DHTML - Events & ButtonsDeep Patel
 
Introduction to Jquery
Introduction to JqueryIntroduction to Jquery
Introduction to JqueryAmzad Hossain
 
How to make Ajax work for you
How to make Ajax work for youHow to make Ajax work for you
How to make Ajax work for youSimon Willison
 
JavaScript and jQuery Basics
JavaScript and jQuery BasicsJavaScript and jQuery Basics
JavaScript and jQuery BasicsKaloyan Kosev
 
A single language for backend and frontend from AngularJS to cloud with Clau...
A single language for backend and frontend  from AngularJS to cloud with Clau...A single language for backend and frontend  from AngularJS to cloud with Clau...
A single language for backend and frontend from AngularJS to cloud with Clau...Walter Dal Mut
 
JavaScript - Chapter 11 - Events
 JavaScript - Chapter 11 - Events  JavaScript - Chapter 11 - Events
JavaScript - Chapter 11 - Events WebStackAcademy
 
jQuery: Nuts, Bolts and Bling
jQuery: Nuts, Bolts and BlingjQuery: Nuts, Bolts and Bling
jQuery: Nuts, Bolts and BlingDoug Neiner
 
Jquery Best Practices
Jquery Best PracticesJquery Best Practices
Jquery Best Practicesbrinsknaps
 
JavaScript & Dom Manipulation
JavaScript & Dom ManipulationJavaScript & Dom Manipulation
JavaScript & Dom ManipulationMohammed Arif
 

La actualidad más candente (18)

DHTML - Events & Buttons
DHTML - Events  & ButtonsDHTML - Events  & Buttons
DHTML - Events & Buttons
 
Introduction to Jquery
Introduction to JqueryIntroduction to Jquery
Introduction to Jquery
 
JavaScript
JavaScriptJavaScript
JavaScript
 
How to make Ajax work for you
How to make Ajax work for youHow to make Ajax work for you
How to make Ajax work for you
 
Javascript and DOM
Javascript and DOMJavascript and DOM
Javascript and DOM
 
JavaScript and jQuery Basics
JavaScript and jQuery BasicsJavaScript and jQuery Basics
JavaScript and jQuery Basics
 
A single language for backend and frontend from AngularJS to cloud with Clau...
A single language for backend and frontend  from AngularJS to cloud with Clau...A single language for backend and frontend  from AngularJS to cloud with Clau...
A single language for backend and frontend from AngularJS to cloud with Clau...
 
jQuery
jQueryjQuery
jQuery
 
jQuery Introduction
jQuery IntroductionjQuery Introduction
jQuery Introduction
 
Client Web
Client WebClient Web
Client Web
 
JavaScript - Chapter 11 - Events
 JavaScript - Chapter 11 - Events  JavaScript - Chapter 11 - Events
JavaScript - Chapter 11 - Events
 
jQuery: Nuts, Bolts and Bling
jQuery: Nuts, Bolts and BlingjQuery: Nuts, Bolts and Bling
jQuery: Nuts, Bolts and Bling
 
Fundamental JQuery
Fundamental JQueryFundamental JQuery
Fundamental JQuery
 
Jquery beltranhomewrok
Jquery beltranhomewrokJquery beltranhomewrok
Jquery beltranhomewrok
 
Jquery Best Practices
Jquery Best PracticesJquery Best Practices
Jquery Best Practices
 
JavaScript & Dom Manipulation
JavaScript & Dom ManipulationJavaScript & Dom Manipulation
JavaScript & Dom Manipulation
 
22 j query1
22 j query122 j query1
22 j query1
 
jQuery
jQueryjQuery
jQuery
 

Destacado

Open letter to ARNECC
Open letter to ARNECCOpen letter to ARNECC
Open letter to ARNECCDavid Maher
 
Inliniedreapta.net arabii din-palestina__v_arabii_israelieni
Inliniedreapta.net arabii din-palestina__v_arabii_israelieniInliniedreapta.net arabii din-palestina__v_arabii_israelieni
Inliniedreapta.net arabii din-palestina__v_arabii_israelieniÎnLinieDreaptă
 
HouseJoy_Twitter_strategy_v1
HouseJoy_Twitter_strategy_v1HouseJoy_Twitter_strategy_v1
HouseJoy_Twitter_strategy_v1Tayub R
 

Destacado (6)

Open letter to ARNECC
Open letter to ARNECCOpen letter to ARNECC
Open letter to ARNECC
 
E mag
E magE mag
E mag
 
MY CV (1)
MY CV (1)MY CV (1)
MY CV (1)
 
краматорск
краматорсккраматорск
краматорск
 
Inliniedreapta.net arabii din-palestina__v_arabii_israelieni
Inliniedreapta.net arabii din-palestina__v_arabii_israelieniInliniedreapta.net arabii din-palestina__v_arabii_israelieni
Inliniedreapta.net arabii din-palestina__v_arabii_israelieni
 
HouseJoy_Twitter_strategy_v1
HouseJoy_Twitter_strategy_v1HouseJoy_Twitter_strategy_v1
HouseJoy_Twitter_strategy_v1
 

Similar a Reacting to a Virtual World (20)

JavaScript
JavaScriptJavaScript
JavaScript
 
JavaScript with Syntax & Implementation
JavaScript with Syntax & ImplementationJavaScript with Syntax & Implementation
JavaScript with Syntax & Implementation
 
Intro to JavaScript
Intro to JavaScriptIntro to JavaScript
Intro to JavaScript
 
Client side scripting using Javascript
Client side scripting using JavascriptClient side scripting using Javascript
Client side scripting using Javascript
 
Java scipt
Java sciptJava scipt
Java scipt
 
eXo SEA - JavaScript Introduction Training
eXo SEA - JavaScript Introduction TrainingeXo SEA - JavaScript Introduction Training
eXo SEA - JavaScript Introduction Training
 
jQuery
jQueryjQuery
jQuery
 
Building high performance web apps.
Building high performance web apps.Building high performance web apps.
Building high performance web apps.
 
JS basics
JS basicsJS basics
JS basics
 
Scripting The Dom
Scripting The DomScripting The Dom
Scripting The Dom
 
Java script
Java scriptJava script
Java script
 
Introduction to java script
Introduction to java scriptIntroduction to java script
Introduction to java script
 
Intro to JavaScript
Intro to JavaScriptIntro to JavaScript
Intro to JavaScript
 
Wt unit 2 ppts client sied technology
Wt unit 2 ppts client sied technologyWt unit 2 ppts client sied technology
Wt unit 2 ppts client sied technology
 
Wt unit 2 ppts client side technology
Wt unit 2 ppts client side technologyWt unit 2 ppts client side technology
Wt unit 2 ppts client side technology
 
JAVA SCRIPT
JAVA SCRIPTJAVA SCRIPT
JAVA SCRIPT
 
An introduction to DOM , JAVASCRIPT , JQUERY, AJAX and JSON
An introduction to DOM , JAVASCRIPT , JQUERY, AJAX and JSONAn introduction to DOM , JAVASCRIPT , JQUERY, AJAX and JSON
An introduction to DOM , JAVASCRIPT , JQUERY, AJAX and JSON
 
jQuery Presentation - Refresh Events
jQuery Presentation - Refresh EventsjQuery Presentation - Refresh Events
jQuery Presentation - Refresh Events
 
Eugene Andruszczenko: jQuery
Eugene Andruszczenko: jQueryEugene Andruszczenko: jQuery
Eugene Andruszczenko: jQuery
 
Basics java scripts
Basics java scriptsBasics java scripts
Basics java scripts
 

Más de Jaime Christine Perez (20)

Marketing Plan
Marketing PlanMarketing Plan
Marketing Plan
 
Brand Story
Brand StoryBrand Story
Brand Story
 
Main Street Flyer Redesign
Main Street Flyer RedesignMain Street Flyer Redesign
Main Street Flyer Redesign
 
Home Page Analysis
Home Page AnalysisHome Page Analysis
Home Page Analysis
 
Usability Testing
Usability TestingUsability Testing
Usability Testing
 
Copyrights
CopyrightsCopyrights
Copyrights
 
FREE
FREE FREE
FREE
 
The Dream
The DreamThe Dream
The Dream
 
Piet Mondrian
Piet MondrianPiet Mondrian
Piet Mondrian
 
Facebook Marketing Plan
Facebook Marketing PlanFacebook Marketing Plan
Facebook Marketing Plan
 
e Business Plan
e Business Plane Business Plan
e Business Plan
 
13 signs...Has Your Horoscope Changed?
13 signs...Has Your Horoscope Changed?13 signs...Has Your Horoscope Changed?
13 signs...Has Your Horoscope Changed?
 
Target Market: Peru
Target Market: PeruTarget Market: Peru
Target Market: Peru
 
Terms and Conditions
Terms and ConditionsTerms and Conditions
Terms and Conditions
 
Banner Ad Proposal
Banner Ad ProposalBanner Ad Proposal
Banner Ad Proposal
 
Patent Search
Patent SearchPatent Search
Patent Search
 
The CAN SPAM Act
The CAN SPAM ActThe CAN SPAM Act
The CAN SPAM Act
 
Trademark Search
Trademark SearchTrademark Search
Trademark Search
 
Social Media Optimization Marketing Plan
Social Media Optimization Marketing Plan Social Media Optimization Marketing Plan
Social Media Optimization Marketing Plan
 
Marketing Research Implantation Plan
Marketing Research Implantation PlanMarketing Research Implantation Plan
Marketing Research Implantation Plan
 

Último

(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一Fi sss
 
How to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIHow to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIyuj
 
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubai
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services DubaiDubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubai
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubaikojalkojal131
 
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts ServiceCall Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Servicejennyeacort
 
Create Web Pages by programming of your chice.pdf
Create Web Pages by programming of your chice.pdfCreate Web Pages by programming of your chice.pdf
Create Web Pages by programming of your chice.pdfworkingdev2003
 
Pearl Disrtrict urban analyusis study pptx
Pearl Disrtrict urban analyusis study pptxPearl Disrtrict urban analyusis study pptx
Pearl Disrtrict urban analyusis study pptxDanielTamiru4
 
办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一
办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一
办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一diploma 1
 
澳洲UQ学位证,昆士兰大学毕业证书1:1制作
澳洲UQ学位证,昆士兰大学毕业证书1:1制作澳洲UQ学位证,昆士兰大学毕业证书1:1制作
澳洲UQ学位证,昆士兰大学毕业证书1:1制作aecnsnzk
 
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,Aginakm1
 
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
Unveiling the Future: Columbus, Ohio Condominiums Through the Lens of 3D Arch...
Unveiling the Future: Columbus, Ohio Condominiums Through the Lens of 3D Arch...Unveiling the Future: Columbus, Ohio Condominiums Through the Lens of 3D Arch...
Unveiling the Future: Columbus, Ohio Condominiums Through the Lens of 3D Arch...Yantram Animation Studio Corporation
 
group_15_empirya_p1projectIndustrial.pdf
group_15_empirya_p1projectIndustrial.pdfgroup_15_empirya_p1projectIndustrial.pdf
group_15_empirya_p1projectIndustrial.pdfneelspinoy
 
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
Pharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfPharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfAayushChavan5
 
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一z xss
 
Design and Managing Service in the field of tourism and hospitality industry
Design and Managing Service in the field of tourism and hospitality industryDesign and Managing Service in the field of tourism and hospitality industry
Design and Managing Service in the field of tourism and hospitality industryrioverosanniejoy
 
FiveHypotheses_UIDMasterclass_18April2024.pdf
FiveHypotheses_UIDMasterclass_18April2024.pdfFiveHypotheses_UIDMasterclass_18April2024.pdf
FiveHypotheses_UIDMasterclass_18April2024.pdfShivakumar Viswanathan
 
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...Rishabh Aryan
 
Design principles on typography in design
Design principles on typography in designDesign principles on typography in design
Design principles on typography in designnooreen17
 
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degreeyuu sss
 

Último (20)

(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
 
How to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIHow to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AI
 
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubai
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services DubaiDubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubai
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubai
 
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts ServiceCall Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
 
Create Web Pages by programming of your chice.pdf
Create Web Pages by programming of your chice.pdfCreate Web Pages by programming of your chice.pdf
Create Web Pages by programming of your chice.pdf
 
Pearl Disrtrict urban analyusis study pptx
Pearl Disrtrict urban analyusis study pptxPearl Disrtrict urban analyusis study pptx
Pearl Disrtrict urban analyusis study pptx
 
办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一
办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一
办理(麻省罗威尔毕业证书)美国麻省大学罗威尔校区毕业证成绩单原版一比一
 
澳洲UQ学位证,昆士兰大学毕业证书1:1制作
澳洲UQ学位证,昆士兰大学毕业证书1:1制作澳洲UQ学位证,昆士兰大学毕业证书1:1制作
澳洲UQ学位证,昆士兰大学毕业证书1:1制作
 
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,
 
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
 
Unveiling the Future: Columbus, Ohio Condominiums Through the Lens of 3D Arch...
Unveiling the Future: Columbus, Ohio Condominiums Through the Lens of 3D Arch...Unveiling the Future: Columbus, Ohio Condominiums Through the Lens of 3D Arch...
Unveiling the Future: Columbus, Ohio Condominiums Through the Lens of 3D Arch...
 
group_15_empirya_p1projectIndustrial.pdf
group_15_empirya_p1projectIndustrial.pdfgroup_15_empirya_p1projectIndustrial.pdf
group_15_empirya_p1projectIndustrial.pdf
 
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
原版美国亚利桑那州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
Pharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfPharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdf
 
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
 
Design and Managing Service in the field of tourism and hospitality industry
Design and Managing Service in the field of tourism and hospitality industryDesign and Managing Service in the field of tourism and hospitality industry
Design and Managing Service in the field of tourism and hospitality industry
 
FiveHypotheses_UIDMasterclass_18April2024.pdf
FiveHypotheses_UIDMasterclass_18April2024.pdfFiveHypotheses_UIDMasterclass_18April2024.pdf
FiveHypotheses_UIDMasterclass_18April2024.pdf
 
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
 
Design principles on typography in design
Design principles on typography in designDesign principles on typography in design
Design principles on typography in design
 
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
 

Reacting to a Virtual World

  • 1. Reacting to a Virtual World By Jaime Christine Perez Introduction to Scripting Languages December 3, 2010
  • 2. presented by Jaime Christine Perez
  • 3. JavaScript • JavaScript is THE scripting language of the Web. • JavaScript is used in millions of Web pages to add functionality, validate forms, detect browsers, and much more. • JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Firefox, Chrome, Opera, and Safari.
  • 4. What can JavaScript do? JavaScript gives HTML designers a programming tool JavaScript can put dynamic text into an HTML page JavaScript can react to events JavaScript can read and write HTML elements JavaScript can be used to validate data JavaScript can be used to detect the visitor's browser JavaScript can be used to create cookies
  • 5. What are functions? Functions contains code that will be executed by an event or by a call to the function.
  • 6. JavaScript Function Example: <html> <head> <script type="text/javascript"> function displaymessage() { alert("Hello World!"); } </script> </head> <body> <form> <input type="button" value="Click me!" onclick="displaymessage()" /> </form> </body> </html> Result:
  • 7. An Alert Implemented Inside a Function <html> Example: <head> <script type="text/javascript"> function show_alert() { alert("I only exist to annoy you"); } </script> </head> <body> <input type="button" onclick="show_alert()" value="Show alert box" /> </body> </html> Result:
  • 8. Several Types of JavaScript Events onLoad onClick onMouseOver onMouseOut
  • 9. What do the events do? This creates an event when the user onLoad enters the page. This creates an event when the mouse is onMouseOver passed over active text or image. This creates an event when the mouse is onMouseOut taken off of an active text image. This creates an event when active text or onClick images are clicked on.
  • 10. onLoad example Example: This what you see at the end of a cookie </script> </head> <body onload="checkCookie()"> </body> </html> Result:
  • 11. onMouseOver example Example: <html> <head> <script type="text/javascript"> function writeText(txt) { document.getElementById("desc").innerHTML=txt; Result: } </script> </head> <body> <img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap" /> <map name="planetmap"> <area shape ="rect" coords ="0,0,82,126" onMouseOver="writeText('The Sun and the gas giant planets like Jupiter are by far the largest objects in our Solar System.')" href ="sun.htm" target ="_blank" alt="Sun" /> <area shape ="circle" coords ="90,58,3" onMouseOver="writeText('The planet Mercury is very difficult to study from the Earth because it is always so close to the Sun.')" href ="mercur.htm" target ="_blank" alt="Mercury" /> <area shape ="circle" coords ="124,58,8" onMouseOver="writeText('Until the 1960s, Venus was often considered a twin sister to the Earth because Venus is the nearest planet to us, and because the two planets seem to share many characteristics.')" href ="venus.htm" target ="_blank" alt="Venus" /> </map> The Sun and the gas giant planets like Jupiter <p id="desc"></p> are by far the largest objects in our Solar </body> System. </html>
  • 12. onMouseOut example Example: <html> <head> Result: <script type="text/javascript"> function writeText(txt) { document.getElementById("desc").innerHTML=txt; } </script> </head> <body> <img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap" /> <map name="planetmap"> <area shape ="rect" coords ="0,0,82,126" onMouseOver="writeText('The Sun and the gas giant planets like Jupiter The Sun and the gas giant planets like Jupiter are by far the largest objects in our Solar System.')" are by far the largest objects in our Solar href ="sun.htm" target ="_blank" alt="Sun" /> System. <area shape ="circle" coords ="90,58,3" onMouseOver="writeText('The planet Mercury is very difficult to study from the Earth because it is always so close to the Sun.')" href ="mercur.htm" target ="_blank" alt="Mercury" /> <area shape ="circle" coords ="124,58,8" onMouseOver="writeText('Until the 1960s, Venus was often considered a twin sister to the Earth because Venus is the nearest planet to us, and because the two planets seem to share many characteristics.')" href ="venus.htm" target ="_blank" alt="Venus" /> </map> The planet Mercury is very difficult to study <p id="desc"></p> from the Earth because it is always so close to </body> the Sun. </html>
  • 13. onClick example <html> Example: <head> <script type="text/javascript"> function displaymessage() { alert("Hello World!"); } </script> </head> <body> <form> <input type="button" value="Click me!" onclick="displaymessage()" /> </form> <p>By pressing the button above, a function will be called. The function will alert a message.</p> </body> </html> Result:
  • 14. How can an onLoad event be used in Internet Marketing? To get the customer to take action. You might want them to buy something, or sign up for your newsletter! To communicate and build a relationship with the customer.
  • 15. How can an onMouseOver event be used in Internet Marketing? To create tool tips, or to add additional information about a product or service.
  • 16. How can an onMouseOut event be used in Internet Marketing? To bring the customer back to the first selection. To create interactivity for the user.
  • 17. How can an onClick event be used in Internet Marketing? To send the customer an alert message. To let the customer know, that they have made a purchase, signed up, or offer additional savings!
  • 18. What is Camel Case? Camel Case is the use of upper-case letters for each first letter of every word within a URL. Example (standard URL): www.jaimechristineperez.com Example (Camel Case): www.JaimeChristinePerez.com
  • 19. File Naming Conventions NAME Online Training Library® » Adobe » Dreamweaver CS4 Essential Training » File naming • Lynda video (lynda.com » conventions)
  • 20. Are Java and JavaScript the same? JavaScript JScript NO! Java and JavaScript are two completely different languages in both concept and design! Java (developed by Sun Microsystems) is a powerful and much more complex programming language.
  • 21. JavaScript Jscript and ECMA Script How does JavaScript differ from Jscript and ECMA Script?
  • 22. JavaScript • Netscape originally developed a scripting language for use in its browsers, calling it LiveScript. • Java being an internet buzzword at that time, for marketing reasons they renamed the scripting language to JavaScript. • Brendan Eich (born 1961) is the creator of the JavaScript programming language. • Now he is the Chief Technology Officer at the Mozilla Corporation.
  • 23. JScript • Microsoft implemented its own version of JavaScript and called it JScript.
  • 24. ECMAScript • Netscape, Microsoft and others started standardizing the scripting language, using the ECMA standardizing organization for that. • Thus the language standard is now called ECMA Script. • ECMA standard is only about the core language, with data and objects like numbers, strings, booleans, Object, Array, Function, Date, Math, but NOT about application specific objects like browser specific objects (document, window, links, images etc). • ECMA International (http://www.ecma-international.org/)
  • 25. ECMAScript The Real Name is ECMAScript • JavaScript's official name is ECMAScript. • ECMAScript is developed and maintained by the ECMA organization.  • ECMA-262 is the official JavaScript standard. The language was invented and has appeared in all 1996 Netscape and Microsoft browsers. 1996 The development of ECMA-262 started. The first edition of was adopted by the ECMA General 1997 Assembly in June 1997. The standard was approved as an international ISO 1998 (ISO/IEC 16262) standard. ECMA International (http://www.ecma-international.org/) The development of the standard is still in progress.
  • 26. Resources • http://getjins.wordpress.com/2008/09/15/javascript-vs-jscript-vs- ecmascript/ • http://www.pavan.org/images/javaScriptIcon.gif • http://weblogs.java.net/blog/campbell/archive/images/orangebox.png • http://fforw.de/ffjs/image/logo.png • http://www.onlinereadingcorner.com/wp-content/uploads/2010/07/right-web-dev.jpg • http://www.ecma-international.org/images/logo_printerf.jpg • http://www.worldphoto360.com/wp-content/uploads/2010/08/web-browsers.jpg • http://www.seedol.com/wp-content/uploads/2010/09/Internet-Marketing-Services.jpg (continue....)
  • 27. Resources (continued....) • http://www.bloghighlight.com/wp-content/uploads/wordpress-seo/unique-wordpress-seo.jpg • http://www.icondrawer.com/img/PF_crittersims_icon.jpg • http://jeffbradfield.ca/images/seo-web-design-tools.jpg • http://usabilityfriction.com/wp-content/uploads/2010/03/alertbox.png • http://www.w3schools.com/js/js_functions.asp • http://www.buildwebsite4u.com/advanced/javascript-examples.shtml • http://www.htmlgoodies.com/beyond/javascript/article.php/3470771/Advanced-JavaScript-for-Web-Developers-onClick-and- onMouseOver.htm • (lynda.com »Online Training Library® » Adobe » Dreamweaver CS4 Essential Training » File naming conventions)

Notas del editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n