Click here to Skip to main content
14,836,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
JavaScript
$$('div.thumb').each(function (div) {

        div.getElement('div.someContent').set('tween', { duration: '700' });
        div.getElement('div.divLeft').set('tween', { duration: '450' });
        div.getElement('div.divRight').set('tween', { duration: '450' });

        div.addEvent('mouseenter', function (e) {
            this.getElement('div.divLeft').tween('left', '-70px')
            this.getElement('div.divRight').tween('left', '80px')
            this.getElement('div.someContent').tween("background-position", "-20px 0px");
        })
        div.addEvent('mouseleave', function (e) {
            this.getElement('div.divLeft').tween('left', '0px')
            this.getElement('div.divRight').tween('left', '0px')
            this.getElement('div.someContent').tween("background-position", "0px -167px");

        })
    })
Posted
Updated 13-Jun-12 20:58pm
v2

1 solution

AFAIK, there is no difference in Javascript for PHP & ASP.NET. Further, I see you using jQuery here to modify stuff making it more easy. Having similar page design in ASP.NET with expected names and classes, above Javascript code should just work fine.
   

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