473,698 Members | 2,051 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

To display text for mouse over images

23 New Member
I want to display text for no. of images when i move mouse over them.
Can anybody help?

Thanks
Mar 7 '07 #1
8 22261
AricC
1,892 Recognized Expert Top Contributor
I want to display text for no. of images when i move mouse over them.
Can anybody help?

Thanks
Are you talking about tooltips?
Mar 8 '07 #2
javakid
23 New Member
Are you talking about tooltips?

No, I am not looking for tooltip

I have logos of companies on left side vertically. i want to have their description when i move mouse over them. Is it possible using HTML or css or javascript.

Thanks
Mar 8 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
I assume you want to display the text in a static place (not following the mouse).

You can still achieve that using tooltips (by setting a few parameters), or alternatively, just use the visibility style property of a div that contains the info. and set it to 'visible' onmouseover and 'hidden' onmouseout.

What code do you have?
Mar 9 '07 #4
javakid
23 New Member
I assume you want to display the text in a static place (not following the mouse).

You can still achieve that using tooltips (by setting a few parameters), or alternatively, just use the visibility style property of a div that contains the info. and set it to 'visible' onmouseover and 'hidden' onmouseout.

What code do you have?

Thanks for your help

Now i have got the code and it is working fine in IE but it is not running on Firefox
The action is, when i move mouse over my image the description is displayed on right side of image and on mouseout description again goes off .

But it is not working in FIrefox.
Code is as below:


javascript code:

function toggleVisibilit y(me){
if (me.style.visib ility=="hidden" ){
me.style.visibi lity="visible";
}
else {
me.style.visibi lity="hidden";
}
}

Html Part:

<table>
<tr><td>
<a href="" onmouseover=tog gleVisibility(f irst); onmouseout=togg leVisibility(fi rst)>
<img src="logos/Texas.jpg" width="160" height="50" border="1" alt=""></a>
</td>
<td>

<div id=first style="position :relative; visibility:hidd en"> <strong>Texas </strong><strong> Instruments </strong>Burrbrow n, Unitrode, Benchmarq, TI-RFid, DSP, MCU, Logics, Analog Circuit,Motor protector, Thermostat, Battery Protector.&nbsp ; </div>
</td></tr></table>
Mar 9 '07 #5
pronerd
392 Recognized Expert Contributor
Another option at lest for IE would be to add the alt attribute to the images. This would allow the alt text to be displayed when the user lets their cursor hover over the image.
Mar 9 '07 #6
acoder
16,027 Recognized Expert Moderator MVP
Another option at lest for IE would be to add the alt attribute to the images. This would allow the alt text to be displayed when the user lets their cursor hover over the image.
That's not the correct behaviour. Should use the title attribute for that.
Mar 12 '07 #7
acoder
16,027 Recognized Expert Moderator MVP
Thanks for your help

Now i have got the code and it is working fine in IE but it is not running on Firefox
The action is, when i move mouse over my image the description is displayed on right side of image and on mouseout description again goes off .

But it is not working in FIrefox.
Code is as below:


javascript code:

function toggleVisibilit y(me){
if (me.style.visib ility=="hidden" ){
me.style.visibi lity="visible";
}
else {
me.style.visibi lity="hidden";
}
}

Html Part:

<table>
<tr><td>
<a href="" onmouseover=tog gleVisibility(f irst); onmouseout=togg leVisibility(fi rst)>
<img src="logos/Texas.jpg" width="160" height="50" border="1" alt=""></a>
</td>
<td>

<div id=first style="position :relative; visibility:hidd en"> <strong>Texas </strong><strong> Instruments </strong>Burrbrow n, Unitrode, Benchmarq, TI-RFid, DSP, MCU, Logics, Analog Circuit,Motor protector, Thermostat, Battery Protector.&nbsp ; </div>
</td></tr></table>
Works fine in Firefox.
Mar 12 '07 #8
jaballah
1 New Member
Works fine in Firefox.
I tried the code quoted in the thread, and it does not work in Firefox. It does work in IE.
Apr 21 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

3
5178
by: Steve | last post by:
Hi, I have a nice little script that works well displaying images on my website. It's a script where if you clik a thumbnail image a pop up window opens that contains a larger version of the same image. What I would like to create is a link that can be clicked on to close the window that contains the larger image. This would make it easier for the users to close the window. I have posted the script that I use. Any help would be much...
1
4147
by: BB | last post by:
Thanks for the reply, previously, to my query. An issue has been raised, the code below is used for css buttons and is contained in an external .css file: plang.css This html is a left-side navbar kinda thingie. When the mouse floats over the defined area the text changes to bold and another color, while the background is also changed to another color. The button text is followed by a line seperator (navline.gif). The concern: moving...
10
2748
by: Oliver | last post by:
Hello, i'm having trouble with a css type popup. It's not doing what i want in Mozilla 1.6 and in IE6.0 it's not working at all. The html code looks like this: <div class="themenkueche" id="tk"> <h1>Themenk&uuml;chen</h1> <p>
3
4525
by: peter pilsl | last post by:
When putting a picture with an alt-text to Internetexplorer, the content of the ALT-Text is displayed when the mouse is moving over the picture. This is not what I expected. The ALT-text should appear when the images cannot be displayed but IE displays both. All other browers (firefox, konqueror, safari ...) do well. This gets especially annoying if the picture is actually displaying a text and the alt-text is the same text and you see...
2
6461
by: meganrobertson22 | last post by:
Hi- I'd like to try to have text displayed when I move my mouse over a command button. For example: let's say I have a form with 3 different command buttons. Each command button launches a different report. For example:
2
19857
by: Mamatha | last post by:
Hi I want to add an icon to the textbox's text. I don't know how to display icon in textbox in VB.NET. If any one knows please let me know. Thanks in advance. Mamatha
3
2297
by: Mark Szlazak | last post by:
The following page simulates a pool cue and cue ball: http://members.aol.com/myscript/cue.html Mouse cursor position around the cue ball determines where a roll-over of 179 pool cue images is placed around the ball and which one of those images is displayed. Each pool cue image is in a slightly different orientation and the correct one is chosen to match the orientation of the cursor around the ball. Holding down the left mouse button...
9
6226
by: Edward | last post by:
IE6 only displays certain text on my site if you mouse over it (!). I reduced the HTML down to this code below which still shows this effect/bug. My temporary solution was to take out all the comments from my HTML. I reproduced this effect on two computers which use IE6. Why will IE6 not show the first line of text below when the page loads? To see this effect for yourself, view this page online at:
2
3261
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully validated my HTML and CSS code. 1. When I clear cache and refresh my webpage, it takes 3 tries before the popup window displays - I click on the button once, a white window the size of my webpage displays. I close it and click on the button again (for...
0
8671
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
8598
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
9016
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
8887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6515
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
5858
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
4360
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
4613
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2321
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.