PHP / Ajax / Javascript Navigation menu

For this example to work you need ajax.js. Have a look at Ajax calling script to create this file. We will need some form of data to create this menu, so in this example we will use MySQL. You may retrieve the data any way you like as long as it comes out as an […]

Posted at 11:55 am on May 22, 2010 | Leave a comment | Filed Under: ajax, css, html, javascript, php, xml | Tagged: , , , , , , , , , | Continue reading

Getting the mouse co-ordinates in JavaScript (all browsers)

We are going to create two functions mouseX(event),  mouseY(event). In each function we do the following Get the event triggered Find the X or Y co-ordinate of that event function mouseX(evt) { evt = (evt) ? evt : ((event) ? event : null); if (evt.pageX) return evt.pageX; if (evt.clientX) return evt.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft […]

Posted at 11:52 am on May 22, 2010 | Leave a comment | Filed Under: javascript | Tagged: , , , , , , , , | Continue reading

About