img captions based on src value match

Posted by Basho on Stack Overflow See other posts from Stack Overflow or by Basho
Published on 2010-04-22T16:33:49Z Indexed on 2010/04/22 18:03 UTC
Read the original article Hit count: 257

Filed under:
|
|
|

I am trying t o create img captions based on src value match.

JQUERY : What is the best way to extract "Author-ABC" from an img with src value wwww.abcd.com/images/imagename_Author-ABC_.jpg and replace the alt value with this value.

DRUPAL : Is there a way to preprocess this a drupal template function and save the value in img alt attribute?

Ideas? Basho

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about drupal