Home
Templates
Wordpress Templates
Blogger Template
Joomla Templates
PhpBB Templates
HTML And CSS Templates
PLugins
Wordpress Plugins
Joomla Modules
Blogger Gadgets
Coupon Codes
Hosting Coupons
Domain Coupons
Menus
HTML And CSS Menus
Flash Menus
Tutorials
Video Tutorials
Articles
Hosting
Free Hosting
Premium Hosting
Domains
Free Domains
Premium Domains
Earning Money
Google Adsense
Affiliate Marketing
Web Loverz
About Us
Contact Us
Java Scripts
Image Vectors
Widgets
Layouts
Tuesday, July 19, 2011
Bandwidth Calculator Java Script
Bandwidth Calculator Java Script
This script allows you to show a bandwidth calculator and converter on any page of your website.To Use Just copy past the code given below..
Java Script In Action:
Bytes
Kb
Mb
Gb
HTML Code
<form name="bandwidth"><br /> <p><input type="text" name="original" size="20" value=1024> <select size="1" name="units"><br /> <option value="Bytes">Bytes</option><br /> <option value="Kb">Kb</option><br /> <option value="Mb">Mb</option><br /> <option value="Gb">Gb</option><br /> </select> <input type="button" value="Calculate" name="B1" onClick="calculate()"></p></form><br /> <p><br /> <script> /* Bandwidth calculator (credit must stay enclosed) By javascriptkit.com For this and over 400+ JavaScripts, Visit http://www.javascriptkit.com */ var bytevalue=0 function calculate(){ var invalue=document.bandwidth.original.value var selectunit=document.bandwidth.units.options[document.bandwidth.units.selectedIndex].value if (selectunit=="Bytes") bytevalue=invalue else if (selectunit=="Kb") bytevalue=invalue*1024 else if (selectunit=="Mb") bytevalue=invalue*1024*1024 else if (selectunit=="Gb") bytevalue=invalue*1024*1024*1024 alert (invalue+" "+selectunit+" is equal to:\n\n- "+bytevalue+" Bytes\n- "+Math.round(bytevalue/1024)+" Kb\n- "+Math.round(bytevalue/1024/1024)+" Mb\n- "+Math.round(bytevalue/1024/1024/1024)+" Gb\n") } </script><br />
Bandwidth Calculator Java Script
2011-07-19T20:11:00-07:00
Web Lover
Java Scripts|
Search
Change The Language
Be A Part Of Web Loverz
Join Web Loverz
Get Our Latest Updates
Enter your email address:
Sponsors