New Zenner
- Join Date:
- May 2010
- Location:
- UK
- Posts:
- 86
- Plugin Contributions:
- 0
Post #6961 by pookiehair
nigelt74:
Ok Corrected version - sorry was having issues with browser caching
This isn't an image handler thing, it is to do with Zencarts support for accessibility
But any way, it appears IE8 supports the alt tag correctly (a mod couldn't dlete my last to posts please), by not showing an image hover.
Find your \includes\functions\html_output.php file make a backup of the file
around line 197
// 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="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';
if (zen_not_null($alt)) {
$image .= ' title=" ' . zen_output_string($alt) . ' "';
}
>
> and replace it with this
>
> ```
// 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="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';
if (zen_not_null($alt)) {
$image .= ' title=""';
}
The above should work in all browsers except IE6, and it doesn't really effect the accessibility because the alt tag is still in place
Please can you tell me if this is still the best way to fix this problem?
I am using ZC version 1.3.9h and Image Handler 2, also since yesterday have installed Categories Dressing.
Im sure the problem wasnt there yesterday but today I have the alt tag coming right over the image on hover which looks awful.
Hover over these images and you will see the problem.
http://towerhousedolls.co.uk/demo/index.php?main_page=index&cPath=47
Any help would be appretiated :smile:



