Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body>
- <img id="zdjid" src="zdj.jpg" alt="Gory" width="500" height="300">
- <div id="menu" style="display: none;">
- <div id="option1">Photograph</div>
- <div id="option2">Rub belly</div>
- <div id="option3">Feed a fish</div>
- </div>
- <script type="text/javascript">
- function f1(){
- document.getElementById("menu").style.display= 'block';
- }
- function f2(){
- document.getElementById("menu").style.display = 'none';
- return false;
- }
- var zdjecie = document.getElementById("zdjid");
- zdjecie.addEventListener('click',f1,false);
- zdjecie.addEventListener('contextmenu',f2,false);
- </script>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement