I’m working on a rather complex issue with JavaScript/CSS, and was hoping to see if anyone had ideas that might help point me in the right direction.
On one of my websites ([url]http://tcdb.grinnell.edu/map/
The CSS for this can be found here (the relevant CSS is on lines 147-220): [url]http://code.google.com/p/gctechmap/source/browse/trunk/css/labmap.css
It took me quite a while to generate the CSS for these positions by hand so that the icon would align perfectly over the location to which it corresponds. Now, I’m making “maps” of each computer lab to show, similarly, which individual computers are available or unavailable at a given time. So I have an image ([url]http://tcdb.grinnell.edu/map/pictures/lab_sketchups/scilab.png
Basically, since I’ll be doing this for a number of labs, I thought it might be nice to be able to drag icons into a given place (see [url]http://www.hunlock.com/examples/dragdroppic.html[url]http://interface.eyecon.ro/demos/sort.html
Note that I haven’t done much with AJAX, but I’d imagine I could read an X Y position of a given icon with JavaScript, and (having assigned a name to that icon) pass that information to a script on the server that could start writing data to a CSS file with the relevant information. But how exactly I might go about that is the bigger issue : )
If anyone has any suggestions or ideas, I’m all ears!
Cheers,
Dill