Results 1 to 10 of 7098

Threaded View

  1. #11
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Image Handler 2 Support

    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
    Code:
    // 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

    Code:
    // 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
    Last edited by nigelt74; 18 Jun 2010 at 12:36 AM.

 

 

Similar Threads

  1. v150 Image Handler 4 (for v1.5.x) Support Thread
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1687
    Last Post: 17 Nov 2024, 07:26 PM
  2. v139h Image Handler 3 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1095
    Last Post: 2 Oct 2017, 12:42 PM
  3. Image Handler Support Please
    By nadinesky in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Sep 2013, 03:47 PM
  4. Image handler only covers part of screen
    By shaneburton in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 May 2009, 07:15 PM
  5. Is Image Handler the only way to go?
    By wwwursa in forum Installing on a Windows Server
    Replies: 2
    Last Post: 23 Dec 2007, 09:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR