473,748 Members | 9,933 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

show hide layers

I have made a simple page with show hide layers with javascript and
css.

http://www.icatt.nl/special/test/sal..._algemeen.html

The idea is that the blue help text rechtangle will have to remain
visible when mouse over (because there will be soon links in it) and
invisible when onmouseout.

I have now placed javascript on the small numbered balls and within
the rechtangle itself.

But I have it in a way that when "onmouseout " the blue help rechtangle
will be hidden. But now the onmouseout event is acting like
onmouseover. Any Ideas to do this correctly? So right now when you
onmouseover it it will disappear :S

If I get this working I can start thinking of putting a timeout on the
rechtangle for it to disappear within a couple of seconds after
"onmouseout "

Let me know.

Dwayne

Apr 16 '07 #1
3 4634
On 16 Apr 2007 06:55:26 -0700, in comp.lang.javas cript "therealvib e"
<dw************ @gmail.com>
<11************ **********@e65g 2000hsc.googleg roups.comwrote:
>| I have made a simple page with show hide layers with javascript and
| css.
|
| http://www.icatt.nl/special/test/sal..._algemeen.html
|
| The idea is that the blue help text rechtangle will have to remain
| visible when mouse over (because there will be soon links in it) and
| invisible when onmouseout.
|
| I have now placed javascript on the small numbered balls and within
| the rechtangle itself.
|
| But I have it in a way that when "onmouseout " the blue help rechtangle
| will be hidden. But now the onmouseout event is acting like
| onmouseover. Any Ideas to do this correctly? So right now when you
| onmouseover it it will disappear :S
|
| If I get this working I can start thinking of putting a timeout on the
| rechtangle for it to disappear within a couple of seconds after
| "onmouseout "
|
| Let me know.
|
| Dwayne
If you looked at the code generated in dreamweaver you would've
spotted the cause of your problem.

Within the image map you have an onmouseover (to show) and an onclick
(to hide).

The actual div has the mouse out function.
---------------------------------------------------------------
jn******@yourpa ntsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Apr 16 '07 #2
Dear Jeff,

This is correct. But I still dont understand why the blue rechtangle
hides when I do a mouse over. :S
I need it to bo visable on mouse over and invisable when mouse out.
But ofcourse will trigger only when they mouseover the roundnumbers.

Regards,

Dwayne

On Apr 16, 4:13 pm, Jeff North <jnort...@yahoo .com.auwrote:
On 16 Apr 2007 06:55:26 -0700, in comp.lang.javas cript "therealvib e"
<dwayneheron... @gmail.com>

<1176731726.447 242.275...@e65g 2000hsc.googleg roups.comwrote:
| I have made a simple page with show hide layers with javascript and
| css.
|
|http://www.icatt.nl/special/test/sal..._algemeen.html
|
| The idea is that the blue help text rechtangle will have to remain
| visible when mouse over (because there will be soon links in it) and
| invisible when onmouseout.
|
| I have now placed javascript on the small numbered balls and within
| the rechtangle itself.
|
| But I have it in a way that when "onmouseout " the blue help rechtangle
| will be hidden. But now the onmouseout event is acting like
| onmouseover. Any Ideas to do this correctly? So right now when you
| onmouseover it it will disappear :S
|
| If I get this working I can start thinking of putting a timeout on the
| rechtangle for it to disappear within a couple of seconds after
| "onmouseout "
|
| Let me know.
|
| Dwayne

If you looked at the code generated in dreamweaver you would've
spotted the cause of your problem.

Within the image map you have an onmouseover (to show) and an onclick
(to hide).

The actual div has the mouse out function.
---------------------------------------------------------------
jnort...@yourpa ntsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------- Hide quoted text -

- Show quoted text -

Apr 16 '07 #3
On 16 Apr 2007 07:48:10 -0700, in comp.lang.javas cript "therealvib e"
<dw************ @gmail.com>
<11************ **********@w1g2 000hsg.googlegr oups.comwrote:
>| Dear Jeff,
|
| This is correct. But I still dont understand why the blue rechtangle
| hides when I do a mouse over. :S
| I need it to bo visable on mouse over and invisable when mouse out.
| But ofcourse will trigger only when they mouseover the roundnumbers.
|
| Regards,
|
| Dwayne
|
| On Apr 16, 4:13 pm, Jeff North <jnort...@yahoo .com.auwrote:
| On 16 Apr 2007 06:55:26 -0700, in comp.lang.javas cript "therealvib e"
| <dwayneheron... @gmail.com>
| >
| >
| >
| >
| >
| <1176731726.447 242.275...@e65g 2000hsc.googleg roups.comwrote:
| | I have made a simple page with show hide layers with javascript and
| | css.
| |
| |http://www.icatt.nl/special/test/sal..._algemeen.html
| |
| | The idea is that the blue help text rechtangle will have to remain
| | visible when mouse over (because there will be soon links in it) and
| | invisible when onmouseout.
| |
| | I have now placed javascript on the small numbered balls and within
| | the rechtangle itself.
| |
| | But I have it in a way that when "onmouseout " the blue help rechtangle
| | will be hidden. But now the onmouseout event is acting like
| | onmouseover. Any Ideas to do this correctly? So right now when you
| | onmouseover it it will disappear :S
| |
| | If I get this working I can start thinking of putting a timeout on the
| | rechtangle for it to disappear within a couple of seconds after
| | "onmouseout "
| |
| | Let me know.
| |
| | Dwayne
| >
| If you looked at the code generated in dreamweaver you would've
| spotted the cause of your problem.
| >
| Within the image map you have an onmouseover (to show) and an onclick
| (to hide).
| >
| The actual div has the mouse out function.
| ---------------------------------------------------------------
| jnort...@yourpa ntsyahoo.com.au : Remove your pants to reply
| ---------------------------------------------------------------- Hide quoted text -
| >
| - Show quoted text -
|
<div class="popups" id="spec40"
onmouseout="MM_ showHideLayers( 'spec40','','hi de')">

--remove the onmouseout instruction.
---------------------------------------------------------------
jn******@yourpa ntsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Apr 16 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3211
by: David | last post by:
Hi everyone, Hoping there are some .js/browser experts out there that can help with this weird problem. I have made a swap div routine and applied the events to menu buttons with a closer layer behind the menus. The closer div has a lower index than the submenu divs so it appears behind them. The closer div contains a transparent gif with an event applied to it to close all of the divs when moused over.
2
4000
by: geotso | last post by:
Hi I'm looking for a javascript with the following operation: if history.length <=2 show "layer1" and hide "layer2" else hide "layer1' and show "layer2"
2
12190
by: MOHSEN KASHANI | last post by:
Hi, I am trying to hide some form elements in a form by default and show/hide depending on which radio button is clicked. This is what I have but it is not working: <head> <style> ..noshow { display: none; }
4
8009
by: jerryyang_la1 | last post by:
I've found this script that allows be to hide/show form elements.. <script language="JavaScript"><!-- var toggle = true; function show(object) { if (document.layers && document.layers) document.layers.visibility = 'visible'; else if (document.all) { document.all.style.visibility = 'visible';
3
6402
by: Merlin | last post by:
Hi there, I am trying to create a form with an dynamic field that can be shown or hidden. As I saw for example on google it is possible with JS to show a layer and move the content underneath that layer further down uppon showing this layer. When a person closes that layer the content underneath the layer moves up again and closes the empty space. How is this possible? I am playing around with some code I am posting with this thread....
1
16757
by: asilverpeach | last post by:
Hey Guys! Found some great scripts here on this topic but have to make to changes to the code that I can't seem to figure out. First, In the following code clicking on the headers shows the div information. I want a nested show hide element though. So when you click on "Do you have carpets to be cleaned?" Small Rooms & Medium Rooms appears (that I got working) But Then when you click on Small rooms or medium rooms i want the three lines...
1
4172
by: pamate | last post by:
hi, I want to show hide layers. I am able to show and hide layers but i am facing problem that, cant view the cursor in Mozilla,but i can type in input text box, its overlapping the layers. I don`t want to change the way i have used to show and hide layers. check down code :- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html...
1
3810
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown properties alt in img tag istead of picture . place of the pictures is saved in the database(my database is with mysql) and in home page i fetch properties of the product and address of place that pictures is located output of the code in the...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9374
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9325
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.