Hi Onaje,
Yes, it will work, but for each case you need to add a separate Class name and separate code. So your class names will be:
custom_class1
custom_class2
custom_class3
custom_class4
and your code will be:
jQuery('.custom_class1 .x-graphic-primary img').hover(function(){
jQuery(this).attr('src', 'URL OF IMAGE 1');
});
jQuery('.custom_class2 .x-graphic-primary img').hover(function(){
jQuery(this).attr('src', 'URL OF IMAGE 2');
});
jQuery('.custom_class3 .x-graphic-primary img').hover(function(){
jQuery(this).attr('src', 'URL OF IMAGE 3');
});
jQuery('.custom_class4 .x-graphic-primary img').hover(function(){
jQuery(this).attr('src', 'URL OF IMAGE 4');
});
Kindly open up new threads for additional questions as it will help us to focus on each issue and give you a better support which you deserve. Having a long thread makes the maintaining job harder and also it will be harder for the other customers to find the correct information if they have similar issues. You are always welcomed to reply to this thread to follow up the same question.
Thank you.