Javascript HTML right-click browser menu? Help with getting example working
i'm trying to get the followin开发者_运维问答g example set up on my computer:
http://deluxe-menu.com/popup-mode-sample.html
I've right clicked for the source code, copied the HTML into a file on my local computer and have saved the 5 javascript files (dmenu,data,add,data-popup-mode,data-popup-mode2).js into the same folder.
I have also swapped their image for one of my own which is located in the same directory.
When i right click my image it says
Error: dm_popup is not defined
However, i cannot seem to find where this has been declared. Can someone please help?
EDIT: I've also copied over the css files
You also need the dmenu_popup.js
file, that function you need is included inside. It seems to be loaded by dmenu.js
, that explains why you haven't seen it.
精彩评论