•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 391,938 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,835 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 414 | Replies: 3 | Solved
![]() |
Hi
i am developing a voting system. i want to show the result as in image.
plz help me. Result.JPG
i am blanck. Can't think how to achive this...
i am developing a voting system. i want to show the result as in image.
plz help me. Result.JPG
i am blanck. Can't think how to achive this...
Accept Challenges and Enjoy Coding... :)
•
•
Join Date: Sep 2007
Posts: 1,054
Reputation:
Rep Power: 3
Solved Threads: 61
What you do is count the amount of votes for each, then do tests on it like:
Now this is based off the image having a max width of 100 pixels. Use simple math and divide where needed to if it is larger or smaller (150 pixels, multiply counts by 1.5.. 50 pixels, multiply counts by .5)
if counts > 0 then 'This is your percentage: counts = (counts/totalcounts) 'This is your image width: imgWidth = Math.Round(counts) else counts = 0 imgWidth = 0 end if
Last edited by SheSaidImaPregy : Feb 27th, 2008 at 9:15 am.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
Similar Threads
- FRONTECH tv tuner card - stuck lost - urgent help needed (PCI and Add-In Cards)
- Urgent help is needed SQL datatypes (Database Design)
- Urgent help needed regarding executing Scripts in AJAX response (JavaScript / DHTML / AJAX)
- URGENT HELP NEEDED - critically important...!!! (Windows NT / 2000 / XP / 2003)
- extreme urgent help needed (Geeks' Lounge)
- Urgent help needed (Database Design)
- Urgent help needed.!!.Please (C)
- URGENT Help Needed With TicTacToe Application Source Code!!! (Java)
Other Threads in the ASP Forum
- Previous Thread: ASP Virgin: Link Combo to Gridview
- Next Thread: installed IIS yet cannot run asp files



Linear Mode