473,326 Members | 2,136 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,326 software developers and data experts.

Mouse Over Description

kestrel
1,071 Expert 1GB
you know how some images and links on some websites, hav this little yellowish box appear, when you put yout mouse over that image or link?
know what i mean
it has a short description of that image or link.

let me know
Aug 5 '06 #1
4 4540
ronverdonk
4,258 Expert 4TB
You get this by specifying the ALT attribute in the image definition. E.g.

[HTML]<img src="mountain.jpg" alt="Mountains in the sun">[/HTML]

You are advised to ALWAYS use this alt tag in your <img>, then it still displays if the image cannot be loaded.

Ronald :cool:
Aug 5 '06 #2
Banfa
9,065 Expert Mod 8TB
Actually roverdonk thatis not correct, the alt text is not supposed to be displayed like that and it is only IE that does it.

However you can add an attribute title to any tag (I think, certainly works for images and a) which will do the same thing in all browsers

[html]
<img src="mountain.jpg" alt="Mountains in the sun" title="Mountains in the sun">

<a href="//www.bbc.co.uk" title="Go to the BBC website">BBC</a>
[/html]

Note I have left the alt in because this is the text that is displayed if for some reason the image is not displayed (image can't be found, image display switched off in browser, browser does not support displaying images).
Aug 5 '06 #3
kestrel
1,071 Expert 1GB
thank you banfa
again
Aug 5 '06 #4
The main reason for the alt tag is to provide a description of the image for text recognition software, used by the visually impaired accessing the net. You need to provide alt tags to all images to meet accessibility standards, and have your code validated.
Aug 8 '06 #5

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

Similar topics

1
by: Zaidan | last post by:
I am running Excel2000 under WIN98 2nd edition, and I am writing a VBA code (I will consider using javascript if I have to) that does the following, at the user command: 1- Start MS Explorer and...
2
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...
6
by: lauren quantrell | last post by:
I have a command button on a continuous subform and I want the user to click it to open a small popup form that opens in the position of the mouse (which is the same as the position of the command...
2
by: Serge Klokov | last post by:
Hi! 1. Please, help with example "paint on form by mouse" 2. Below is my example, but it clear the line after each Refresh()... how to fix? 3. How to draw the line in Mouse_Move event? ...
4
by: ML | last post by:
I am trying to use the mouse wheel event on a numeric input box to allow the use to scroll to inc/dec the value by 1. The issue I am having is that the delta value returned seems to be off. From...
9
by: Daniel N | last post by:
Is it possible to determine if the image under a mouse changes in VB.net code? For example if I position the mouse using the command; Windows.Forms.Cursor.Position = New System.Drawing.Point(680,...
1
by: SoGA | last post by:
I am trying to insert a simple description as a mouse over for my web site. I do not need the link to be click-able, I just need the information to appear on mouse over, with as little delay as...
1
by: =?Utf-8?B?aG9tYW50Y3c=?= | last post by:
-windows xp -dell dimension 9150 The computer starts normally, loads up the blue login screen. I can move the cursor around the screen and type on keyboard. Then after roughly 3 seconds...
2
by: romain.larmet | last post by:
Hi all, I need to get the mouse cursor's position using JavaScript. Until now, everything was working well in IE, FF and Opera using the event.clientX/Y and e.pageX/Y members, depending on which...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.