XFileSharing Pro - download button
download button
For those of us who have img download buttons , when we hover over the download button everyone sees the location where the file is being downloaded from.How can we hide the location??
Re: download button
Use javascript (create function with location=.. and then call it on image click). Anyway, URL will be visible in HTML code of this page.cuty wrote:For those of us who have img download buttons , when we hover over the download button everyone sees the location where the file is being downloaded from.How can we hide the location??
I tried both but they dont work. help me out please
<a href="<TMPL_VAR direct_url>" style="font-size:12px;" onMouseOver="window.status='Now Downloading from sibsoft.....'; return true;" onMouseOut="window.status=''; " target="_top"><img src="images/download_btn.jpg" border="0" width="468" height="60"></a>
<script>
function a(){
window.statusbar.visible = false;
}
</script>
---html
<a href="<TMPL_VAR direct_url>"><img src="/images/download_btn.jpg" onMouseOver="return a()" border=0> </a>
<a href="<TMPL_VAR direct_url>" style="font-size:12px;" onMouseOver="window.status='Now Downloading from sibsoft.....'; return true;" onMouseOut="window.status=''; " target="_top"><img src="images/download_btn.jpg" border="0" width="468" height="60"></a>
<script>
function a(){
window.statusbar.visible = false;
}
</script>
---html
<a href="<TMPL_VAR direct_url>"><img src="/images/download_btn.jpg" onMouseOver="return a()" border=0> </a>
Right.
If you do not care much about format of the link, you may hide it as a button (and then you can css it so it looks better on your site)
But anyway, user will be able to look up at the link in the source code.
*This solution will not count any more how many times file got downloaded.
At the download2.html file
Find and replace this:
with:
If I think of anything better I will post it here. But the problem is that firefox allows you to prevent scripts to the status bar, and Opera just ignores anything like that. Same goes to Chrome. I.E 5 they work good.
If you do not care much about format of the link, you may hide it as a button (and then you can css it so it looks better on your site)
But anyway, user will be able to look up at the link in the source code.
*This solution will not count any more how many times file got downloaded.
At the download2.html file
Find and replace this:
Code: Select all
<span style="background:#f9f9f9;border:1px dotted #bbb;padding:7px;">
<a href="<TMPL_VAR direct_link>"><TMPL_VAR direct_link></a>
</span>
Code: Select all
<FORM>
<INPUT TYPE="BUTTON" VALUE="Download now" ONCLICK="window.location.href='<TMPL_VAR direct_link>'">
</FORM>