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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help me to get my DHTML layers working.

Status
Not open for further replies.

robgee

Programmer
Feb 14, 2001
3
GB
I have been trying to get layers working properly.
here is my coding snipped out of my program.

If you cannot help please e-mail some simple web pages using layer codes.
Many thanks Rob.

<LAYER name=&quot;one&quot; class=&quot;cardStack&quot;>
<P>SONY is this weeks no1 Flavour.
SONY is this weeks no1 Flavour.
SONY is this weeks no1 Flavour.</P>
</LAYER>
<INPUT type=&quot;button&quot; value=&quot;THE LATEST MP3 MACHINE!&quot; onClick=&quot;show layer('one')&quot;>

<LAYER name&quot;two&quot; class=&quot;cardStack&quot;>
<P>At No.3 ****.
At No.2 ****
At No.1 ****<P>
</LAYER>
<INPUT type=&quot;button&quot; value=&quot;ROBGEE MP3 CHART&quot; onClick=&quot;show layer('one')&quot;>

<LAYER name&quot;three&quot; class=&quot;cardStack&quot;>
<P>Febuary 2000.
Feburary 2000
Feburary 2000<P>
</LAYER>
<INPUT type=&quot;button&quot; value=&quot;MC'S DUE TO PERFORM&quot; onClick=&quot;show layer('one')&quot;>


<p> <A href=&quot;genius.jpg&quot;></A>
If you have any questions or ideas do not hesitate to drop me a line on
<u><H6><br>&amp;copy<A href=&quot;genius.jpg&quot;>2001.Robgee@MP3</A><H6><u>
</body>

</html>

 
what is not working ?
looks like you're missing the &quot;showlayer&quot; function, you're calling it when the buttons are clicked but did you include it in your code as well ??
and yes, beware of the = in name=&quot;two&quot;
 
Hi robgee!

First of all, name of a function should be showlayer(), or show_layer(), or showLayer() or whatever else, but not contain any spaces as you wrote: show layer.

And of course add this function so we can see how it works.

Andrew | starway@mail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top