Results 1 to 5 of 5

Thread: Adding html to java within the script?

  1. #1
    Join Date
    Mar 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Adding html to java within the script?

    Hi all, Firstly, I'm no js expert. Now, I have "outsourced" parts of the web pages are appear on many pages - in this case, the menu bar.

    So, I've added document.writeln( before each html section (and closed them). Works fine as is. I want to incorporate the Any Link Drop Down Menu script but it seems to only work if the menu bar is html in the actual page info. And placing the two either separately or together doesn't seem to work. ") expected" or "syntax error" is what comes out. Any ideas?

    Thanks,
    E

  2. #2
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    do you have a link to the page where you have the problem, so we can see what is going on??
    Very Best Rgds, Simonf :cool:
    __________________________________
    My Site | E-Mail Me

  3. #3
    Join Date
    Mar 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sure, www.misssparkle.com/2006. The menubar, of course, isn't visible though.

    e

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    As suspected, you've failed to escape some quotes:
    Code:
    document.writeln('<a href="/2006/me.html" style="FONT-SIZE: 16px" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu2, \'150px\')" onMouseout="delayhidemenu()">');
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It works, it works, it works! Woo hoo! Thank you so much!!!!

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
  •