473,597 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Something interesting I have found with the anchor tag

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
_______________ _______________ ____
Jul 20 '05 #1
3 2576
On Tue, 20 Jul 2004 04:02:42 GMT, George Hester wrote:
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
Jul 20 '05 #2
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?

Jul 20 '05 #3
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" <jm************ ***@sohnen-moe.com> wrote in message news:7L******** ************@gi ganews.com...
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?

Jul 20 '05 #4

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

Similar topics

9
8795
by: David Ross | last post by:
In some cases, I indicate links with both a small image and also text, both in the same anchor. When I upgrade my pages to incluce DOCTYPE for HTML 4.01 transitional, the underline for the link extends to the image. Without the DOCTYPE, the underline appears only for the text. Is there a way to specify a style that I can use with the DOCTYPE that will allow the underline for text in a link but suppress the underline for an image in...
1
2342
by: teranetsecurity | last post by:
I have a question. I'm working on this website with a treeview style menu coded in php. the menu autocreates itself by pulling data off a mysql database. It has the capabilities to get quite large though and when the page refreshes I want the menu to display at the same place. But The problem is in the anchor tag im putting in there <a name='$name'><a href=$php_self?var=$var&var2=$var2#$name>$name</a> when the link is clicked that point...
17
4340
by: Christopher Nelson | last post by:
I have a menu tree made up of anchors inside list items in a multi-level list that includes HTML like: <ul id='xx'> <li><a href='conf.cgi' class='menu' target='main' title='Configure stuff' onclick='remember("conf.cgi")' onmouseover='handleOver("Configure stuff")'>Settings</a></li> </ul> with the JavaScript:
0
1253
by: xixi | last post by:
hi, we are using db2 udb v8.1 for 64bit window, with fp3. once i do db2dart , i found the report has below error. Traversing extent map for: OTR ID: 6 Parent object ID = 6 pool ID = 4 For all table objects in tablespace: 4 DAT extent anchor: 490496, in pool: 4 Traversing extent map for object type: 0
6
2890
by: Nalaka | last post by:
Hi, Is there a gui control in VS2005 to set a "named anchor"? For an example now I go to the html and write the following code <a name="jumpToThisLocation"/>
10
2693
by: elibol | last post by:
Hi, Is there an event that fires when the back or forward button on a browser is pressed? I need an event to fire when someone clicks the back or forward button after an anchor has been set. Thanks so much for reading about my problem! H
11
2861
by: herman404 | last post by:
Hi everyone, I have a DataGrid that displays data on a dialog application. When the dialog is resized, the datagrid keeps the same shape, We would need the datagrid to keep a relative shape compared to the rest of the dialog when the user resizes it. Any ideas on how to do this? Thanks!
35
2427
by: Logos | last post by:
I asked about this a while ago, and got a great answer and a reference to http://www.javascripttoolbox.com/bestpractices/new.php. I just need to override onclick and return false. No biggie! However, I discovered that my code worked fine in IE (no # in URL after click), but not in FF (# appears in URL after click). Can anyone tell me why? if(link.attachEvent) { eval("link.attachEvent('onclick',function() { GB_show('" +part.strDesc...
1
2523
by: shapper | last post by:
Hello, I am applying a style to a anchor tag. This anchor is created by an ASP.NET page and is inside a list item. I know the style is working because I applied it to the anchor in a page that has only this. .Test { background-color: #101010;
0
7965
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7884
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8270
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
5845
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5423
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2394
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1493
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1230
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.