Related Posts

Archive

Pixler 12 - Half Past Somewhere

June 27th, 2006

Pixler 12 Is a working attempt at a JavaScript Paintchat Frontend. That is, in its incompleteness, it has a few features:

  1. A square you can draw on - with custom sizing (enter numbers, hit submit)
  2. Brushes of variable size (type in a number - it will immedaitely generate a new brush!)
  3. Firefox and Internet Explorer Compatibility
  4. Not Eating your processor alive (like my earlier attempts)

Some improvements I plan when the time is to be had:

Posted in JavaScript, PHP |

3 Responses to “Pixler 12 - Half Past Somewhere”

  1. kse Says:

    You can get the image map coordinates from DOM 1. If you can give the AREA tag an id, say “Rect1″, then you can retrieve with: Rect1.coords. You might also need to know shape: Rect1.shape. Careful with shape, though… I’ve testest rectangles and polygons. IE6 returns “RECT” and “POLY”. Netcape 8.0B returns “rectangle” and “polygon.” I never tested Mozilla, but I assume its the same as Netscape. Turns I don’t have a need to check… there will only be rectangles. (I’m pointing a blinking arrow at the place I want them to click to get to the next slide.)

    Or, you can retrieve the coords off the areas array. Here’s a website doing that: http://www.kryogenix.org/code/browser/annimg/annimg.html. He also has his JS source you can download.

    I have had no luck finding a way to get coordinates from Netcape 4. I’m pretty sure document.all.Rect1.coords would work in IE4 (I think it works in IE 6), but I don’t have IE4 to test it.

    And other than this one thing, I know next to nothing about Javascript!

  2. kse Says:

    I have forgotten to mention something important. I could only get this to work (retrieving the coodinates) if the script was in the body of the document BELOW the HTML tags for the map and the areas.

    Somehow kryogenix has his working from a script loading in the HEAD. Wish I understood why.

  3. In the Office Today: Flex 2 » GR[ae]YSCALE Says:

    [...] The Flex 2 Platform - MXML and ActionScript 3 as opposed to an artist oriented client - do have some potential for Pixler, though. Really, when the alternative is a Java Applet, I think Flash would be an improvement. [...]

Previous post: The 263rd Day - Shift

Next Post: Pixler Development - BZR and SSH Notes