Results 1 to 2 of 2

Thread: Cool DHTML Tooltip - Quotation Mark Problem

  1. #1
    Join Date
    Mar 2007
    Thanked 0 Times in 0 Posts

    Question Cool DHTML Tooltip - Quotation Mark Problem

    1) Script Title: Cool DHTML Tooltip

    2) Script URL (on DD):

    3) Describe problem:

    The instructions say any apostrophes (') need to be escaped (\'), but what about quotation marks (")? They seem to be closing the onMouseover attribute (onMouseover="ddrivetip('The use of "ironic quotes" is often unnecessary')"), yet escaping out the quotes doesn't seem to fix the problem (onMouseover="ddrivetip('The use of \"ironic quotes\" is often unnecessary')"). Unfortunately, the quotes I'm using are definitely necessary. Is there a method of escaping the quote marks, or even escaping all of the ddrivetip values by putting them in a javascript file or something?

  2. #2
    Join Date
    Sep 2006
    St. George, UT
    Thanked 157 Times in 155 Posts


    Instead of escaping the double quotes, try changing those double quotes to ". Try the following for example:

    onMouseover="ddrivetip('The use of "ironic quotes" is often unnecessary')")
    Hope this helps.

    Added Later: Instead of using " use & #34; (without the space) to make it valid HTML.
    Last edited by thetestingsite; 03-09-2007 at 03:52 AM.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design


Posting Permissions

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