473,399 Members | 3,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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 2570
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********************@giganews.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
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...
1
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...
17
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'...
0
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...
6
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
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. ...
11
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...
35
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! ...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.