PDA

View Full Version : $20 for Modification of Show/Hide DIV in Javascript



nikomou
04-29-2009, 07:18 PM
1) Describe Work Request (be as detailed as possible):

Modification of the following show/hide div javascript code:


function Toggle(IDS,n) {

for (i=0; i<n; i++) { document.getElementById('DB'+i).style.display='none'; }
document.getElementById('DB'+IDS).style.display = '';
setTimeout(function(){

document.getElementById('DB'+IDS).style.display = 'none';

}, 10000);


}


<a onclick="javascript:TabMenu(0,6);return false;" class="hide" href="http://www.example.com">Example</a></li>


I would like the modified code to do the following:

1. To close the div if a mouse button is clicked OUTSIDE of the div currently opened.

2. If the mouse is NOT hovering over the currently opened div, then wait 9 seconds, then close the div. (Unless in that 9 seconds, the mouse hovers over the div again)

3. A function to close the opened div like this



javascript:CloseTabMenu(0,6);return false;


2) Payment methods you support (ie: Paypal, 2checkout etc):
$20 via PayPal