SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2006
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Web page with randomly scattered dots in background

    I need little help. I want that my web page should be scattered with random dots generated by some code. I don't want to use images on my page. Is it possible with JAVASCRIPT or any other script? I need help Please

  2. #2
    SitePoint Zealot bobber205's Avatar
    Join Date
    Sep 2006
    Location
    Oregon
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could do this, but it'd be pretty stupid.

    1) Have java script come up with two random numbers.
    2) Have javascript do document.write of a "." and write some <span> tags that have their top and left properties be those random integers via their "style" property.
    3) Repeat and rinse.

    If you do it, make sure to post the results here. I want to see!


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
  •