p.s forgive the non-indented code
/* indicates comment*/
QUESTION 1
function(i)
{
document.getElementById(i).onclick = 'empty()';
}
/*would edit the image id="album3" onclick event to now call empty() or a empty function, but how could i make it call empty(i), i being the varible that was passed in the original function */
QUESTION 2
document.getElementById('songicon').style.width = '50px';
document.getElementById('songicon').style.height = '50px';
/* changes the style of the the first img with the id songicon but what if i wanted it to edit multiple images at the same time i.e do i use class or name or something, i tried using getElementsByName which didn't work
p.s i have only included fractions of the code on purpose but will gladly expand on what i ment with the code


