Jquery 2

Card Set Information

Author:
dalbabes
ID:
90852
Filename:
Jquery 2
Updated:
2011-06-16 00:08:49
Tags:
jquery
Folders:

Description:
jquery
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user dalbabes on FreezingBlue Flashcards. What would you like to do?


  1. Place the p tags in different events:
    1. Click
    2. double click
    3. focus
    4. Rollover
    • $("p).click()
    • $("p).dblclick()
    • $("p).focus
    • $("p).mouseover()
  2. Functions to make P appear or disapear? What is the shortcut that does both?
    • $("p).hide()
    • $("p).show()
    • $("p).toggle()
  3. What makes things expand up, expand down, or do both. What are the parameters you can set for each?
    • $("p).slideUp(speed,callback)
    • $("p).slideDown()
    • $("p).slideToggle()

    • speed is "slow" "fast" "normal" or in milliseconds
    • callback is a function that is to be called after the current on is complete.
  4. Three functions to change opacity to nothing, something, or to a certain point
    • $(selector).fadeIn(speed,callback)
    • $(selector).fadeOut(speed,callback)
    • $(selector).fadeTo(speed,opacity,callback)
  5. What function can you use to make custom animation
    animate
  6. How does animate work? What for parameters can it tke?
    • Defines a CSS property as something different:
    • $(selector).animate({params},[duration],[easing],[callback])
  7. What function makes things wait?
    delay()
  8. What is a callback and how is it used?
    Callbacks are functions to be called after the intial function completes.

    So.... $("p").hide(speed, callback)
  9. Place html into a p object
    $("p").html(content)
  10. Add HTML before or after existing content
    • $(selector).append(content)
    • $(selector).prepend(content)
  11. What is the difference between before/after and append/prepend?
    before/after is outside the selected element. append/prepend is within the element.
  12. Adjust the width or height of an object
    $(selector).height(value)Set the height of matched elements$(selector).width(value)Set the width of matched elements

What would you like to do?

Home > Flashcards > Print Preview