Click here to Skip to main content
13,143,774 members (32,159 online)
Rate this:
Please Sign up or sign in to 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.....
Posted 8-Oct-12 22:19pm
Updated 9-Oct-12 2:37am
Zoltán Zörgő 9-Oct-12 4:24am
What is the problem with jquery?
Manfred R. Bihy 9-Oct-12 4:25am
My thoughts exactly! Whilst definitely doable, why would anyone go through all the hassle?
Manfred R. 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.
He-he. My 5 -- it answers the question. :-)
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.

1 solution

Rate this: bad
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:[^]. 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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 9 Oct 2012
Copyright © CodeProject, 1999-2017
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