Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript
My jquery function is below:-
--------------------
$('img').load(function() {
    $(this).data('height', this.height);
}).bind('mouseenter mouseleave', function(e) {
    $(this).stop().animate({
        height: $(this).data('height') * (e.type === 'mouseenter' ? 1.5 : 1)
    });
});
 
I want to convert as a simple javascript code of above jquery code.
 
How will i do for above problem???
Please Please help me anybody.....
Posted 8-Oct-12 23:19pm
Edited 9-Oct-12 3:37am
v2
Comments
Zoltán Zörgő at 9-Oct-12 4:24am
   
What is the problem with jquery?
Manfred R. Bihy at 9-Oct-12 4:25am
   
My thoughts exactly! Whilst definitely doable, why would anyone go through all the hassle?
Manfred R. Bihy at 9-Oct-12 4:24am
   
Why the hassle? It really won't get simpler without jQuery.
Richard MacCutchan at 9-Oct-12 4:53am
   
Download the jQuery source from jquery.com and replace the jquery functions in your code with the original source. Should be a fun exercise.
Sergey Alexandrovich Kryukov at 9-Oct-12 10:24am
   
He-he. My 5 -- it answers the question. :-)
--SA
Sergey Alexandrovich Kryukov at 9-Oct-12 10:23am
   
Why?!
--SA
Sergey Alexandrovich Kryukov at 9-Oct-12 14:06pm
   
Here is the thing: I don't believe anyone would want to assist you with this boring stuff unless you provide a convincing motivation. Nobody will want to waste time on something which may not make sense.
--SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Although it makes no sense to use legacy javascript, when there are several prototype libraries available, this is a good starting point: http://net.tutsplus.com/tutorials/javascript-ajax/from-jquery-to-javascript-a-reference/[^]. You will see, that legacy javascript gives you nothing in exchange for the plenty of time you spend for nothing.
 
And if this is a learning task, than try to understand the code, and write it on your own.
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 270
1 Sergey Alexandrovich Kryukov 185
2 BillWoodruff 173
3 CPallini 155
4 Kamal Rocks 144
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 9 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100