How to show image before executing javascript?

I need help with javascript menu property close.?

  • Hello this is a good start but what i want is to be able to choose Close and the whole menu to disappear. What i have working with is a dragable image with a menu property which only if the image is clicked or double clicked the menu similar to this to show and after selecting an option for the menu to disappear but leaving the image in a location where it was moved. So if i choose CLOSE from the menu, the menu to disappear and all i am left with is just the image in different location relative to where the mouse location. Thank you frank <script type="text/javascript"> function change_dropdown() { var value = document.getElementById("dropdown1").val… if(value == "close") { window.close(); } if(value == "open") { window.open("http://www.google.com"); } } </script> <select id="dropdown1" onchange="change_dropdown();"> <option value="">SELECT OPTION</option> <option value="close">Close Window</option> <option value="open">Open Window</option> </select>

  • Answer:

    ref the Jquery libray in the head of your document.. that comes before any JS! Surround the menu, or part you want to hide, with a div tag with an ID of 'hidethemenu' change this window.close(); to $('#hidethemenu').hide('slow'); You could also animate it or change the speed of hide. But this will hide the menu for you.

Frankie at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.