473,830 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.m p3">Jamison</A>
<A HREF="tlw.mp3"> The Long Winter</A>
<A HREF="summer.mp 3">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 1593

"Frank Wood" <Fr********@NOS PAMnetscape.net > wrote in message
news:vS******** ************@co mcast.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.m p3">Jamison</A>
| <A HREF="tlw.mp3"> The Long Winter</A>
| <A HREF="summer.mp 3">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
3941
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 id='myTable' onmouseover="tableMoused(event)"> But, because I may or may not want myTable subject to being "Moused", I want to have something like:
12
12295
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 page: <HTML> <HEAD> <style type="text/css">
7
3345
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 the same element. E.g. <A HREF="#" OnMouseOver="A(); return true" OnMouseOut"B(); return true;"
5
3515
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 works fine as it also does in firefox if I call the contents frame directly (i.e. outside of its frameset). However, if I call my main page (index.html) which invokes the frame set, the contents frame javascript menubar onmouseover function...
2
2733
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. Replicate-Problem: Scrolldown the textbox and put the mouse over a row.
7
2803
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. Replicate-Problem: Scrolldown the textbox and put the mouse over a row.
1
5212
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 position:fixed over it (position:absolute in IE 5 and 6). The menue consists of two parts: an image and a header, both external links, in the upper div;
1
1859
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 wanted to be able when I point my mouse on any of them to replace it with another picture. It is pretty straight forward to do that in html coding as I found out these days, but when I tried to use a onmouseover event in the javascript that creates...
4
3166
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 the mouseover event to occur for the table cells that lie underneath the overflowed span, but every time i put the mouse on the span the mouseover event for the parent table cell is called. Any suggestions? Thanks.
3
4466
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 handler for the onmouseover to the select element (the part currently commented out) I can get the first mouseover of the select element, but not any additional ones. Again, in Firefox, I get all the messages, although they are handled by the...
0
9777
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9635
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10473
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7737
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6939
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5614
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5772
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4407
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 we have to send another system
2
3954
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.