473,382 Members | 1,424 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to hide an image?

Hey,

I've got this code:
<img width=0 height=0 border=0 src="http://url/cgi/counter.pl/teller" >

And i want to make the image invisble. But now i'm getting a small dot.
Anybody knows how to fix this?

thnx.

A.T.
Jul 20 '05 #1
3 24306
Ang Talunin hu kiteb:
Hey,

I've got this code:
<img width=0 height=0 border=0 src="http://url/cgi/counter.pl/teller"


And i want to make the image invisble. But now i'm getting a small
dot. Anybody knows how to fix this?


width and height attributes have a minimum value of 1. You can use
style sheet to set the display attribute to none, and provided you give
the image an id or a name attribute, you can use javascript to
manipulate this.

If all you want is for the image to be invisible, with no image
manipulation in-page, I suggest the following code:

---snip---

---end snip---

Another option is to place this image next to another larger image that
you want to be visible, so people won't notice it.

Since this appears to be a hit counter image, I suspect it would be more
efficient to look at your server logs. Presumably you don't have acess
to them.

--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk

Jul 20 '05 #2
Ok, so i tried this::

<img class="b" width=0 height=0 border=0
src="http://url/cgi/counter.pl/teller" >

and this in the <head>:

<style>
img.b {
display: block;
}
</style>

But that isn't working...

What's wrong with it?
Another option is to place this image next to another larger image that
you want to be visible, so people won't notice it. That's not very nice
Since this appears to be a hit counter image, I suspect it would be more
efficient to look at your server logs. Presumably you don't have acess
to them.

I haven't got much acces permission , otherwise i would be done hours ago...
:-(
Jul 20 '05 #3
Ang Talunin hu kiteb:
Ok, so i tried this::

<img class="b" width=0 height=0 border=0
src="http://url/cgi/counter.pl/teller" >

and this in the <head>:

<style>
img.b {
display: block;
}
</style>

But that isn't working...

What's wrong with it?


Try

<style type="text/css">
<!--
img.b { display: none; }
// -->
</style>

Note the keyword "none". Also, as I said earlier, width=0 is NOT a valid
attribute. Only integers 1 or greater are valid. Same goes for height.

One point: If you do successfully set it not to show, some browsers
might 'intelligently' decide to save bandwidth by not downloading a file
that the browser knows won't be displayed at all.
Another option is to place this image next to another larger image
that you want to be visible, so people won't notice it.

That's not very nice


Neither are images that serve no useful function in the interface from
the visitor's pov.

Last point, if you are actually paying for your web space as a
particular service (as opposed to, say, web access plus web space as a
package), and they wont give access to logs at all, complain loudly.

--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Leon Lien | last post by:
I need to hide my video streaming source URL such as mms:\\123.11.123.24\test.wmv I know how to hide image source using another ASP at the <img src=> tag. But what about streaming Video ? Is...
5
by: Jay | last post by:
Difficult to explain but.... I have a form. Inside the form is a table (2 columns). 1st column has text. Click on the text and a hidden div appears in the 2nd column and contains a textarea....
0
by: Tim::.. | last post by:
Please, please, please help!!! I have a datagrid that displays a list of contacts on our intranet site using the ActiveDirectory as it's main Data Source. I want to be able to show an image of...
2
by: Manny Chohan | last post by:
Hi guys, I have two images in each row of datagrid. I need to hide one in the first row and the second in the last row. Can someone please let me know how i can implement this in VB .net? ...
1
by: Shapper | last post by:
Hello, I have an ASP:Datagrid where in each record I display an image. The image I display can be one of two depending of the value of the field "Level" of that record. So for each record:...
10
by: FX | last post by:
I wanna publish a script on my site which allows me to hide image source. i have rough idea abt it. i`ll point src to some php page like: <img src="image.php"> & in tht php wat exactly shud be...
6
by: jesper_lofgren | last post by:
Hi, I wonder if its possible to show and hide a image with javascipt. I want the image to disapear from bottom and up very smooth, maybe under 3-4sec. Is it possible ? any tips ? Thanks
0
by: =?Utf-8?B?Sm9uIEdvbnphbGVz?= | last post by:
I have this email composed using System.Net.SmtpClient. I am successful in attaching image on the email and shows it to the body of the message by using HTML Tag <img src=image.jpg />. But the...
2
by: thorlock | last post by:
Hello! Please help a fellow newbie out and guide me of how to hide an image in a Flash script... I suppose it's the _visible=false; command that you should use, but it DOES NOT WORK. Thanks a...
6
by: gs430mw | last post by:
I am trying to hide an image in a formview if the imageurl is blank. Site is driven by database - and if there is nothing in the database as a picture filename then I want to hide the image - If...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.