473,738 Members | 3,658 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

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 2584
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

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...
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...
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:
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
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"/>
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
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!
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...
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;
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...
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...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
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...
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();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
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
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.