Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Edit Mouse Over Text


robburne

Recommended Posts

Hi,

 

It's called "alt text" and you should not defeat it for a variety of reasons :)

 

http://www.w3.org/TR/html401/struct/objects.html#h-13.8

 

"Several non-textual elements (IMG, AREA, APPLET, and INPUT) let authors specify alternate text to serve as content when the element cannot be rendered normally. Specifying alternate text assists users without graphic display terminals, users whose browsers don't support forms, visually impaired users, those who use speech synthesizers, those who have configured their graphical user agents not to display images, etc."

 

jon

It's all just ones and zeros....

Link to comment
Share on other sites

Hi,

 

It's called "alt text" and you should not defeat it for a variety of reasons :)

 

http://www.w3.org/TR/html401/struct/objects.html#h-13.8

 

"Several non-textual elements (IMG, AREA, APPLET, and INPUT) let authors specify alternate text to serve as content when the element cannot be rendered normally. Specifying alternate text assists users without graphic display terminals, users whose browsers don't support forms, visually impaired users, those who use speech synthesizers, those who have configured their graphical user agents not to display images, etc."

 

jon

In case you decide to move forward with this anyway, and there are additional reasons not to, such as SEO, I'm sure the image alt text is weighted at least some amount in your ranking score, the easiest way to do this site-wide would be to edit the tep_image function in includes/functions/html_output.php and simply comment out the part where it builds the alt text into the img tag...

 

Richard.

Richard Lindsey

Link to comment
Share on other sites

Many thanks for the reply.....

 

I tried to edit the html_output.php file but with no luck I am afriad. I looked for the tep_image function and changed the folllowing:

 

// alt is added to the img tag even if it is null to prevent browsers from outputting

// the image filename as default

$image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';

 

Chnaged to:

 

$image = '<img src="' . tep_output_string($src) . '" border="0" alt="MY TEXT"';

 

 

A customer is aksing for this so I am just going along with it although of course yes probably not the best for SEO although a stock number unless engineered to contain keywords is going to do very little for SEO!

 

Any ideas what I am doing wrong?

 

Thanks,

 

Rob.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...