Wow Web Designs Forums Home

Search
   
Members

Calendar

Help

Home
Search by username
Not logged in - Login | Register 


Layers Show/hide Rollovers
 Moderated by: Aycan  

New Topic

Reply

Print
AuthorPost
capo
Member
 

Joined: Thu Feb 12th, 2004
Location:  
Posts: 1
Status:  Offline
Mana: 
 Posted: Thu Feb 12th, 2004 08:48 pm

Quote

Reply
Hi,

I have a navigation with rollover images for each button, one button in particular has a layer appear when clicked on (drop down menu), I set the rollover image for that button to display a small triangle when moused over, but when I click the image and the layer appears if I mouse to the drop down menu (layer) the triangle disappears because the rollover returns to it’s initial state due to the fact that I moused off the image and onto the layer, I would like the rolled over state to remain for as long as the mouse is located in the layer and finally return to it’s original state only when the user moves out of the layer.
Is it possible? Or do I have to be Java oriented? Also I’d like to know if there is a way to have a layer hide on the second mouse click of the image, I know of the dblclick but I was looking for a single click, one click shows the layer another hides it.

Thank you very much for any help you can offer me.
Capo

relaxzoolander
Super Moderator


Joined: Sun Jan 25th, 2004
Location: Columbus, Ohio USA
Posts: 459
Status:  Offline
Mana: 
 Posted: Thu Mar 25th, 2004 09:07 am

Quote

Reply
add the same onmouseover to the drop down menu layer. make sure the layers touch or overlap slightly....that way the triangle will always stay 'on' when the user is on either layer.

for the hide and show of an image. just do a onmousedown event and store a variable.....call it 'status'. change the value of status to 'on' or 'off' depending on what status is equal to at each click. so if status="on" then set status to 'off'. at the same time set the visibility of the image based on the status value.


:)

r|z

--------------------------------------------------------------------------------
columbus ohio small business web designer

Last edited on Tue Jan 18th, 2005 07:42 pm by relaxzoolander


 Current time is 06:04 pm




Powered by WowBB 1.7 - Copyright © 2003-2006 Aycan Gulez
Page processed in 0.1327 seconds (14% database + 86% PHP). 16 queries executed.