Your question is better suited to the main jQuery list: http://groups.google.com/group/jquery-en
<http://groups.google.com/group/jquery-en>The list you've posted to is for questions about jQuery UI plugins[*]. Thanks. - Richard [*] http://rdworth.org/blog/2008/10/jquery-plugins-and-jquery-ui/ On Sun, Oct 11, 2009 at 7:10 PM, Fred K <fredrik.kylan...@gmail.com> wrote: > > Hi, I'm new. ;) > I have a jQuery toggle script, which works just as it should, but it > prints text and I want it to print an object instead (specifically an > image object). The script uses the following code to toggle a > container and show different text within the toggle link depending on > if the toggled container is showing or hiding: > > //toggles div > $(document).ready(function() { > $('#toggled').hide(); > $('a#show_toggled').click(function() { > $('#toggled').slideToggle(400); > $(this).text($(this).text() == 'Show options' ? 'Hide options' : 'Show > options'); > return false; }); > }); > > What I would like to do is to present one image for 'Show options' and > another for 'Hide options'. Whether that is done through image > replacement or having the image instead of the text (without CSS > manipulations) doesn't matter, although the latter is better. I'm sure > that this is very simple when you know what to do, but unfortunately I > don't and need someone who does to take pity on my newbie-ness and > show me how to get the dangblasted images in there. That would be > tremendously appreciated. > > Thanks. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@googlegroups.com To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---