473,287 Members | 1,714 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,287 software developers and data experts.

<a name="#top">

Hi Group...

<a name="#top"></a>

----del----

----del----

<img SRC="images/top.gif" USEMAP="#top" BORDER=0>
<map NAME="top">
<area SHAPE=RECT COORDS="2,1,33,15" HREF="#top" ALT=""
OnMouseOut="window.status=''; return true"
OnMouseOver="window.status='';
return true">
<area SHAPE=default HREF="#top">
</map>

Why does the code above work with: (all current versions)

IE
Netscape
Firefox

But not with Opera?

Gufus

.... Why glue my bills together? It's a mail bonding ritual.
Aug 19 '05 #1
16 4392
On Fri, 19 Aug 2005 23:35:40 GMT, NO**********@shaw.ca (Gufus) wrote:
Hi Group...

<a name="#top"></a>

----del----

----del----

<img SRC="images/top.gif" USEMAP="#top" BORDER=0>
<map NAME="top">
<area SHAPE=RECT COORDS="2,1,33,15" HREF="#top" ALT=""
OnMouseOut="window.status=''; return true"
OnMouseOver="window.status='';
return true">
<area SHAPE=default HREF="#top">
</map>

Why does the code above work with: (all current versions)

IE
Netscape
Firefox

But not with Opera?

Gufus

... Why glue my bills together? It's a mail bonding ritual.


I don't know, but I'll bet a nickel it will work in Opera
if you make it:

<a name="#top">&nbsp;</a> or anything else as marker.

Mason C
Aug 20 '05 #2

Gufus wrote:
<a name="#top"></a>


<a name="top">&nbsp;</a>

you only use "#" for the link (i.e. <a href="#top">) also you don't
have to use the a tag you could use any tag.

<div id="wrapper">....blah...<a href="#wrapper">TOP</a></div>

Aug 20 '05 #3
NO**********@shaw.ca (Gufus) wrote:
<a name="#top"></a>

Why does the code above work with: (all current versions)

IE
Netscape
Firefox

But not with Opera?


Because of your faulty code, use <a name="top"></a>

--
Spartanicus
Aug 20 '05 #4
NO**********@shaw.ca (Gufus) wrote:
<a name="#top"></a> - - <img SRC="images/top.gif" USEMAP="#top" BORDER=0>
<map NAME="top">
<area SHAPE=RECT COORDS="2,1,33,15" HREF="#top" ALT=""
OnMouseOut="window.status=''; return true"
OnMouseOver="window.status='';
return true">
<area SHAPE=default HREF="#top">
</map>

Why does the code above work with: (all current versions)


It doesn't. Saying so just tells you didn't test properly.
What would happen when you turn images off? Besides, there's no
point in what it "does". You have a completely useless and contrived link
to the start of a page.

On the technical side, if you make the obvious fix from name="#top" to
name="top", you create yet another problem: you would both an <a> element
with name="top" and a <map> element with name="top". Although this does not
seem to violate any specific requirement, it is illogical and takes an
unnecessary risk - browsers could get confused, and it is easy to avoid
this by inventing another name.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Aug 20 '05 #5
Hi Mason,

Saturday August 20 2005, Mason A. Clark writes to Gufus:
Nope... sorry, I gave it a marker to go too and still broken with
Opera, I did
notice it does now go to the top of the page better. <smile>

Works with (IE, Netscape, Firefox) but still not with Opera. :(
From: ma*************@ix.netcom.com On Fri, 19 Aug 2005 23:35:40 GMT, NO**********@shaw.ca
(Gufus) wrote:
Hi Group...

<a name="#top"></a>

-+--del-+--

-+--del-+--

<img SRC="images/top.gif" USEMAP="#top" BORDER=0>
<map NAME="top">
<area SHAPE=RECT COORDS="2,1,33,15" HREF="#top" ALT=""
OnMouseOut="window.status=''; return true"
OnMouseOver="window.status='';
return true">
<area SHAPE=default HREF="#top">
</map>

Why does the code above work with: (all current versions)

IE
Netscape
Firefox

But not with Opera?

Gufus

... Why glue my bills together? It's a mail bonding
ritual.

I don't know, but I'll bet a nickel it will work in Opera
if you make it: <a name="#top">&nbsp;</a> or anything else as marker. Mason C -+- SoupGate-Win32 v1.05
+ Origin: Calgary Organization CDN Fidonet-Internet Gateway
(1:134/77.10)


Gufus

.... I Think Therefore I Am ... a programmer.
Aug 20 '05 #6
Friday August 19 2005, logic_earth writes to Gufus:

Nope still broken with Opera, but IE, Netscape and Firefox works, this
is the
code I'm still using.

<a name="#top">&nbsp;</a>

---webpage---
---webpage---

<img SRC="images/top.gif" USEMAP="#top" BORDER=0>
<map NAME="#top">
<area SHAPE=RECT COORDS="2,1,33,15" HREF="#top" ALT=""
OnMouseOut="window.status=''; return true"
OnMouseOver="window.status=''; return true">
<area SHAPE=default HREF="#top">
</map>

Any more ideas?

From: lo********@gmail.com Gufus wrote:
<a name="#top"></a>
<a name="top">&nbsp;</a> you only use "#" for the link (i.e. <a href="#top">) also
you don't have to use the a tag you could use any tag. <div id="wrapper">....blah...<a
href="#wrapper">TOP</a></div> -+- SoupGate-Win32 v1.05
+ Origin: Calgary Organization CDN Fidonet-Internet Gateway
(1:134/77.10)


Gufus

.... Gold's Law: If the shoe fits, it's ugly.
Aug 20 '05 #7
Hi Jukka,

Saturday August 20 2005, Jukka K. Korpela writes to Gufus:
From: jk******@cs.tut.fi It doesn't. Saying so just tells you didn't test properly.
What would happen when you turn images off? Besides, there's
no point in what it "does". You have a completely useless
and contrived link to the start of a page.
Okay.

On the technical side, if you make the obvious fix from
name="#top" to name="top", you create yet another problem:
Sorry still won't work with Opera, and if I change the code to this, IE
and
Opera stoped working. :(

<a name="top">&nbsp;</a>

--webpage--
--webpage--

<img SRC="images/top.gif" USEMAP="#top" BORDER=0>
<map NAME="#top">
<area SHAPE=RECT COORDS="2,1,33,15" HREF="top" ALT=""
OnMouseOut="window.status=''; return true"
OnMouseOver="window.status=''; return true">
<area SHAPE=default HREF="top">
</map>
Ideas?
you would both an <a> element with name="top" and a <map>
element with name="top". Although this does not seem to
violate any specific requirement, it is illogical and takes
an unnecessary risk - browsers could get confused, and it is
easy to avoid this by inventing another name. --
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html -+- SoupGate-Win32 v1.05
+ Origin: Calgary Organization CDN Fidonet-Internet Gateway
(1:134/77.10)


Gufus

.... The ultimate Law: All general statements are false.
Aug 20 '05 #8
Gufus wrote:
Hi Jukka,

Saturday August 20 2005, Jukka K. Korpela writes to Gufus:
> From: jk******@cs.tut.fi
> It doesn't. Saying so just tells you didn't test properly.
> What would happen when you turn images off? Besides, there's
> no point in what it "does". You have a completely useless
> and contrived link to the start of a page.


Okay.
> On the technical side, if you make the obvious fix from
> name="#top" to name="top", you create yet another problem:


Sorry still won't work with Opera, and if I change the code to this, IE
and
Opera stoped working. :(


You changed it from one piece of bad code to another. How about NOT
putting a # sign in ANY of the NAME attributes, where it doesn't belong?
The # isn't part of the name, it's a marker used in a URL to indicate
that whatever follows it is a reference to something within the current
page. The # itself isn't part of that reference.

<a name="top">&nbsp;</a>

--webpage--
--webpage--

<img SRC="images/top.gif" USEMAP="#top" BORDER=0>
<map NAME="#top">
<area SHAPE=RECT COORDS="2,1,33,15" HREF="top" ALT=""
OnMouseOut="window.status=''; return true"
OnMouseOver="window.status=''; return true">
<area SHAPE=default HREF="top">
</map>

Aug 20 '05 #9
Hi Harlan,

Saturday August 20 2005, Harlan Messinger writes to Gufus:
From: hm*******************@comcast.net You changed it from one piece of bad code to another. How
about NOT putting a # sign in ANY of the NAME attributes,


Tryed that, still wouldn't work in Opera. What about the [map]?

IE, Netscape nd Firefox still works.

Want to look at my code?

http://www.gypsy-designs.com/faq.html

Gufus

.... If it walks out of your refrigerator, LET IT GO !!
Aug 20 '05 #10
NO**********@shaw.ca (Gufus) wrote:
Want to look at my code?
Yes, we love to see the real problem.
http://www.gypsy-designs.com/faq.html


You're using <map NAME="#top"> contrary to the advice you got in the
message that you commented on.

Short answer: Remove the completely useless imitation of a link to the
start of the document. Many problems solved.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Aug 21 '05 #11
Gufus wrote:
> You changed it from one piece of bad code to another. How
> about NOT putting a # sign in ANY of the NAME attributes,
Tryed that, still wouldn't work in Opera.

No, you did not. Use the search and replace function of your editor.
http://www.gypsy-designs.com/faq.html

You are assigning 12 objects with the same name: #top. How would you
expect a browser to sort out which one you are referencing? IE and Firefox
choose the first; Opera chooses the nearest.
And what is with that bizarre use of a <map>? What is wrong with <a
href="#top">?

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Aug 21 '05 #12
Hi Jukka,
From: jk******@cs.tut.fi Yes, we love to see the real problem.
So... pretty shitty programing hu...
Short answer: Remove the completely useless imitation of a
link to the start of the document. Many problems solved.


Thats what I'm going to do (del .* <a name="top"></a>) crap.

Thanks for the advice, it worked in IE, Netscape and
Firefox, just not Opera.

Gufus

.... Features should be discovered, not documented
Aug 21 '05 #13
Hi Jim,
From: jm***************@sohnen-moe.com No, you did not. Use the search and replace function of
your editor.
Yes... I know how to search and replace. Just didn't understand
what was wrong with my code. :)
You are assigning 12 objects with the same name: #top.
How would you expect a browser to sort out which one you are
referencing?
Okay, understand, makes sense.
IE and Firefox choose the first; Opera chooses
the nearest.
Understood.
And what is with that bizarre use of a <map>? What is
wrong with <a href="#top">?


Just the way I decided to write this part of the code. Alright
I understand the <a href="#top"> code, so the ten thousand dollar
question, how would you code this?

Like show me. :)

For now I took Mr.Korpela advice and did a del.* for this code.

Gufus

.... Skydiving! Good till the last drop...
Aug 21 '05 #14
Hi Jim,

Sunday August 21 2005, Jim Moe writes to Gufus:

BTY... You've given the best answer. (so far)

From: jm***************@sohnen-moe.com Gufus wrote:
> You changed it from one piece of bad code to another.
> How about NOT putting a # sign in ANY of the NAME
> attributes,
Tryed that, still wouldn't work in Opera.

No, you did not. Use the search and replace function of
your editor.

http://www.gypsy-designs.com/faq.html

You are assigning 12 objects with the same name: #top.
How would you expect a browser to sort out which one you are
referencing? IE and Firefox choose the first; Opera chooses
the nearest.
And what is with that bizarre use of a <map>? What is
wrong with <a href="#top">?

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email) -+- SoupGate-Win32 v1.05
+ Origin: Calgary Organization CDN Fidonet-Internet Gateway
(1:134/77.10)


Gufus

.... ... No Glove. No Love jm***************@sohnen-moe.com
Aug 21 '05 #15
Gufus wrote:

I understand the <a href="#top"> code, so the ten thousand dollar
question, how would you code this?

Like show me. :)

Dude:
At the "top" of your document:
<a name="the_top_of_doc"></a>

Wherever you want to link to the "top":
<a href="#the_top_of_doc"><img ...></a>

Like, need the address to send the $10,000?

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Aug 22 '05 #16
> From: jm***************@sohnen-moe.com
Like, need the address to send the $10,000?


Yep... do you accept personal checks?

Thanks for the help Jim.

Gufus

.... When in Doubt, Shroud your Spout jm***************@sohnen-moe.com
Aug 22 '05 #17

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

Similar topics

2
by: David | last post by:
Do you consider <div id="header">/<div id="footer"> presentational, just like <div id="leftmenu"> or similar?
2
by: Kai Grossjohann | last post by:
The following HTML file invoker.html creates a modal dialog: <html><head> <script language="JavaScript"> function popup() { window.showModalDialog("main.html", null,...
2
by: Matt | last post by:
If I do the following, the browse text box still cannot see C:/hello world/test.txt. <input type="file" name="fileName" value="C:/hello world/test.txt" size=80> Any ideas? and workarounds...
2
by: Shaun | last post by:
Hello! I have a quick question regarding CSS and having it applied to all elements. I am trying to eliminate the gap between a paragraph and a list that usually occurs in html and I've found...
6
by: Mason A. Clark | last post by:
LAST WORD(s): 1. MSIE6 and Firefox will go to the top of the page on command <a href="#top">go upsy</a> even if there is NO name="top" or id="top" They know what a "top" is :-) Opera...
2
by: Gufus | last post by:
Hi Spartanicus, Saturday August 20 2005, Spartanicus writes to Gufus: > From: invalid@invalid.invalid > Because of your faulty code, use <a name="top"></a> Okay... can you tell me whats...
10
by: Eric-Sebastien Lachance | last post by:
Hey there, I decided to just create a 100% height and width div that filled the space over a background header image, and add an onclick event to redirect to the my index... Doesn't seem to work...
2
by: Just D. | last post by:
Who knows what should we include into aspx file to show some image as a background picture but only once at the top of the page? I don't want to add the Image control because even if it uses a...
19
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have <a href="javascript:somefunction()"what ... ?...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

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.