I know there is a Hash() object in the Javascript prototype framework, but is there anything in Jquery like this?
As I would like to stick with one javascript framew
There is no prototype Hash equivalent in jQuery that I know of.
Could the following be of any use to you? using jQuery
var starSaves = {};
function myHover(id,pos)
{
var starStrip = $('.star_strip_' + id);
if(!starSaves[id])
{
var starSave = [];
starStrip.each(function(index,element){
starSave[index] = $(element).attr('src');
$(element).attr('src', index < pos ? '/images/star_1.gif' : '/images/star_0.gif');
});
starSaves[id] = starSave;
}
}