Results 1 to 3 of 3

Thread: Context Menu Help

  1. #1
    Join Date
    Oct 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Context Menu Help

    hi! im working on my blog and i used the Context Menu Script provided by dynamic drive and the only problem is, in firefox, when i right-click, the menu appears only at the upper left part of the page. i tried changing the position of the script in my layout script but still nothing happens. But when i tried viewing my blog in internet explorer, it seems to be working just fine.

    i checked this other blog that i got this idea from and her's is working just fine but mine's troubleshooting in firefox....

  2. #2
    Join Date
    Apr 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I changed the following:

    From:
    menuobj.style.left=ie5? document.body.scrollLeft+event.clientX : window.pageXOffset+e.clientX
    menuobj.style.top=ie5? document.body.scrollTop+event.clientY : window.pageYOffset+e.clientY

    To:
    menuobj.style.left=ie5? document.body.scrollLeft+event.clientX : window.pageXOffset+e.clientX + "px";
    menuobj.style.top=ie5? document.body.scrollTop+event.clientY : window.pageYOffset+e.clientY + "px";

    FF needs the "px". Works now for me

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.

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
  •