Results 1 to 5 of 5

Thread: AnyLink when no content is available

  1. #1
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default AnyLink when no content is available

    1) Script Title: AnyLink JS Drop Down Menu v2.2

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    3) Describe problem: Script shows an empty rectangular under anchor when there is no content, isnt it better show nothing? and how?

    thank you.

  2. #2
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    by the way,

    I think the same function code copied and pasted under the function on line 236 and 247
    in file named anylinkmenu.js (at least I couldnt see any difference )

    the code is below,

    addState:function(anchorobj, state){
    if (anchorobj.getAttribute('data-image')){
    var imgobj=(anchorobj.tagName=="IMG")? anchorobj : anchorobj.getElementsByTagName('img')[0]
    if (imgobj){
    imgobj.src=(state=="add")? anchorobj.getAttribute('data-overimage') : anchorobj.getAttribute('data-image')
    }
    }
    else
    anylinkmenu.setcssclass(anchorobj, "selectedanchor", state)
    },

    addState:function(anchorobj, state){
    if (anchorobj.getAttribute('data-image')){
    var imgobj=(anchorobj.tagName=="IMG")? anchorobj : anchorobj.getElementsByTagName('img')[0]
    if (imgobj){
    imgobj.src=(state=="add")? anchorobj.getAttribute('data-overimage') : anchorobj.getAttribute('data-image')
    }
    }
    else
    anylinkmenu.setcssclass(anchorobj, "selectedanchor", state)
    },

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

    Default

    another issue with the script,

    some turkish characters used in the menu contents otomatically converted into some other characters. for instance, ı->i and ğ->g

  4. #4
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    another question about this menu script,

    can we use image links for dropped menus like anchors? about to change to another scripit.

  5. #5
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    why not an inline style for dropdown buttons?

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
  •