Change the image text

Tampanisthebest

New Member
Messages
5
Reaction score
0
Points
0
i'm still not sure if its possible, but here's a prove.

I'm uploading a file in host-a-hosting.com, then i get the link. I prefer to choose the image link than hotlink. I see a file name, file size, etc. on the picture.

Anyone know how to use that trick ?
 

Salvatos

Member
Prime Account
Messages
562
Reaction score
1
Points
18
What I have just used on my own website is making a DIV (or other element) a clickable link. I personally applied that technique to a table row, so my entire table became clickable. You could do the same and put your info into the clickable row instead of making an image out of it.

Here's a clean version of the code if you're interested:

Code:
<table>
 <tr>
  <td onmouseover="this.style.backgroundColor='#c9c4ab'; this.style.cursor='pointer';" onclick="window.location.href='http://example.com'" onmouseout="this.style.backgroundColor='#D8D3BA'">
  <a href="http://example.com">Your file's info and text link (in case the user cannot click the table for some reason (i.e. JavaScript issues))</a>
  </td>
 </tr>
</table>

I don't know how to get your file's info (and even less how to create an image) but that can be helpful for the display.
 

Nahid_hossain

New Member
Messages
28
Reaction score
0
Points
0
I can't access host-a-hosting.com but it seems they have used php and gd. But if only the info's(file name, file size, etc.) are selectable then they have used dynamic css a.k.a css with php. I could make you clear with code if I could access the site.
 
Top