The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

I need some help for my procrastination project by Spisefisken2007-07-10 04:32:43
  Don't reload the page each time, but regenerate by sazzer 2007-07-10 04:51:40
the dice each time as required.

The "Refresh" link should actually execute a javascript function rather than be a hyperlink. This function should - for each dice - find the checkbox and check if it is selected or not. If it is blank then re-roll the dice and update the image. If it is checked then just move on to the next one.

If you give your images all ids of something like "dice1", "dice2", etc. and your checkboxes all ids of comething like "check1", "check2", etc. then you can get hold of both easily by just doing a document.getElementById("dice" + number) and document.getElementById("check" + number). Then you just re-roll and update the image as required...
[ Reply ]
    Hmph, I should have thought of that by MatthewDBA2007-07-10 04:54:27
    I understand the concept of what you are saying by Spisefisken2007-07-10 04:57:58
      Take a look at this: by sazzer2007-07-10 05:11:39
        This was very helpful by Spisefisken2007-07-10 05:20:01
        Yahtzee! by RetiQlum22007-07-10 05:25:20
        Code this simple is bound to work on by EnzoMatrix2007-07-10 06:34:58
          You'd think that... by sazzer2007-07-10 07:15:22

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)