If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > I try to do a menu hide after two seconds at

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-25-08, 17:15
lse123 lse123 is offline
Registered User
 
Join Date: May 2007
Posts: 139
I try to do a menu hide after two seconds at

I try to do a menu hide after two seconds at
http://www.poliscarhire.com/hotdeals.php
but not get hidden at all , well ?
PLEASE NOTE: I Applied code only to "Contact Us" drop down menu at above page....menu "contact us" if opened[mouse over] does not close ...
needed this: var timer9=null; ?

Code:
<script language="javascript" type="text/javascript">

var _ = function(e) { return document.getElementById(e); }
var hide = function(x) {
	_(x).style.visibility='hidden';
}
// var timer=null;
var timerHide9 = function(y) {
	//if (timer != null) {
	//   clearTimeout(timer);
	//}
	timer9 = setTimeout("hide('+y+')",2000);
}
</script>
Code:
	<table width="875" border="1" class="t1" bgcolor="#CCCCCC" id="menu">
 <tr align="left" valign="middle">
  <td width="64">
   <a href="../index.php" class="noDecor">Home</a><br />	</td>
  <td width="58">
   <a href="../cars.php" class="noDecor">Cars</a><br />	</td>
  <td width="66">
   <a href="../rates.php" class="noDecor">Rates</a><br />	</td>
  <td width="91">
   <a href="../hotdeals.php" class="noDecor">Hot Deals </a><br />	</td>
  <td width="78">
   <a href="../terms.php" class="noDecor">Terms</a><br />	</td>
  <td width="112" onmouseover="document.getElementById('hc1').style.visibility='visible';" onmouseout="timerHide9('hc1');" ><!-- setTimeout("document.getElementById('hc1').style.visibility='hidden'",2000);-->
   <a href="" class="noDecor">Contact Us </a><br />
	<table class="noShow bordertableblack" id="hc1" width="170" border="1" bgcolor="#CCCCCC" >
      <tr>
        <td><a href="../contact.php" class="noDecor">Contact Info</a></td>
      </tr>
      <tr>
        <td><a href="../webform.php" class="noDecor">Contact Web Form</a></td>
      </tr>
      <tr>
        <td><a href="../callyouback.php" class="noDecor">Request call you back</a></td>
      </tr>
    </table></td>
  <td width="136">
   <a href="../about.php" class="noDecor">About PolisCarHire</a><br />  </td>
  <td width="105" onmouseover="document.getElementById('plumbing').style.visibility='visible';"
	onmouseout="document.getElementById('plumbing').style.visibility='hidden';">
   <a href="" class="noDecor">Touring Info </a><br />
	<table class="noShow bordertableblack" id="plumbing" width="220" border="1" bgcolor="#CCCCCC" >
	<tr><td><a href="../maps.php" class="noDecor">Polis/Pafos/Cyprus Maps</a></td></tr>
	<tr><td><a href="../links.php" class="noDecor">Polis/Pafos/Cyprus Links</a></td></tr>
	<tr><td><a href="../accommodation.php" class="noDecor">Polis/Pafos Accommodation</a></td></tr>
	<tr><td><a href="../polis.php" class="noDecor">Polis Mini Guide</a></td></tr>
	<tr><td><a href="../pafos.php" class="noDecor">Pafos Mini Guide</a></td></tr>
	<tr><td><a href="../limassol.php" class="noDecor">Limassol Mini Guide</a></td></tr>
	<tr><td><a href="../cy.php" class="noDecor">Cyprus Mini Guide</a></td></tr>
	</table>  </td>
  <td width="107" onmouseover="document.getElementById('hc').style.visibility='visible';"
	onmouseout="document.getElementById('hc').style.visibility='hidden';">
   <a href="" class="noDecor">LogIns/Registers</a><br />
	<table class="noShow bordertableblack" id="hc" width="160" border="1" bgcolor="#CCCCCC" >
	<tr><td><a href="../login.php" class="noDecor">Customer Login</a></td></tr>
	<tr><td><a href="../aff.php" class="noDecor">Affiliates Login</a></td></tr>
	<tr><td><a href="../admin.php" class="noDecor">Admin Login</a></td></tr>
	<tr><td><a href="../logout.php" class="noDecor">Customer LogOut</a></td></tr>
	<tr><td><a href="../affout.php" class="noDecor">Affiliates LogOut</a></td></tr>
	<tr><td><a href="../adminout.php" class="noDecor">Admin LogOut</a></td></tr>
	<tr><td><a href="../register-ac.php" class="noDecor">Account Registation</a></td></tr>
	<tr><td><a href="../register-aff.php" class="noDecor">Affiliates Registation</a></td></tr>
	</table>  </td>
 </tr>
</table>
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On