I have done what i believe is the right thing but still doesnt work. Below is my code:
Pictures are in the same folder as the Html file to keep things simple
Expand|Select|Wrap|Line Numbers
- <HTML>
- <HEAD>
- <!-- Set up a Javascript Script to handle the mouseOver events: AJAX effect -->
- <SCRIPT language="JavaScript">
- var XMLHttpRequestObject = false;
- if (window.XMLHttpRequest)
- {
- XMLHttpRequestObject = new XMLHttpRequest();
- }
- else if (window.ActiveXObject) {
- XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
- }
- function getData(dataSource, divID)
- {
- if(XMLHttpRequestObject)
- {
- var obj = document.getElementById(divID);
- XMLHttpRequestObject.open("GET", dataSource);
- XMLHttpRequestObject.onreadystatechange = function()
- {
- if (XMLHttpRequestObject.readyState == 4 &&
- XMLHttpRequestObject.status == 200) {
- obj.innerHTML = XMLHttpRequestObject.responseText;
- }
- }
- XMLHttpRequestObject.send(null);
- }
- }
- </script>
- <TITLE>
- Picture Gallery
- </TITLE>
- </HEAD>
- <BODY BACKGROUND="pic2.jpg">
- <TABLE ALIGN="left" WIDTH="100%">
- <TR ALIGN="left">
- <TD width= "50%" colspan = 2>
- <table border =1 bordercolor= "orange">
- <tr ><TD><img src= "me.jpg" width="244" height="163" onmouseover="getData('me.jpg', 'targetDiv')"></td>
- <td><img src= "me2.jpg" width=244 height=163 onmouseover="getData('me2.jpg', 'targetDiv')"></td></tr>
- <tr><TD><img src= "me3.jpg" width=244 height=163></TD></tr>
- <tr><td><img src= "me4.jpg" width=244 height=163></td></tr>
- <tr><td><img src= "me&bisi.jpg" width=244 height=163></td></tr>
- </table>
- </TD>
- <TD width= "50%" bgcolor= "">
- <!-- Area for the display of the text generated by the mouseOver event -->
- <center>
- <div id="targetDiv"></div>
- </TD>
- </TR>
- </TABLE>
- </BODY>
- </HTML>