This is my problem this code is wrapped in a object function
and i need to call the "switch image" which is on the gallery class
in php i could declare a functio as static and go to it like that
gallery::switch_image(id);
how do i do that on javascript?
Code:$('.rec_thumb').hover( function(e){ var id = $(this).attr('id').replace('rec_thumb_', ''); switch_image(id); e.preventDefault(); }, function() { } );



Reply With Quote
Bookmarks