| Author |
Something interesting I have found with the anchor tag
|
|
| George Hester 2004-07-20, 4:15 am |
| This is in Microsoft Internet Explorer 5.5.
I have one page with 20 thumbnail images in it. Clicking on the =
thumbnail image opens another page with the
full image as its only content. The page with the 20 thumbnails for =
each thumbnail when the mouse is over it the
thumbnail changes its border color to green signifying it is active. =
The thumbnails each have a border color which
highlights when the mouse hovers over it. It turns green being active =
and the next page showing the full image comes
up. The user can then return to the thumbnail page through a link on =
the full image page. When the thumbnail page
is returned to, the thumbnail that was clicked gets a border with the =
same color as the page so that the user can tell
what was clicked by what thumbnails no longer have a border. Get the =
idea?
Now if I have this <a name=3D"f"></a><a href=3D"f.jpg" ...><img =
src=3D"thm_f.jpg" ...></a> and in the full image page <a
href=3D"/#f">Go back</a> the client returns to the page and the clicked =
thumbnail loses its border which is what I
want.
But if I have this <a name=3D"f" href=3D"f.jpg" ...><img =
src=3D"thm_f.jpg" ...></a> and in the full image page <a
href=3D"/#f">Go back</a> then the thumbnail is still green signifying =
active upon return. Which is weird.
Any ideas what's going on here? Thanks.
--=20
George Hester
__________________________________
| |
|
|
| jmm-list-gn 2004-07-20, 7:18 pm |
| George Hester wrote:
>
> But if I have this <a name="f" href="f.jpg" ...><img src="thm_f.jpg" ...></a>
>
<a name="x"> defines a fragment identifier in a document. It does *not*
define a link.
Have you run your page through a validator?
| |
| George Hester 2004-07-20, 7:18 pm |
| Yes I know that. No not yet. But valid or not the issue still occurs. =
When the fragment is used the page focuses at the image and the border =
is gone. Which is what I want. All works well. But if I put the name =
attribute in the anchor with the <img in it then the page focuses at the =
thumbnail only the border is green signifying active. As if you clicked =
the image so that the boder turns green and not letting up on the mouse =
just drag off the image. The border stays green signifying active. =
Some how the name attribute in the <a with the <img in it is the active =
element upon returning to the page as I showed. Don't you think that is =
strange?
--=20
George Hester
__________________________________
"jmm-list-gn" <jmm-list.AXSPAMGN@sohnen-moe.com> wrote in message =
news:7L2dnaCjD4kTwGDd4p2dnA@giganews.com...
> George Hester wrote:
src=3D"thm_f.jpg" ...></a>[color=darkred]
> <a name=3D"x"> defines a fragment identifier in a document. It does =
*not*=20
> define a link.
> Have you run your page through a validator?
>
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |