473,396 Members | 1,785 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,396 software developers and data experts.

Troubles with objects heritage.

Hello,

I am trying to a onMouseover to the change the background of <td>s when
the mouse is on, the problem is that does not work when we put the
content of these <td>s inside another table thanks to innerHtml.

I simplified as possible the source and you can check this here:
http://cult.free.fr/test_menu/test_menus.html

So,
When the mouse is on the vertical level of "Categories" we put the
content of right table inside the down table:

function dis_firstmenu() {
document.getElementById('deep_0').innerHTML =
document.getElementById('menui_' + -1).innerHTML ;
}

Next, when the mouse go through the cells ( Vacances, Bricolage,
Toulouse, Soirees ) this change the <td> background of the right table
instead of changing the background of the down table cells.:
document.getElementById('td_' + up + '_' +
id_on).style.backgroundImage='url(menu_on.png)' ;

Does anyone know how to manage to make backgrounds change in the down
table knowing that I must use the function bgmenu_on(up, id_on) {...}
and cannot use any <td onMouseover="this.backgroundImage=...">

Thank you,
Vincent.

Jul 23 '05 #1
1 1126
On Tue, 27 Apr 2004 01:14:33 +0200, Vincent M. <cu**@free.fr> wrote:
I am trying to a onMouseover to the change the background of <td>s when
the mouse is on, the problem is that does not work when we put the
content of these <td>s inside another table thanks to innerHtml.

I simplified as possible the source and you can check this here:
http://cult.free.fr/test_menu/test_menus.html


[snip]

Take a look at an example I wrote:

<URL:http://www.mlwinter.pwp.blueyonder.co.uk/clj/vincent/menu.html>

I don't know how much use this will be to you, but if it looks promising
and you have trouble adapting it, post a full version of the page you want
this to work with.

As the background images you use don't seem to be necessary, the example
uses a background colour. However, the code that would use the images is
included in the page, it's just commented out. Don't forget that you can
change the URLs to make them relative rather than absolute.

Good luck,
Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 23 '05 #2

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

Similar topics

1
by: Eddie Fisher | last post by:
Hello, I am new to this newsgroup. I came here looking for help on an odd error: I am currently attempting to make a program that tracks statistics . It is supposed to write and read objects...
15
by: Improving | last post by:
I have a template class that has static members, so in the .cpp file I have defined them with templated definitions. Now when in a different ..cpp file that includes the header file for the...
0
by: stephane parenton | last post by:
hi everyone.... i'm having a slight problem understanding something.... I've bought a book about programming postgres, and there's a part concerning heritage.... so as i need to implement something...
0
by: stephane parenton | last post by:
Hi everyone, I'm trying to understand the heritage with postgres.... I have a table called iface with (Physik macaddr UNIQUE, logik cidr) and another table called komputer with (OS...
16
by: Chris | last post by:
Hi, I am using the try catch finally block in many places in my code. When a create an sqldatareader dr and try to close it in my finally block I get the error: use of unsigned local variable....
2
by: Sebastian Davancens | last post by:
Hi everyone. Im having a problem with heritage. The situation is the following: I have two tables, tbl_everyone and tbl_employees. tbl_employees inherits from tbl_everyone. In tbl_everyone, i...
18
by: Istvan Albert | last post by:
Hello all, I've been debugging the reason for a major slowdown in a piece of code ... and it turns out that it was the zip function. In the past the lists that were zipped were reasonably short,...
5
by: Alexandre Badez | last post by:
Hye, I'm developing a little app, and I want to make multi heritage. My problem is that my both parent do have __slots__ define. So I've got something like: class foo(object): __slots__ = ...
7
by: anonymous | last post by:
I have a pretty basic class, "Cube", that has a COM pointer member. The default constructor initializes this pointer using the correct API functions, the copy constructor copies the pointer and calls...
6
by: Ruben | last post by:
re-reviewing the chapter in Lippan and Lajoie C++ Primer the have a section on references that I don't understand and just makes e shake my head believing that any behavior is possible with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
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
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
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,...

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.