SlideShare uma empresa 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

Mais conteúdo relacionado

Mais procurados

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
 

Mais procurados (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
 

Destaque

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
 

Destaque (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
 

Semelhante 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
 

Mais 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

原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
How to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our SiteHow to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our Sitegalleryaagency
 
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改yuu sss
 
办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一
办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一
办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一A SSS
 
Call Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full NightCall Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full Nightssuser7cb4ff
 
Pharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfPharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfAayushChavan5
 
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证nhjeo1gg
 
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一z xss
 
毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree 毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree ttt fff
 
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一F dds
 
Design Portfolio - 2024 - William Vickery
Design Portfolio - 2024 - William VickeryDesign Portfolio - 2024 - William Vickery
Design Portfolio - 2024 - William VickeryWilliamVickery6
 
ARt app | UX Case Study
ARt app | UX Case StudyARt app | UX Case Study
ARt app | UX Case StudySophia Viganò
 
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
Mookuthi is an artisanal nose ornament brand based in Madras.
Mookuthi is an artisanal nose ornament brand based in Madras.Mookuthi is an artisanal nose ornament brand based in Madras.
Mookuthi is an artisanal nose ornament brand based in Madras.Mookuthi
 
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degreeyuu sss
 
Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Rndexperts
 
Passbook project document_april_21__.pdf
Passbook project document_april_21__.pdfPassbook project document_april_21__.pdf
Passbook project document_april_21__.pdfvaibhavkanaujia
 
'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
 
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
 
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
 

Último (20)

原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
 
How to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our SiteHow to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our Site
 
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改
 
办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一
办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一
办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一
 
Call Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full NightCall Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full Night
 
Pharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfPharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdf
 
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
 
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
办理(UC毕业证书)查尔斯顿大学毕业证成绩单原版一比一
 
毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree 毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
 
Design Portfolio - 2024 - William Vickery
Design Portfolio - 2024 - William VickeryDesign Portfolio - 2024 - William Vickery
Design Portfolio - 2024 - William Vickery
 
ARt app | UX Case Study
ARt app | UX Case StudyARt app | UX Case Study
ARt app | UX Case Study
 
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
 
Mookuthi is an artisanal nose ornament brand based in Madras.
Mookuthi is an artisanal nose ornament brand based in Madras.Mookuthi is an artisanal nose ornament brand based in Madras.
Mookuthi is an artisanal nose ornament brand based in Madras.
 
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
 
Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025
 
Passbook project document_april_21__.pdf
Passbook project document_april_21__.pdfPassbook project document_april_21__.pdf
Passbook project document_april_21__.pdf
 
'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 ,
 
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
 
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
 

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 do 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