Results 1 to 6 of 6

Thread: banner.js how to set a quotation for string

  1. #1
    Join Date
    Jan 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default banner.js how to set a quotation for string

    Hello,

    I'm using banner.js and it's a fine instrument.

    But now I try to entry the line

    Code:
    <a href="javascript:LeistungenWechsel("a");"><img id="a" src="Images/ci_kl.jpg" alt="corporate identity" name="a" height="75" width="75" border="0" />
    But the script means, the string would be

    javascript:LeistungenWechsel

    because there are quotations.

    Can you help?



    Thanks and bye
    Thomas
    Last edited by Snookerman; 04-22-2009 at 08:26 AM. Reason: added [code] tags and “Resolved” prefix

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Use single quotes:
    Code:
    "javascript:LeistungenWechsel('a');"
    or escape them:
    Code:
    "javascript:LeistungenWechsel(\"a\");"
    Good luck!

  3. #3
    Join Date
    Jan 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default thank you

    Thank you - this wouldn't be the anser but nearly:

    &apos;

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

  5. #5
    Join Date
    Jan 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default o. k.

    I tried my syntax on the firefox brower - there was it o. k.

    But on only the syntax &#39; is good for both browsers, the firefox and the Internet Explorer (7).


    Thanks.

  6. #6
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You're welcome, glad to help! You can go to your first post in this thread, click then click Go Advanced and add the Resolved prefix to the thread title. This will let other users know the problem has been solved.

    Good luck with your site!

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
  •