ARTDM 170 Week 4: JavaScript Effects

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    ARTDM 170 Week 4: JavaScript Effects - Presentation Transcript

    1. ARTDM 170, Week 4: JavaScript Effects Gilbert Guerrero gguerrero@dvc.edu gilbertguerrero.com/blog/artdm-170/
    2. Turn in Homework  
    3. Put your files in my dropbox • Put them in a folder with your lastname and first initial example:        smith-h index.html page1.html page2.html page3.html
    4. JavaScript Rollover Review Plus a new example: Rollover Slideshow
    5. JavaScript Effects
    6. Prototype and Scriptaculous Download: http://prototypejs.org http://script.aculo.us
    7. jQuery Download: http://jquery.com
    8. Create a New Web Page
    9. Add the script to your pages • Put this between the <head> tags <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
    10. Basics $('#box').hide(); $('#box').show(); $('#box').toggle(); Example: <div id="box"><img src="pic1.jpg" /></div> <a href="#" onClick="$('#box').hide(); return false;">Hide</a> 
    11. Effects $('#box').fadeOut(1000); $('#box').fadeIn(1000); $('#box img').animate({width:'90%'}, 1000);
    12. Functions function slide() { $imgs.eq( pos++ ).fadeIn(1000, function() { if( pos == $imgs.length ){ pos = 0; $imgs.css("display","none"); } slide(); }); }
    13. Homework due Sept 16 • Create a slideshow with jQuery • Use at least 5 images • Make the images slide in, grow, fade in, drop in from the top, or animate in some way onto the page when a user clicks a thumbnail Get ready for Adobe Flash next week
    SlideShare Zeitgeist 2009

    + Gilbert GuerreroGilbert Guerrero Nominate

    custom

    120 views, 0 favs, 1 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 120
      • 87 on SlideShare
      • 33 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 0
    Most viewed embeds
    • 33 views on http://www.gilbertguerrero.com

    more

    All embeds
    • 33 views on http://www.gilbertguerrero.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories