473,322 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Showing layer beside a link

I am working with javascript showing/hiding layers.

If I am using a link's onclick to show a layer how do I make the layer
show beside the link? There are many links on the page that may
trigger the one and same layer so absolute positioning doesn't work
for me.

Many thanks,

Chris
Dec 1 '07 #1
2 1177
Chris wrote:
I am working with javascript showing/hiding layers.

If I am using a link's onclick to show a layer how do I make the layer
show beside the link? There are many links on the page that may
trigger the one and same layer so absolute positioning doesn't work
for me.

Many thanks,

Chris
Hide and show layer using the its style display property. Hide the layer
initially.
<a href...>foo</a>
<div style="display:'none';" ...bar</div>

Mick
Dec 1 '07 #2
On 1 Dec, 18:03, Michael White <m...@mickweb.comwrote:
Chris wrote:
I am working with javascript showing/hiding layers.
If I am using a link's onclick to show a layer how do I make the layer
show beside the link? There are many links on the page that may
trigger the one and same layer so absolute positioning doesn't work
for me.
Many thanks,
Chris

Hide and show layer using the its style display property. Hide the layer
initially.
<a href...>foo</a>
<div style="display:'none';" ...bar</div>

Mick
Thanks Mick!

Chris
Dec 2 '07 #3

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

Similar topics

1
by: vince.guzman | last post by:
Need help with showing Layer 4 after menu times out onmouseout _______________________________________________ <html> <head> <script language="JavaScript"> <!-- function mmLoadMenus() { if...
13
by: Razzbar | last post by:
Is there any to tell via javascript the "state" of a link? I mean, I'd like to be able to tell if a link has been followed or not. (hehe, I can hear shrill crys of "privacy!" in the distance...)
2
by: kmnotes04 | last post by:
Is it possible to link one drop-down box to another? For example, if a name is chosen from a drop-down list, can another drop-down list then automatically display the person's office as a result of...
3
by: R.A. | last post by:
Hi I have the web pages developed using c#. When I change the http to https the lock showing the secure site is not showing. Is there more beside changing the http to https to convert the web...
7
by: toby989 | last post by:
Hi I dont know why I am not finding the thing I want. Maybe I am looking at the wrong places. I want to display contents of an htm file one in htm file two. I am well aware of the <img...
4
by: pratham | last post by:
Hi! I'm making a database application and i heard from a friend that it is more proffecional and easy to do this with bussines objects. Can anyone tell me where i can find more info on bussines...
4
by: rsteph | last post by:
I've found a javascript menu download, I've been tweaking it within a testpage, and getting it to look just right. I finally got everything looking right, all I have to do is alter where the links...
1
by: Grimm | last post by:
I am developing an internalk inteface that integrates alot of seperate tools into one interface. The current version uses one Iframe inside a div layer for positioning. Currently the seperate web...
4
by: | last post by:
I often see, on certain websites, to the right of link-text, a number or letter inside angle-brackets, and superscripted (or raised slightly). I've never seen anything explaining what these are...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.