...

View Full Version : Jquery Context Menu Plugin



sheen85
09-04-2009, 10:41 AM
Hello
I have to create an own Context Menu for a website and found the JQuery Context Menu Plugin:
http://abeautifulsite.net/notebook/80
Demo: http://abeautifulsite.net/notebook_f...ntextMenu.html

Despite my non existing Javascript experience i managed to include the Plugin into my website but still have a problem left:

There are 2 different .js Files (which i think i dont need to post here, because they just activate the plugin and i dont have to change anything there) included and this code:



<script type="text/javascript">

$(document).ready( function() {
$("#Super").contextMenu({
menu: 'myMenu'
},
function(action, el, pos) {
document.write("abc");
});
});
</script>


This just writes "abc" if you click on any entry within the context menu but i dont know how to allocate different functions to the different context menu entries.

Would be very helpful for me if you take 5 minutes to take a look how this jquery plugin works. Maybe you figure out how to solve my problem

Greets
Alex



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum