How to fade from one image to another?

Discussion in 'JavaScript' started by wd_2k6, Feb 8, 2009.

  1. #1
    Edit: Managed To Solve This Via The Use Of Jquery, Didnt Seem Possible From Javascript Alone!
     
    wd_2k6, Feb 8, 2009 IP
  2. rohan_shenoy

    rohan_shenoy Active Member

    Messages:
    441
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Its entirely possible with javascript. Infact jQuery is javascript :D
     
    rohan_shenoy, Feb 9, 2009 IP
  3. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #3
    well, that's debatable, i think he may have gotten it right :D :D

    good to see somebody else taking to frameworks for a simple opacity change--i wonder how many plugins he's downloaded already :)
     
    dimitar christoff, Feb 9, 2009 IP
  4. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hmm infact I try to learn and do everything myself rather than relying other code, i've set out to learn jQuery as oppose to just copying and pasting.
    As far as it's been communicated to me jQuery can provide me with more flexibility and better animations with a ridiciously small amount of code.
    If there is a 17kb file out there with this functionality you expect me not to use it?
     
    wd_2k6, Feb 9, 2009 IP
  5. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #5
    on the contrary - go for it, jquery is a great start.
     
    dimitar christoff, Feb 9, 2009 IP
  6. Bruce_Davenport

    Bruce_Davenport Guest

    Best Answers:
    0
    #6
    ya Jquery is awesum...
     
    Bruce_Davenport, Feb 10, 2009 IP
  7. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #7
    Actually no, it's not.
    jQuery actually is JS.

    If you want to debate this, turn off JS in your browser and see if jQuery still works. :)
     
    joebert, Feb 15, 2009 IP
  8. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #8
    this was meant as a sarcasm and as a dig @ jquery (which is have come to dislike), but nevermind! :D
     
    dimitar christoff, Feb 15, 2009 IP
  9. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #9
    How can you not like jQuery ?
    It's like the Kama Sutra of Javascript.
     
    joebert, Feb 17, 2009 IP
  10. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #10
    a matter of preference, nothing else. yes, you can do most things in jquery but it differs in how it does things.

    for example, my framework of choice, mootools, takes the approach of extending natural methods / prototyping elements and data types, which feels natural. jquery seems like smoke and mirrors, functions hiding behind the $ namespace.

    for instance, $("foo") returns an object via a selector in mootools. $("#foo") is a selector in jquery. you can do:
    
    //mootools
    var foo = $("foo"); 
    foo.getPrevious().fade(0,1); // etc etc, extended element returned
    
    // jquery
    var foo = $("#foo");
    foo.click(.... // fails, because foo is not extended. you need to $(foo).click. 
    
    PHP:
    the same prototyping / extending applies to any method on any datatype like String, Number, Element, Object(!), Array etc etc.

    like i said, you can arrive to the same results - just different paths. i don't dispute that jquery is great at what it does -- just don't like how it does it.
    it may be sexy but its just the erotica of javascript, i like hardcore :D
     
    dimitar christoff, Feb 17, 2009 IP
  11. meannn

    meannn Peon

    Messages:
    255
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Jquery is awesum...
     
    meannn, Apr 19, 2009 IP