Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: How do you make a pixel in javascript


Message #1 by "Colin Horne" <colinhorne@b...> on Sun, 15 Dec 2002 15:43:03
I do it by saying:

<SPAN
style="height:1px;width:1px;background-color:whatever"><TABLE></TABLE></SPAN
>

Bit of a hack, but it works in IE 5.0+ .

Also for IE 5+, you can use VML, a graphics markup language built into the
browser.

No idea about Netscape.

-----Original Message-----
From: Colin Horne [mailto:colinhorne@b...]
Sent: Sunday, December 15, 2002 3:43 PM
To: javascript
Subject: [javascript] How do you make a pixel in javascript


Hey

does anyone know how to make a pixel in javascript? (as in make a pixel
change colour)
i have tried some functions found in google searches, such as:
new Pixel()
setimagepixel()
but niether work
any ideas?
OS:win '95
BROWSER:IE
thanks a lot,
colin



  Return to Index