Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

StokeLee

macrumors 6502
Original poster
Sorry about the strange heading, im really not sure what to call it.

This is what i want to do.

Im going to change my .mac website, and use the advanced html option.

How can i display a name, or comment, if i hover my mouse over a photo.

What is the html i need to use.

Thank you

Lee
 
<img src="images/happyguy.gif" .... alt="Happy Smiling Guy">

you just need to include alt="something here" in your image tags.
 
dornoforpyros said:
<img src="images/happyguy.gif" .... alt="Happy Smiling Guy">

you just need to include alt="something here" in your image tags.
This is not true, the correct attribute is title, the alt attribute is for alternative text - text meant as a possible replacement for the image to make it accessible to non-graphic browsers (which incidentally include search engines).
The fact that some (but certainly not all) browsers display alt text as a tooltip is actually an error on their part.
Code:
<img src="photo.jpg" title="tooltip text here" alt="alternative text here" />
Hope this helps
 
zosont said:
The fact that some (but certainly not all) browsers display alt text as a tooltip is actually an error on their part.
Code:
<img src="photo.jpg" title="tooltip text here" alt="alternative text here" />
That is right... and why I often put the same text into both the alt and the title attributes, just to be on the safe side... 🙂

Like this (just steaing zosont's example 😉):
PHP:
<img src="photo.jpg" title="tooltip text here" alt="tooltip text here" />
That should work also for the large, stupid majority of browser users... 😉
 
Cool cheers guys,

I want it to show either a comment about the photo, or the person/s name.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.