SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast amboy00's Avatar
    Join Date
    Jun 2006
    Location
    Dallas, TX
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Changing property form another function

    maybe I've had my head wrapped around php for too long, because I can't figure this out.

    Code:
    window.onload = function() {
    	var pen = canvas.getContext("2d");
    	pen.lineWidth = 5.0;
    }
    I want to change pen.lineWidth to another value that is set in a different function but I'm not having any luck.

    Any help?
    --chris

  2. #2
    SitePoint Guru
    Join Date
    May 2004
    Location
    santa rosa, ca
    Posts
    969
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you post the code of the other function?
    nondenominational, noncommercial, nonprofit,
    listener-supported, 24-hour, Christian ministry:
    Listen Live Online


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •