Difference between revisions of "Internet 2 Workshop"

From Digipool-Wiki
Jump to: navigation, search
(Getting started)
(Getting started)
Line 15: Line 15:
 
=== Getting started ===
 
=== Getting started ===
  
<source lang="javascript">
+
HTML-Datei:
 +
<source lang="htlm">
 
<head>
 
<head>
  ...
 
 
   <title>Test</title>
 
   <title>Test</title>
  <script language="JavaScript">
+
 
      <!--
+
<script language="JavaScript" src="/meinscript.js" type="text/javascript">
        var wo = "in Wildau!";
+
</script>
        function ausruf(wo)
+
 
        {
+
            alert("Ich studiere " + wo);
+
        }
+
      //-->
+
  </script>
+
 
</head>
 
</head>
 +
</source>
 +
 +
JavaScript-Datei: meinscript.js
 +
<source lang="javascript">
 +
  alert("Hi!");
 
</source>
 
</source>
  

Revision as of 14:31, 6 May 2011

Javascript for Artists

Javascript-Tutorial mit kreativer Zielsetzung


Tools

  • Textbearbeitungsprogramm zum Schreiben des Codes TextWrangler
  • FTP-Programm zum Hochladen des Codes auf den WWW-Sever Cyberduck


Examples

Getting started

HTML-Datei: <source lang="htlm"> <head>

  <title>Test</title>

<script language="JavaScript" src="/meinscript.js" type="text/javascript"> </script>

</head> </source>

JavaScript-Datei: meinscript.js <source lang="javascript">

 alert("Hi!");

</source>

Javascript Tutorials