[all variants] Javascript help needed

view story

http://ubuntuforums.org – I've recently gotten a Raspberry pi and I am using it to learn some web development. I've set up Apache on it, with PHP and MySql although I'm not using MySql yet. in the gallery I have php showing every image in the /gallery folder with the following code. Code: <img onclick="function(imagename)" src=/gallery/image> here's my javascript function Code: function frame(variable){ document.getElementById('frame').innerHTML = '<img src="/gallery/' + variable + '">'; } I've been messing around in W3Schools tryme windows and I'm quite confused as how I'm s (Hardware)