lQuery plugin like super/suckerfish but for anchors?

Caporegime
Joined
18 Oct 2002
Posts
29,493
Location
Back in East London
jQuery plugin like super/suckerfish but for anchors?

Hi folks, I'm looking for a "drop menu" for use with anchor click events, just like superfish/suckerfish do for uls and lis. :)

I've got this so far to give an idea:

Code:
$(document).ready(function() {

    $('a.download').click(function(event) {


        var pos = $(event.srcElement).position();

        var newDiv = $('<div></div>')
            .css("position", "absolute")
            .css("float", "left")
            .css("top", pos.top + 20)
            .css("left", pos.left)
            .css("background-color", "white")
            .css("border", "1px solid black")
            .append('<p>aaaaaaaa</p><p>bbbbbbbbb</p>');

        newDiv.appendTo(document.body);

        event.preventDefault();
    });

});

before click:
hx3ifq.png


after click:
2ik8enb.png


where aaaaaaa and bbbbbbbb are also anchors.

TIA! :)
 
Last edited:
That looks like the sort of thing I could use, will give it a go :)

Also just noticed my typo in the title of the thread :rolleyes:
 
Back
Top Bottom