Results 1 to 2 of 2

Thread: Jim's DHTML Menu v5.7 and Opera 8.0

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

    Default Jim's DHTML Menu v5.7 and Opera 8.0

    Script:Jim's DHTML Menu v5.7
    http://www.dynamicdrive.com/dynamici...menu/index.htm

    My problem looks like this:My menu is looking ok in explorer and mozzila, but not also in opera(letters are not in boxes!?)I am sending a picture of my problem.I hope it can work like this, this is my first participation in a forum...
    Thanks in advance, Miriam.

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

    Default

    This is solution I got from Andrew Gregory:


    "Opera have obviously made some changes since version 7. In the browser.js file, if you change the
    line:

    opera = true;

    to:

    { var version = parseFloat(agent.substr(agent.indexOf("opera")+6));
    if (version >= 8.0) dom = true;
    else opera = true; }

    That will give Opera 8 and later the DOM version of the script.

    However, the DOM script (dom-build.js) then needs a slight tweak that I'm
    quite sure will cause no problems. At about line 170, the following line:

    fontTag.face = this.fontFace;

    needs to change to:

    fontTag.style.fontFamily = this.fontFace;

    I don't see any problem with that (the latter is more standards-compliant
    than the former!)."


    Give it a try, it worked for me.

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
  •