Contextmenu in html and not js?
I found this awesome tutorial: http://www.onextrapixel.com/examples/akismet-press/
The only problem is, that the content that is displayed in the contextmenu is in the js function:
- var logos = '<h2>Looking for our Logo?<span class="close">X</span></h2>';
- logos += '<img src="images/oxp-logo.png" alt="Logo Download" />';
- logos += '<ul><li><a href="images/oxp-logo.png" rel="external">High Res<span>300 Kb</span></a></li>';
- logos += '<li><a href="images/oxp-logo.png" rel="external">Low Res<span>150 Kb</span></a></li></ul>';
But i want to create the content of the contentmenu in html like this:
- <div id="header">
- <img id="logo">
- <div class="contextmenu_inhtml">
- <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr,</p>
- </div>
- </div>
How can i get the div "contextmenu_inhtml" into the "var logo"?