This has been bugging me for quite a while now... I have done many google searches but nothing seems to actually help me.... When i run this script i get the following error: "SCRIPT5007: Unable to set value of the property 'onmouseover': object is null or undefined"
I don't know how it doesn't work but if i use onmouseover="show()" and obviosuly remake my function heading it works... I can't use the onmouseover="" as apparently its not the best way of doing it... Cna nayone shine some light on where it could be going wrong? Thanks for all your help!
Put everythng into a function
var galleryImg = document.getElementById('image');
var bar = document.getElementById('imgBar');
galleryImg.onmouseover = function ()
bar.style.display = "block";
galleryImg.onmouseout = function ()
bar.style.display = "none";