Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show-Hide Lyers (again)

Status
Not open for further replies.

damer

Technical User
Mar 1, 2002
5
US
The following is the source code for two attempted hide-show layer behaviors. The first, "Donne", works; the second, "Herbert", but I cannot tell why. Can anyone help?

<a href=&quot;#donne&quot; onMouseOver=&quot;MM_showHideLayers('Donne','','show')&quot; onMouseOut=&quot;MM_showHideLayers('Donne','','hide')&quot;>Donne</a>
<br>
<a href=&quot;#herbert&quot; onMouseOver=&quot;MM_showHideLayers('herbert','','show')&quot; onMouseOut=&quot;MM_showHideLayers('herbert','','hide')&quot;>
Herbert </a><br>

What am I doing wrong?
 
works fine in mine. Make sure you didn't accidentally rename one of your layers.
 
To: Techman007

Well you were almost right and you led me to the solution.

I found that the source code is case sensitive when it comes to the names of the layers. Even though the layer window showed a layer name with no initial cap, show-hide only worked when the source code did show the layer name with an initial cap. Weird, but true.

Thak you very much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top