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
Related Q & A:
- I need help on what I need to buy or do.Best solution by Yahoo! Answers
- I need help with some horse questions, can you help me.Best solution by Yahoo! Answers
- I did something really bad and now i need help please help me.Best solution by Yahoo! Answers
- I need help with a song I heard.Best solution by Yahoo! Answers
- I am planning a trip to El Salvador and I need help.Best solution by nomadicmatt.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.