Advanced Search

Results 1 to 2 of 2

Thread: javascript event alt tag change from " to ""

  1. #1
    Join Date
    May 2006
    Posts
    98
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default javascript event alt tag change from " to ""

    Hi, Would anyone know if there is a way to change the " in an event for ".
    I am not sure but I dont know if search engines will read the alt text otherwise, or indead if they read anything in a javascript event. it starts

    Code:
    <a onmouseover="doTooltip(event,'<img src=&quot;
    Code:
    alt=&quot;Contemporary american <%=rs("Gallery")%>&quot;
    Thanks for any clues
    Richard

  2. #2
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    It is possible to use " in your JS events, you just have to be careful.

    eg

    alt=&quot;Contemporary american <%=rs("Gallery")%>&quot; - is processed correctly

    alt="Contemporary american <%=rs("Gallery")%>" - is not processed correctly, the first " before Gallery closes the initial opening quote.

    alt='Contemporary american <%=rs("Gallery")%>' - is processed correctly.

    I am not 100% sure but I think that the search engine spiders take the &codes into account.

    Hope this helps

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •