|
Posted by Nikita the Spider on 10/12/54 11:58
In article <byLOg.46$ht6.39@trndny06>, "Jib" <milk@dotdash.com> wrote:
> My site caters to different languages and the site has directories
> segregated by country, however some of my images are in shared folders. I
> can't (or shouldn't) use 'one language fit all' approach for my alt tags and
> the site structure is a bit complex to re-configuring it. I really want to
> use alt text, so is there any solution that anyone knows about that I can
> use? Maybe javascript mouse over which shows the appropriate text depending
> on which country the user is browsing?? I'm grasping here...
Hi Jib,
You're already using some technique to serve content in different
languages. Why can't you apply the same technique to the <img> tags? So,
if you're using PHP or ASP to write your site's content from a database,
use the same to write the <img> tags with the value of the alt attribute
coming from the database, too. Or if you have static HTML files divided
into language-specific directories (/en/contact.html, /uk/contact.html,
/pl/contact.html, etc.) then use different alt tags in each.
Regardless of whether you're using one of my examples above or something
else, I don't see why the alt text is much different from the rest of
the HTML. But maybe I'm missing something.
BTW I'd steer clear of the Javascript solution. You'll penalize visitors
without JS turned on as well as search engines and other spiders.
HTH
--
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more
Navigation:
[Reply to this message]
|