I’m trying to write some widgets of my own in Javascript. It occurs to me that if I want images to be part of my widgets (like a ‘busy’ icon) then I need to put those images somewhere. Given that I want to use my widgets on any of the websites I work on or on any particular page no matter where it might be located, I am now wondering where to put these files?
Does anyone have a recommendation about where to put image files like this and how to make sure that Javascript knows where to find them? FYI, I’m not a big fan of just using absolute docroot paths (e.g., ‘/images/busy.gif’) because a) I don’t always have the luxury of dedicated development server and b) I might want different skins for different regions of a particular site.
Any input would be much appreciated.