* TECRIDIBLE Hey guys,,,
I own a simple site you may already known its based on blog type, publishing applications (apks). Applications are uploaded on different cloud service and shared url by linking it with a attribute, on opening downloading link will i be able to make notification or redirecting page containing texts and redirecting animated image.
2018-03-05 06:04 (edited 2018-03-05 06:06 by TECRIDIBLE ) · (0)
* Disaru * TECRIDIBLE Did you mean, visitor visit your download link but they keep your site in browser?
Maybe something like this?:
<a href="http://download.link" target="_blank">DOWNLOAD</a>
Copy code
2018-03-07 01:08 · (0)
* TECRIDIBLE * Disaru No I didn't mention this i said i wanna show a redirecting page containing thanks for downloading before opening every download link!
2018-03-07 18:35 · (0)
* TECRIDIBLE * Disaru Like landing page before downloading in filelist i want to show a redirecting page before opening a download link
2018-03-07 18:39 · (0)
* Graham * TECRIDIBLE If they are links to external files you could just use a landing page on your site the same as filelist and send the url of the file to it
or maybe based on something like this jquery which shows a js popup when the link is clicked
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
  <script>
  $('#redirect').on("click", "a", function() {
    var href = $(this).attr("href");
    alert("You're trying to go to " + href);
});
  </script>

Copy code
demo http://baretest.xtgem.com/tests/index
This example will show the pop up when links inside the wrapper element with id="redirect" are clicked this stops it showing on other links on the page (like normal navigation links)
2018-03-08 03:27 (edited 2018-03-08 03:56 by Graham ) · (0)
* TECRIDIBLE * Graham This is Not What i expected its a alert but thanks bro,,,, i have a prob in this,,, i need to combine this alert code with my mine
<hr width="100%">
<center><b>Download Application</b><br>Version - Google Drive<br><a href="" class="w3-black w3-round w3-button" target="blank"><br><img src="/images/icon/secure.png" alt="secure"></a></center><hr width="100%">
how to bro???
2018-03-15 19:09 (edited 2018-03-15 19:09 by TECRIDIBLE ) · (0)
* Graham * TECRIDIBLE If you want to send them to another page then use a landing page the same as you would for a filelist and send the real address of the file over as a querystring variable
I still do not 100% understand what you are trying to do
2018-03-16 01:31 · (0)
* TECRIDIBLE * Graham sorry brother i think may confused you here i had attached a screenshot shown before open download link in apk download site, like this i wanna show a redirecting text same like this before opening my site download button is this possible?
2018-03-16 06:21
*
* Screenshot_20180316-204737_1.jpg · image/jpeg · 36.01KB
· (0)
* Graham * TECRIDIBLE yeah i think I understand now I will work on a script
2018-03-16 09:01 · (0)
* Graham * TECRIDIBLE It is still a landing page but it does an auto download on devices that allow it the page expect two query string variables 'file' and 'name'
<h2>Your download is starting</h2>
<div>Thank you for downloading {_$name| this file}</div>
<div> Your download will start Immediately<br />If not please click <a href="{_$file|}?download">Here</a></div>
<a href="<xt:referer />"><button>Go Back</button></a>
<script>
  var fileToDownload = '{_$file|}';

  window.downloadFile = function (sUrl) {
if (/(iP)/g.test(navigator.userAgent)) return false;
    if (window.downloadFile.isChrome || window.downloadFile.isSafari) {
      var link = document.createElement('a');
      link.href = sUrl;
      if (link.download !== undefined) {
        var fileName = sUrl.substring(sUrl.lastIndexOf('/') + 1, sUrl.length);
        link.download = fileName; 
      }
      if (document.createEvent) {
        var e = document.createEvent('MouseEvents');
        e.initEvent('click', true, true);
        link.dispatchEvent(e);
        return true;
      }
    }
// for 'local' files set the following to ?__xt_download=1
    var query = '?download';
    window.open(sUrl + query, '_self');
  }
  window.downloadFile.isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
  window.downloadFile.isSafari = navigator.userAgent.toLowerCase().indexOf('safari') > -1;
 downloadFile(fileToDownload);
</script>

Copy code
Demo http://banana.madpath.com/go
2018-03-17 07:55 (edited 2018-03-18 02:42 by Graham ) · (0)

Online: Guests: 1