html - Anchor tag on image not working -


i designing web-page include facebook, twitter links profile. have this.

<div>      <a href="https://www.facebook.com/xyz">          <img  src="../images/facebook.gif>      </a> </div> 

and styling is

<style>    img     {        height:16px;        width:16px;    } </style> 

when run it, get

function ajaxrequest(url) {     var http_request = false;     if (window.xmlhttprequest) { //          mozilla, safari,...         http_request = new xmlhttprequest();         if (http_request.overridemimetype) {             http_request.overridemimetype('text/xml'); // see note below line          }     } else if (window.activexobject) { // ie //isie=true;          try {             http_request = new activexobject("msxml2.xmlhttp");         } catch (e) {             try {                 http_request = new activexobject("microsoft.xmlhttp");             } catch (e) {}         }     }     if (!http_request) {         alert('giving :( cannot create xmlhttp instance');         return false;     }     http_request.onreadystatechange = function () {         showhtmlpagecontents(http_request);     };     http_request.open('get', url, true);     http_request.send(null);     settimeout("ajaxrequest('ups.jsp')", 5000); } function showhtmlpagecontents(http_request) {     if (http_request.readystate == 4) {         if (http_request.status == 200 || window.location.href.indexof("http") == -1) {             document.body.innerhtml = http_request.responsetext;             if (navigator.platform == "win32" && navigator.appname == "microsoft internet explorer" && window.attachevent) document.body.innerhtml = http_request.responsetext;         } else {             document.body.innerhtml = http_request.responsetext; //alert('there problem request.');         }     } } 

<img src="../images/facebook.gif">  

quotes missing.

<div>      <a href="https://www.facebook.com/xyz">          <img src="../images/facebook.gif">      </a> </div> 

css

<style>    img     {        height:16px;        width:16px;    } </style> 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -