SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Threaded View

  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2010
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    display a random image

    i have the simple code below to display a random image; how can i modify this line to place the random image at 225px wide by 141px high?

    Code JavaScript:
    document.getElementById("highlight_1").src = randomimage1;

    thanks!
    Last edited by paul_wilkins; Jun 14, 2011 at 16:30. Reason: replaced the code-review summary


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
  •