Using and image instead of default title page?
  • Hi nomarginarians,

    I've got prettySociable up and running. It works really well and I'm really happy with it, so thanks for that. However, I'd really like to change the tooltip part (when being dragged) to be an image, rather than the default page title. Is there anyway you could help me out with this?

    You can see my implimentation at www.clubofone.com
  • Scaron,

    Sorry to pester you again, but I've still not been able to sort this out.

    My guess is that I'd have to try and change something here:

    // If no defined title, take the page title
    desc = ($('meta[name=Description]').attr('content')) ? $('meta[name=Description]').attr('content') : "";
    if(attributes.length==1) {
    attributes[1] = ['title',document.title];
    attributes[2] = ['excerpt',desc];
    }

    from line 265 of the jquery.prettySociable.js file. All I want is it to default to an image rather than the browser title. Can anybody help?
  • For anybody reading this in the future, as it seems you're unlikely to find help here ;)

    You need to change line 288 to this

    $(ps_tooltip).find('.ps_s').html("" + " " + "
    " + attributes[2][1]+"");

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!