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

onMouseOver event - Question

Hi, I am cross posting this because I'm not really sure which area (HTML/DHTML,
Javascript, CSS, etc.) I need to post this question in. I'm also fairly new to
all this - please bare with me.

I have a table with two columns and two rows in it. In the upper left corner, I
have a logo image for my company. In the top right column/cell, I have some
navigational stuff, no big deal. In the left cell in the 2nd row, I have a list
of anchors of different songs I am producing - something like this:

<A HREF="jamison.mp3">Jamison</A>
<A HREF="tlw.mp3">The Long Winter</A>
<A HREF="summer.mp3">It's Summertime</A>
....
....

The cell on the right, 2nd row is empty at the start.

On the 2nd row, 1st cell, where the anchors are, on a "mouse over" event, I'd
like to display song lyrics and information regarding the song in the right
cell, 2nd row as the user moves the mouse over a given anchor.

What is the best way for me to do this? There are a couple of things/issues I
can think of right away:

1) Let's say there are 20 anchors in the left column. Let's say that some of
the songs' lyrics are quite lengthy and extend past the height of the cell at
row 2, left column. How would the system know this in advance (this will make
more sense with question #2 below)? Perhaps tell it some type of maximum height
you know will never be reached or something?

2) To me it doesn't make a lot of sense to include all this text in the main
HTML file since a majority of the time, the user(s) will never move their mouse
across ALL the anchors, only one or two. Seems to me there should be some way
of "loading" them as soon as the mouse over event occurs.

Any help with this would be appreciated. To respond via email, please remove
the NOSPAM literal from my address.

thanks,
Frank Wood
Jul 20 '05 #1
1 2889

"Frank Wood" <Fr********@NOSPAMnetscape.net> wrote in message
news:vS********************@comcast.com...
| Hi, I am cross posting this because I'm not really sure which area
(HTML/DHTML,
| Javascript, CSS, etc.) I need to post this question in. I'm also fairly
new to
| all this - please bare with me.
|

Er. Okay.

| I have a table with two columns and two rows in it. In the upper left
corner, I
| have a logo image for my company. In the top right column/cell, I have
some
| navigational stuff, no big deal. In the left cell in the 2nd row, I have a
list
| of anchors of different songs I am producing - something like this:
|
| <A HREF="jamison.mp3">Jamison</A>
| <A HREF="tlw.mp3">The Long Winter</A>
| <A HREF="summer.mp3">It's Summertime</A>
| ...
| ...
|
| The cell on the right, 2nd row is empty at the start.
|

Okay.

| On the 2nd row, 1st cell, where the anchors are, on a "mouse over" event,
I'd
| like to display song lyrics and information regarding the song in the
right
| cell, 2nd row as the user moves the mouse over a given anchor.

Why not just put this information in the title attribute of the links? You
could then optionally change the innerHTML or innerText property of the
bottom right cell to the title text (use the onmouseover and onmouseout
events of the anchor element.)

|
| What is the best way for me to do this? There are a couple of
things/issues I
| can think of right away:
|
| 1) Let's say there are 20 anchors in the left column. Let's say that some
of
| the songs' lyrics are quite lengthy and extend past the height of the cell
at
| row 2, left column. How would the system know this in advance (this will
make

Rows are all the same height in the scenario described above. The second
row would adjust accordingly to fit the new text.

| more sense with question #2 below)? Perhaps tell it some type of maximum
height
| you know will never be reached or something?
|
| 2) To me it doesn't make a lot of sense to include all this text in the
main
| HTML file since a majority of the time, the user(s) will never move their
mouse
| across ALL the anchors, only one or two. Seems to me there should be some
way
| of "loading" them as soon as the mouse over event occurs.

Don't bother with this unless the extra text is massive in length. If it
is, clip it and have a link to the rest.

Jul 20 '05 #2

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

Similar topics

6
by: Csaba2000 | last post by:
How do I achieve the following in javascript, the emphasis being on the NN (6.1) 'event' parameter that needs to be declared? This is the current method - works just fine: <TABLE border...
12
by: Epetruk | last post by:
Hi all, I want a page where the contents of a table cell are replaced with an image when the mouse moves over the cell, and the text is restored when the mouse moves out. Here's the html for the...
7
by: windandwaves | last post by:
Hi Gurus I am trying to make this rather complicated maps with an a huge number of mouseovers and the like. I want to set up a function that OnMouseDown swaps the OnMouseOver and OnMouseOut for...
5
by: Martin Chen | last post by:
I have a frame set (as per MS FrontPage 2000). It has a contents and a main frame. The contents frame has a menu bar written with with javascript (in the context of a table). In IE6.1 everything...
2
by: MrCode2k | last post by:
Hello, Trying to do: I just want a table that I can scroll and that has fixed headers. Problem: I got it to work but when I added the onmouseover event it didn't work anymore....
7
by: MrCode2k | last post by:
Hello, Trying to do: I just want a table that I can scroll and that has fixed headers. Problem: I got it to work but when I added the onmouseover event it didn't work anymore....
1
by: Ciuin | last post by:
Again I need your help. This is the test page I am working on: http://www.manfredkooistra.de/zeugs/test/test.php Description: The page shows a centered image and a navigation menue...
1
by: Goutour | last post by:
Hello, I am a 2-day old Javascript developer :-) and I have a problem. I am trying to do examples I find on net about using onmouse events. I found a javascript that generates flying objects, and I...
4
by: bgold12 | last post by:
Hey, I have kind of a weird problem. I have a span that I'm intentionally overflowing a table cell (<td>), so that it stretches over the table cells to the right of the parent table cell. I want...
3
by: linuskamb | last post by:
It seems, at least as far as my tests show, that Safari does not fire onmouseover for select options. with the code below, I can get all the messages in Firefox, but none in Safari. If I attach a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.