Results 1 to 2 of 2

Thread: How to Do htis Voting Mechanism

  1. #1
    Join Date
    Sep 2010
    Posts
    4

    How to Do htis Voting Mechanism

    There is a "voting type mechanism" on www.fmylife.com . Where you can simply press and add your vote, without having to log in. can someone help me find the code for this? I;m rather new

  2. #2
    Join Date
    May 2010
    Location
    Riverside, Ca
    Posts
    241
    HTML Code:
    <a href="#" onclick="addVote(); return false;">Vote!</a>
    
    <script type="text/javascript>
    function addVote(){
    
        // Run ajax function here that changes a database value for the number of votes
    
    }
    </script>
    Some like this perhaps would work, depends on what you need.
    "The generation of random numbers is too important to be left to chance."

Similar Threads

  1. A cool voting system like in amazon.com
    By jonhy.pear in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 08 May 2006, 06:45 PM

Tags for this Thread

Posting Permissions

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