Week 7: Portfolio Presentation and Javascript

Today, you’ll present your portfolio websites and we’ll learn a little Javascript.

If you need forms for your Studio assignments, here’s a great source: W3Schools tutorial for forms

Javascript!

Javascript is the object-oriented, scripting language of the web. It can add zest, animation, and functionality to your web pages. Like CSS, Javascript can live in many different parts of your page and in external files that end in .js . Unlike CSS, they are enclosed in the tag <script></script>

Here is the basic structure of javascript:

<script type="text/javascript">
document.write("This is my first JavaScript!");
</script>

This will run wherever it is placed in the body, printing the text “This is my first JavaScript!” in that spot. It can also be place in the <head>, where it will print when the page loads.

Javascript is used more effectively to store information in the head of a document that can be accessed later in the document. In this example, we store a function in the head and access it in the body:


<html>
<head>
<script type="text/javascript">
function message()
{
alert("This alert box was called with the onload event");
}
</script>

</head>

<body onload="message()">
<script type="text/javascript">
document.write("This message is written by JavaScript");
</script>

</body>

</html>

Javascript can also be located externally to the html document and accessed by a script tag in the head of the document:

<head>
<script type="text/javascript" src="jquery.js"></script>
</head>

We will work through this slideshow example in which we will make a slide show and swap out images.

Unfortunately, we do not have time in this class to cover much Javascript. So, you should go through the W3Schools tutorial to learn more.

JQuery is a library of Javascript programs that is easily implemented with designers with little javascript experience. Take a look through these great JQuery tutorials and try one for yourself. Follow the instructions very carefully, and make sure to download the .js file before beginning. If you have no idea what I am talking about, read through the tutorial again.

Assignment:

  1. Go through all of the W3Schools Javascript Tutorials. Get 3 working examples going and upload them to your public_html space. Link from your blog.
  2. Don’t forget your xhtml/css over break! make a page with 5 thumbnail images (100px x 100px) about your spring break. We will use these when you return!
  3. Extra credit for a working JQuery example, posted online and linked from your blog!

6 Comments »

  1. Kelly says:

    http://mysite.pratt.edu/~kmcconne/AShomepage.html

    my portfolio website for class presentation

  2. Kelly says:

    I finished an earlier project and made a few tweaks on my website-
    * basically I restyled the links and edited line heights here and there as well as adding some more blogness.

    Have a nice break!

    http://prattkid.wordpress.com/2010/03/12/por-fin/

  3. Phillip says:

    website link
    website

RSS feed for comments on this post. / TrackBack URI

Leave a Reply

Week 14: Work it!

Almost there! YOU CAN DO IT. I believe in you!!!!

To help you out on your final flash adventures, here are the examples for the day:
Random Animation
Here are some new flash examples.
Sound with Pause
Input Text

Video

The best way to add video for right now is to import the video through the File>Import> Import to Stage menu into an FLV player (top option in the window that opens). You can then convert this video to a moviclip and target as you would other movieclips.

Preloader

Take a look at the example. Basically, I’ve set it up so that it stops on the first frame and keeps checking to see if the whole movie has been loaded (# of bytes). If it has, it plays. Otherwise, it changes the text and the size of the bar. Make sure to simulate download when checking the preloader.

Loader

This is for loading other swf files and jpgs. It’s really handy because then you can build parts separately and add them as needed. It saves on download time, and is great when working in teams.

Sound: Play and Pause

Here, we add some code to our previous simple_sound file in order to keep track of where the song was when we pause it, and then play it in that spot again.

For next week:

We will start at the beginning of class, so have everything ready to go. Test it out, practice a simple presentation of the project, and think of it as an opportunity to practice presenting yourself to an audience. Good luck! I’m looking forward to seeing everyone’s hard work.

Week 13: The Home Stretch!

OMGOMGOMG! Only 2 more classes before the final! Let’s use our time wisely. I’ll run through examples that might be helpful for your final. You ask me questions. Let’s go!

Details »

Week 12: Frame Control, Variables

Check back over the blog post for Week 11, and review the files in the link. To start you thinking about other things that you can do with Actionscript, download this file, and run the examples. See if you can understand how they are programmed.
Details »

Week 11: Actionscript

We’ll take our first look at Actionscript today and talk about our final projects.
Details »

Week 10: Flash

Let’s continue Flash today with Tweens!
Details »

Week 9: Flash!

Flash was always my first love. It combines time-based image editing format with programming and multimedia capabilities! It is a great way to add fluid animation and interaction to your design, and it frees you from the grid constraints of xhtml/css.

Details »

Week 8: Javascript & JQuery

Welcome back! Hope you a restful break and enjoyed the lovely weather. Let’s jump back into things with look at the basic structure of Javascript and JQuery!
Details »

Week 7: Portfolio Presentation and Javascript

Today, you’ll present your portfolio websites and we’ll learn a little Javascript.
Details »

Weeks 5 & 6: Portfolio Lab

We’ll continue working with HTML and CSS today, exploring tables, menus, and images. You’ll begin turning your portfolio designs into live websites!

Details »

Weeks 4: Advanced CSS/Images

Today, we’ll review CSS positioning and explore some tricks with images. We’ll also learn how to use tables and make sitemaps.

Details »