HighDots Forums  

Something interesting I have found with the anchor tag

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Something interesting I have found with the anchor tag in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
George Hester
 
Posts: n/a

Default Something interesting I have found with the anchor tag - 07-19-2004 , 11:02 PM






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="f"></a><a href="f.jpg" ...><img src="thm_f.jpg" ...></a> and in the full image page <a
href="/#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="f" href="f.jpg" ...><img src="thm_f.jpg" ...></a> and in the full image page <a
href="/#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.

--
George Hester
__________________________________

Reply With Quote
  #2  
Old   
Andrew Thompson
 
Posts: n/a

Default Re: Something interesting I have found with the anchor tag - 07-19-2004 , 11:13 PM






On Tue, 20 Jul 2004 04:02:42 GMT, George Hester wrote:

Quote:
I have one page..
Got one URL for that page, George? Or should
we just apply our scrying skills? ;-)

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology


Reply With Quote
  #3  
Old   
jmm-list-gn
 
Posts: n/a

Default Re: Something interesting I have found with the anchor tag - 07-20-2004 , 12:59 PM



George Hester wrote:
Quote:
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?



Reply With Quote
  #4  
Old   
George Hester
 
Posts: n/a

Default Re: Something interesting I have found with the anchor tag - 07-20-2004 , 05:23 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?

--
George Hester
__________________________________
"jmm-list-gn" <jmm-list.AXSPAMGN (AT) sohnen-moe (DOT) com> wrote

Quote:
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?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.