when u mouse over the content the picture is supposed to change, but it doesnt
heres the js
and heres the linkCode:function menuimage(food) { document.getElementById('menuimage').src=food+".jpg"; } window.onload = function () { document.onmousemove = function (e) { e = e || window.event,mse=Mse(e); var img = document.getElementById('menuimage'); img.style.left = mse[0]+17+"px"; img.style.top = mse[1]+"px"; } } function Mse(e) { if (window.event){ var docs=[document.body.scrollLeft,document.body.scrollTop]; if (!document.body.scrollTop) { docs=[document.documentElement.scrollLeft,document.documentElement.scrollTop]; } return [e.clientX+docs[0],e.clientY+docs[1]]; } return [e.pageX,e.pageY]; }
http://mw3dailymedia.com/ckbargrill/


Reply With Quote
Bookmarks