Doh ... I thought of the solution 3 seconds later ... just add a class that is defined in the css file instead of changing the actual style
On Oct 10, 12:37 am, bleen <[EMAIL PROTECTED]> wrote: > I have this: > > $('#id').click( function(){ $(this).css('background-image','url(images/ > img.jpg)'); } ); > > Problem is that I want to use a path (images/img.jpg) that is relative > to my CSS file, not to the current page... The obvious first question > will be "why not just put /path/to/images?" The answer is I'm trying > to incorporate something into a drupal module and so I cannot be > certain of what the full path will be. > > Thoughts? > > Alex