Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Poss to hide filename of loading graphic?

Status
Not open for further replies.

train2

Technical User
Mar 18, 2003
47
0
0
GB

Is there any way of hiding the file name of a loading graphic in the browser status bar? I guess the filename is in the HTML and therefore will be viewable anyway, but just as a first step, any chance in hiding it?

Thanks,
JR
 
Hi mate,

You can't hide it, simply because the browser needs to know where to find it.

You can pass a query string to a script that calls the image, but the path that calls it would still be seen in the source.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
I know you can change the text in the status bar using javascript, like this:
Code:
<body onload=&quot;window.status = 'put your something here'&quot;>
But I suspect that won't change the text in the status bar until after the page (and image) is done loading. Give it a try and see.

Kevin
A+, Network+, MCP
 
You can use a script (PHP or ASP depending on your server ) To call an image from a &quot;hidden&quot; folder, by passing a string from a link.

IE

Code:
<a href=&quot;image.php?Id=203&quot;>This image</a>

or reference it via the img src tag:

Code:
<img src=&quot;image.php?id=203&quot;>

So image.php would contain the variables that would state what folder your images are in, prevent hotlinking, and assign values to your images. If you're not dealing with a Database that would hold your infomration, many scripts would just say number your images 01-XXX .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top