Click here to Skip to main content
15,882,464 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
My jquery function is below:-
$('img').load(function() {
    $(this).data('height', this.height);
}).bind('mouseenter mouseleave', function(e) {
        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.....
Updated 9-Oct-12 2:37am
Zoltán Zörgő 9-Oct-12 4:24am    
What is the problem with jquery?
Manfred Rudolf Bihy 9-Oct-12 4:25am    
My thoughts exactly! Whilst definitely doable, why would anyone go through all the hassle?
Manfred Rudolf Bihy 9-Oct-12 4:24am    
Why the hassle? It really won't get simpler without jQuery.
Richard MacCutchan 9-Oct-12 4:53am    
Download the jQuery source from and replace the jquery functions in your code with the original source. Should be a fun exercise.
Sergey Alexandrovich Kryukov 9-Oct-12 10:24am    
He-he. My 5 -- it answers the question. :-)

1 solution

Although it makes no sense to use legacy javascript, when there are several prototype libraries available, this is a good starting point:[^]. 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.
Share this answer

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900