Im using a plugin that requires the rel-element to look like this.
Superbly ugly, but you can use the dreaded eval(), provided that the rel data are "well-formed":
eval()
rel
$(function() { $('a').mouseover(function() { eval('var rel = {' + $(this).attr('rel') + '};'); $('#out').text(rel.smallImage); }); });
With HTML:
link1 link2
Demo.