473,508 Members | 2,454 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dropdown menu over text 2 / to see the behavior ...

I would like for users to be able to select from a small number of options
that come from a little drop down menu which then closes.
..
http://www.geocities.com/jweinberg19...on_text00.html
..
In order to see the behavior you should "mouseover" the white-on-black text
segment that says "omnis dolor repellend"
..
the thing is that I don't want for the whole space in the paragraph to be
empty. I just need for the little menu to show and then go away without
disturbing the text and/or other HTML around it
..
After the user makes a selection it should just nicely close.
..
Also I can't figure out how to make the menu close if the user does not
make an selection for a period of time
..
how could you do this?
..
Thanks
jw
Mar 28 '06 #1
3 2557
jw***********@yahoo.com wrote:
I would like for users to be able to select from a small number of options
that come from a little drop down menu which then closes.
.
http://www.geocities.com/jweinberg19...on_text00.html
.
In order to see the behavior you should "mouseover" the white-on-black text
segment that says "omnis dolor repellend"
.
the thing is that I don't want for the whole space in the paragraph to be
empty. I just need for the little menu to show and then go away without
disturbing the text and/or other HTML around it
.
After the user makes a selection it should just nicely close.
.
Also I can't figure out how to make the menu close if the user does not
make an selection for a period of time


<html>
<head>

<style type="text/css" media="all">

body, td {
font-family: Verdana;
font-size: 14px;
margin: 10px;
}

#omnis {
color: white;
background-color: black;
}

..vis {
visibility: visible;
display: block;
background-color: white;
z-index: 1;
position: absolute;
/* what are top and left screen positions */
/* where radios should be displayed on screen */
top: 65px;
left: 150px;
}

..invis {
visibility: hidden;
display: none;
}

</style>

<script language="javascript" type="text/javascript">

// how long radios remain visible after onMouseover ?
var seconds_onMouseover = 10

// how long radios remain visible after selection is made ?
var seconds_selection = 0.5

function show_Radios() {
mytable.className='vis'
setTimeout("mytable.className='invis'",
seconds_onMouseover * 1000)
}

function hide_Radios(choice) {
alert('you chose: ' + choice)
setTimeout("mytable.className='invis'",
seconds_selection * 1000)
}
</script>

</head>

<body bgcolor="silver">

<p>text text text text text text text text text text text text<br>
text text text text text text text text text text text text<br>
text text text <span id="omnis" onMouseOver="show_Radios();">
omnis dolor repellend</span> text text text text<br>
text text text text text text text text text text text text<br>
text text text text text text text text text text text text<br>
text text text text text text text text text text text text<br>
text text text text text text text text text text text text<br>
text text text text text text text text text text text text<br>
text text text text text text text text text text text text<br>
text text text text text text text text text text text text<br>
text text text text text text text text text text text text<br>
text text text text text text text text text text text text<br>
text text text text text text text text text text text text
</p>

<table id="mytable" class="invis">
<tr>
<td>
<form>
<input type="radio" name="op2" checked
onclick="javascript:hide_Radios(0)">all news<br/>
<input type="radio" name="op2"
onclick="javascript:hide_Radios(1)">selected<br/>
<input type="radio" name="op2"
onclick="javascript:hide_Radios(2)">not selected
</form>
</td>
</tr>
</table>

</body>
</html>

--
Bart

Mar 28 '06 #2
Hi,

while trying out your code I noticed firefox was thowing lots of:

"Warning: Element referenced by ID/NAME in the global scope. Use W3C
standard document.getElementById() instead."

errors at me.

I tried to quickly find a way to rid this warning, but could not. Nor
do I exactly know what this especific error mean.

How do you rid it?

otf

Apr 4 '06 #3
onetitfemme wrote:
while trying out your code I noticed firefox was thowing lots of:

"Warning: Element referenced by ID/NAME in the global scope. Use W3C
standard document.getElementById() instead."

errors at me.
Actually, it is "but" a warning, nothing that stops the script from
executing. But you should take it seriously, as it shows that your
code is error-prone.
I tried to quickly find a way to rid this warning, but could not. Nor
do I exactly know what this especific error mean.
You tried

foo

to refer to an element with ID or name "foo".
How do you rid it?


document.getElementById("foo")

if "foo" is the ID of the element.

document.getElementsByName("foo")[0]
or ....elements["foo"]

if "foo" is the name of the element (the second is recommended for form
controls).

Be sure to do proper runtime feature tests before you call either method
or access the object.

<URL:http://pointedears.de/scripts/test/whatami#inference>
PointedEars
Apr 4 '06 #4

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

Similar topics

1
2929
by: middletree | last post by:
For an ASp Intranet app, I have some code that should work, but I am not able to make it happen for some reason, after spending considerable time on this. I am pretty thick when it comes to...
1
1742
by: Mosher | last post by:
Hi all, I am looking for some event handler auto-calc help on a form that takes user input through text fields and dropdown menus. I would like some of the text fields to be auto populated when...
1
3047
by: GatorBait | last post by:
Hi all, I'm using the new ToolStrip control in a project and I'm running into a problem that I'm hoping someone can help me with. I am building the toolstrip in code by adding buttons,...
6
16212
by: nishac | last post by:
Can anyone suggest me how to make my drop down menu work in IE7 too.Its working in other browsers.On mouse over the submenus should be displayed.Am attaching my css code hereby.Anyone please check...
4
2304
torquehero
by: torquehero | last post by:
Hi all :) I have created a horizontal navbar using Xara Menumaker. The Menu items have several dropdown menus. Its a javascript. When the mouse cursor is moved over any menu item, a dropdown...
6
2318
by: adz1809 | last post by:
I have created this horizontal dropdown menu in css which is working fine in IE6+ but isn't firefox, and I have no idea why. here is the code: HTML: <body id="our-travels" class="home"> <div...
1
2408
by: Aad vd Naad | last post by:
Hi, I have create a dropdown menu which looks as expected in Safari (Mac). Viewing it in FF (Mac) or IE6 (Windows) it's a bit messed up. It also seems that when the top level links are clicked...
19
3647
by: Jim | last post by:
Hi, I have two questions/problems pertaining to CSS horizontal dropdown menus and am hoping that someone here can help me out. (1) I'm having a problem centering the menu. I picked up the...
2
2144
by: dorayme | last post by:
After posting similar in another forum a few hours ago, it strikes me I should have subscribed to this group and included it here. There may be a simple js tweak that someone knows or can think of:...
0
7398
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...
0
7502
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...
0
5637
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4716
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3208
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...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
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...

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.