The only thing I can come up with is to surround the hyperlinked DIV with another DIV with the class "notranslate". This keeps Google Translate from breaking the DIV, but unfortunately it also keeps Google Translate from translating the contents of the DIV.
On Aug 30, 10:36 am, Joe Ess wrote: > I have a page with a button that consists of a div containing various > images and text. I want the user to be able to click anywhere on this > button, so the entire thing is wrapped with an anchor tag. Problem > is, after running the page through Google Translate, the anchor > surrounding the div is stripped out or disabled. > For example, given this page: > > <html> > <a href=translateSuccess.html>simple anchor hyperlink</a> > <a href=translateSuccess.html><div>div anchor hyperlink</div></a> > <form name="translateForm" action="http://www.google.com/translate"> > <input name="hl" value="en" type="hidden"/> > <input name="ie" value="UTF8" type="hidden"/> > <input name="langpair" value="en|fr" type="hidden"/> > <script> > document.write('<input name=u value='+location.href+' type=hidden />'); > > </script> > <input type="submit" value="translate page to french"> > </form> > </html> > > After translation, the first "simple anchor hyperlink" will still > work. The second "div anchor hyperlink" will not. > Anyone have any idea how to fix this problem? -- You received this message because you are subscribed to the Google Groups "General" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-translate-general?hl=en.
