We have the following HTML code to use a image as a hyperlink:
<A href="myurl"><img src="mysrc"></a>
If we wanted to do this routine in ASP we would use:
<% Response.write ("<A href="myurl"><img src="mysrc"></a>")
%>
Instead of using PLAIN html or ASP we would like to do this SAME task using only javascript. We understand that the html will have to be included within a sort of javascript print string. The purpose is we do not want search engine bots to pick up on this image but allow the search engines to read the other images on the same webpage. When normal visiotrs view the page the browser will read the javascript and display the image withg link properly. Search engines bots cannot understand javascript and normal browsers can. If someone can help us with a javascript routine to do the SAME task as the plain HTML we would appreciate it. Can anyone help?
Thanks,
Jeff
<A href="myurl"><img src="mysrc"></a>
If we wanted to do this routine in ASP we would use:
<% Response.write ("<A href="myurl"><img src="mysrc"></a>")
%>
Instead of using PLAIN html or ASP we would like to do this SAME task using only javascript. We understand that the html will have to be included within a sort of javascript print string. The purpose is we do not want search engine bots to pick up on this image but allow the search engines to read the other images on the same webpage. When normal visiotrs view the page the browser will read the javascript and display the image withg link properly. Search engines bots cannot understand javascript and normal browsers can. If someone can help us with a javascript routine to do the SAME task as the plain HTML we would appreciate it. Can anyone help?
Thanks,
Jeff