XFileSharing Pro - download button

Powerfull XFileSharing version

Moderator: admin

Message
Author
cuty
Posts: 103
Joined: Apr 14, 2009 11:20 pm

download button

#1 Postby cuty » Jun 15, 2009 2:17 pm

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??

admin
Site Admin
Posts: 1801
Joined: Mar 22, 2006 12:32 pm

Re: download button

#2 Postby admin » Jun 16, 2009 5:50 am

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??


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
Posts: 103
Joined: Apr 14, 2009 11:20 pm

#3 Postby cuty » Jun 17, 2009 9:06 am

THANKS!

cuty
Posts: 103
Joined: Apr 14, 2009 11:20 pm

#4 Postby cuty » Jun 19, 2009 9:55 pm

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>

dollarek
Posts: 46
Joined: Jan 11, 2008 5:09 pm

#5 Postby dollarek » Jun 20, 2009 9:44 pm

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:

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>


with:

Code: Select all

<FORM>
<INPUT TYPE="BUTTON" VALUE="Download now" ONCLICK="window.location.href='<TMPL_VAR direct_link>'">
</FORM>


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.

cuty
Posts: 103
Joined: Apr 14, 2009 11:20 pm

#6 Postby cuty » Jun 20, 2009 11:26 pm

not sure you getting what I'm saying though, when I hover over the download button, the link shows in the status bar, I dont want that

dollarek
Posts: 46
Joined: Jan 11, 2008 5:09 pm

#7 Postby dollarek » Jun 20, 2009 11:30 pm

most browsers have disabled this function.

cuty
Posts: 103
Joined: Apr 14, 2009 11:20 pm

#8 Postby cuty » Jun 21, 2009 4:38 pm

dollarek wrote:most browsers have disabled this function.

ooo ok thanx


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests