how color background of href'ed img ?

hi

given a long anchor listing;
each item points to an image.

the way i tried it (see later)
is unsatisfactory.

why ?

the images' background is white.
unsatisfactory.
i would rather have the backgrount color of
each and every IMAGE
(not of each and every 'link' to image)
be black or red or yellow or ...
(easier on some old eyes. less glare)


Here is a sample of my unsatisfactory code:


<a href=http://www.webdeveloper.com/forum/archive/index.php/1.png>1</a>
<a href=http://www.webdeveloper.com/forum/archive/index.php/2.png>2</a>
.
.
.
<a href=http://www.webdeveloper.com/forum/archive/index.php/100.png>100</a>

--

how ?????

--
baaaAre you asking for help, or pointing out an epiphany encountered from the mistakes you cite?

And, re:

<a href=http://www.webdeveloper.com/forum/archive/index.php/1.png>1</a>
<a href=http://www.webdeveloper.com/forum/archive/index.php/2.png>2</a>
.
.
.
<a href=http://www.webdeveloper.com/forum/archive/index.php/100.png>100</a>

image names MUST begin with a "letter", never with a "number". So instead of "1.png" <-- (incorrect), it should be something like "a1.png" <-- (correct).

:)

Do you mean that you want the IMAGE to BE the clickable link? If so, then do this:

<a href=http://www.webdeveloper.com/forum/archive/index.php/"a1_image.html"><img src="a1.png"></a> and you'll have the image "a1.png" as the hyperlink to page(or whatever) named "a1_image.html".

-Is this what you are after?

-Joelyou cannot edit the backgroundcolor for images shown as "top-document".
you wil have to open another page that shows the chosen image.

e.g:

your link <a href=http://www.webdeveloper.com/forum/archive/index.php/100.png> should be <a href="showpage.htm?100.png">

then your showpage.htm can look like this
<body bgcolor=pink align=center>
<img id="pic">
<script><!--
LS=location.search;
LS=LS.substring(1,LS.length);
document.getElementById('pic').src=http://www.webdeveloper.com/forum/archive/index.php/LS;
// --></script>
</body>
 
Back
Top