I am a novice designer who could just use HTML to develop my own website, where I uploaded my emagazine files. This is my planned download page on my website: http://www.aamaodisha.org/secdownload.html
As you can see, on this download page I posted images of 6 issues of my electronic journal and connected the download buttons for each edition so that every time the user clicks the download button, this particular file (.RAR file) will start downloading. As I said, I designed these buttons in simple HTML and CSS.
What I want to have is DOWNLOAD COUNTERS for each issue of the magazine attached to specific DOWNLOAD BUTTONS - which means that you can see on my HTML page the number of downloads that will be recorded below each edition. How to have something like this? Can I have this layout with html?
HTML code for 6 DOWNLOAD BUTTONS:
<div class="button button1"> <a href="#my link">Download</a> <p class="top">Click to begin</p> <p class="bottom">7.54 MB .RAR</p> </div> <div class="button button2"> <a href="#my link">Download</a> <p class="top">Click to begin</p> <p class="bottom">7.8 MB .RAR</p> </div> <div class="button button3"> <a href="#my link">Download</a> <p class="top">Click to begin</p> <p class="bottom">7.05 MB .RAR</p> </div> <div class="button button4"> <a href="#my link">Download</a> <p class="top">Click to begin</p> <p class="bottom">3.8 MB .RAR</p> </div> <div class="button button5"> <a href="#my link">Download</a> <p class="top">Click to begin</p> <p class="bottom">7.5 MB .RAR</p> </div> <div class="button button6"> <a href="#my link">Download</a> <p class="top">Click to begin</p> <p class="bottom">8 MB .RAR</p> </div>
And this is the CSS for the buttons:
.button { width: 115px; } .button1 { position:absolute; left:430px; top:410px; } .button2 { position:absolute; left:632px; top:410px; } .button3 { position:absolute; left:833px; top:410px; } .button4 { position:absolute; left:430px; top:636px; } .button5 { position:absolute; left:632px; top:636px; } .button6 { position:absolute; left:833px; top:636px; } .button a { display: block; height: 28px; width: 115px; color: white; font: bold 11px/28px Helvetica, Verdana, sans-serif; text-decoration: none; text-align: center; text-transform: uppercase; background: #00b7ea; background: -moz-linear-gradient(top, #00b7ea 0%, #009ec3 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00b7ea), color-stop(100%,#009ec3)); background: -webkit-linear-gradient(top, #00b7ea 0%,#009ec3 100%); background: -o-linear-gradient(top, #00b7ea 0%,#009ec3 100%); background: -ms-linear-gradient(top, #00b7ea 0%,#009ec3 100%); background: linear-gradient(top, #00b7ea 0%,#009ec3 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00b7ea', endColorstr='#009ec3',GradientType=0 ); } .button a, p { -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 2px 2px 8px rgba(0,0,0,0.2); -moz-box-shadow: 2px 2px 8px rgba(0,0,0,0.2); box-shadow: 2px 2px 8px rgba(0,0,0,0.2); } .button p { background: #222; display: block; height: 25px; width: 105px; margin: -27px 0 0 5px; text-align: center; font: bold 10px/28px Helvetica, Verdana, sans-serif; color: #ffffff; position: absolute; z-index: -1; -webkit-transition: margin 0.4s ease; -moz-transition: margin 0.4s ease; -o-transition: margin 0.4s ease; -ms-transition: margin 0.4s ease; transition: margin 0.4s ease; } .button:hover .bottom { margin: -4px 0 0 5px; } .button:hover .top { margin: -50px 0 0 5px; line-height: 22px; } .button a:active { background: #00b7ea; background: -moz-linear-gradient(top, #00b7ea 36%, #009ec3 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(36%,#00b7ea), color-stop(100%,#009ec3)); background: -webkit-linear-gradient(top, #00b7ea 36%,#009ec3 100%); background: -o-linear-gradient(top, #00b7ea 36%,#009ec3 100%); background: -ms-linear-gradient(top, #00b7ea 36%,#009ec3 100%); background: linear-gradient(top, #00b7ea 36%,#009ec3 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00b7ea', endColorstr='#009ec3',GradientType=0 ); } .button:active .bottom { margin: -14px 0 0 5px; } .button:active .top { margin: -30px 0 0 5px; }
I have one more doubt: I searched on Google to download counters, and somewhere I read that instead of directly providing the true path of my log file in href, I need to give an alternative path through another php file ie I have this HTML code for download buttons with download
<div class="button button1"> <a href="#my link">Download</a> <p class="top">Click to begin</p> <p class="bottom">7.54 MB .RAR</p> </div>
Should I have something like <a href="/download.php file=my link">Download</a>
?
Please help me implement counters for these download buttons. I will be very grateful. Thank you Relations