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

On-page link?

Hello,

I have a blog with all of the archives contained in a drop down menu. At the
end of the page, I have a "More Articles" link which I want to link to the
Archives Menu. I just want to hyperlink More Articles to the On-Page
Archives Menu.

The Archive Menu is script written by someone else and I can't see where to
put the ID so it associates with the menu. The script is shown below.

I am using:
<a href="#archive">More Articles</a and
<p id="archives"xxxxxxxxx </p>

Can anyone see how to set this up so More Articles jumps to the Archives
Menu?

Thanks a lot,

Bob

---

<MainOrArchivePage>

<select name="archivemenu" onchange=
"document.location.href=this.options[this.selectedIndex].value;">

<option selected="selected">- Archives -</option>

<BloggerArchives>
<option value="<$BlogArchiveURL$>"><$BlogArchiveName$></option>
</BloggerArchives>

</select>

</div>
Sep 13 '06 #1
4 1440
Hymer <ergobob@sonic[REMOVE].netscripsit:
I have a blog with all of the archives contained in a drop down menu.
Excuse me while I yawn.
At the end of the page, I have a "More Articles" link which I want to
link to the Archives Menu.
So why don't you make it so?
The Archive Menu is script written by someone else and I can't see
where to put the ID so it associates with the menu.
Still less can we. We don't even have your URL.
The script is shown below.
You should have posted the URL, you know.
I am using:
<a href="#archive">More Articles</a and
<p id="archives"xxxxxxxxx </p>

Can anyone see how to set this up so More Articles jumps to the
Archives Menu?
Have you considered making the link point to the _right_ anchor, namely with
href="#archives"?
<select name="archivemenu" onchange=
"document.location.href=this.options[this.selectedIndex].value;">
That's ridiculous, though it may match the content of the blog, so perhaps
no problem. HTH.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Sep 13 '06 #2
>
>I have a blog with all of the archives contained in a drop down menu.

Excuse me while I yawn.
>At the end of the page, I have a "More Articles" link which I want to
link to the Archives Menu.

So why don't you make it so?
>The Archive Menu is script written by someone else and I can't see
where to put the ID so it associates with the menu.

Still less can we. We don't even have your URL.
>The script is shown below.

You should have posted the URL, you know.
>I am using:
<a href="#archive">More Articles</a and
<p id="archives"xxxxxxxxx </p>

Can anyone see how to set this up so More Articles jumps to the
Archives Menu?

Have you considered making the link point to the _right_ anchor, namely
with href="#archives"?
><select name="archivemenu" onchange=
"document.location.href=this.options[this.selectedIndex].value;">

That's ridiculous, though it may match the content of the blog, so perhaps
no problem. HTH.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Hello Jukka,

Thanks for your reply.

As you detected, my knowledge is clearly lacking in setting up this thing. I
appreciate all the help I can get.

The URL is: http://www.usernomics.com/news/user-...sign-news.html

If you could show me an example of how you would do that it would help a
lot.

Thanks Again,

Bob
Sep 13 '06 #3
Hymer wrote:
Hello,

I have a blog with all of the archives contained in a drop down menu. At the
end of the page, I have a "More Articles" link which I want to link to the
Archives Menu. I just want to hyperlink More Articles to the On-Page
Archives Menu.

The Archive Menu is script written by someone else and I can't see where to
put the ID so it associates with the menu. The script is shown below.

I am using:
<a href="#archive">More Articles</a and
<p id="archives"xxxxxxxxx </p>

Can anyone see how to set this up so More Articles jumps to the Archives
Menu?

Thanks a lot,

Bob

---

<MainOrArchivePage>

<select name="archivemenu" onchange=
"document.location.href=this.options[this.selectedIndex].value;">

<option selected="selected">- Archives -</option>

<BloggerArchives>
<option value="<$BlogArchiveURL$>"><$BlogArchiveName$></option>
</BloggerArchives>

</select>

</div>

Hymer,

I think you've complicated things as a result of a simple typographical
error. You create a paragraph and assign it an ID of 'archives'
(plural), then try to refer to it with href="#archive" (singular). To a
browser, those two strings are as different as "cat" and "dog".

You've also forced us to guess where you PUT the <pand it isn't
present in the URL you provided in a later post. In the future, you
should post a URL which actually contains the code that your tried, but
could not get to work. That let's us really see what is wrong.

In this case, however, the solution is simple. Your archive is
represented as a Select list, which starts, in the HTML, with a select
element. That's where you want the user to be taken when they click on
your "Archives", so all you have to do is give it an ID (must be unique
on the page), thus:
<select id="archives" name="archivemenu" ....

Your link should then refer to this ID, thus:
<a href="#archives">MORE ARTICLES...</a>
[Tested with IE 6 and Firefox]

NO need for an enclosing paragraph, unless you are prevented by the
mechanics of your tools from adding the id= to the <select>.

Why doesn't the name= on the select work as a target, i.e. why can't you
say <a href="#archivemenu">MORE ARTICLES...</a>? Because name= means
different things depending on which element it is used within. It
becomes a target ONLY when used on the anchor (<a>) element. For a
<select>, the name= value becomes the 'control name' for the select;
this name is passed to the server along with the currently selected
value, so the server can pick out the right archive, but it has no
effect on the browser.

id= ALWAYS specifies an identifier that can be used as a target, so it's
the better attribute to use.

Chris Beall


Sep 13 '06 #4

"Chris Beall" <Ch*********@prodigy.netwrote in message
news:C1***************@newssvr25.news.prodigy.net. ..
Hymer wrote:
>Hello,

I have a blog with all of the archives contained in a drop down menu. At
the end of the page, I have a "More Articles" link which I want to link
to the Archives Menu. I just want to hyperlink More Articles to the
On-Page Archives Menu.

The Archive Menu is script written by someone else and I can't see where
to put the ID so it associates with the menu. The script is shown below.

I am using:
<a href="#archive">More Articles</a and
<p id="archives"xxxxxxxxx </p>

Can anyone see how to set this up so More Articles jumps to the Archives
Menu?

Thanks a lot,

Bob

---

<MainOrArchivePage>

<select name="archivemenu" onchange=
"document.location.href=this.options[this.selectedIndex].value;">

<option selected="selected">- Archives -</option>

<BloggerArchives>
<option value="<$BlogArchiveURL$>"><$BlogArchiveName$></option>
</BloggerArchives>

</select>

</div>

Hymer,

I think you've complicated things as a result of a simple typographical
error. You create a paragraph and assign it an ID of 'archives' (plural),
then try to refer to it with href="#archive" (singular). To a browser,
those two strings are as different as "cat" and "dog".

You've also forced us to guess where you PUT the <pand it isn't present
in the URL you provided in a later post. In the future, you should post a
URL which actually contains the code that your tried, but could not get to
work. That let's us really see what is wrong.

In this case, however, the solution is simple. Your archive is
represented as a Select list, which starts, in the HTML, with a select
element. That's where you want the user to be taken when they click on
your "Archives", so all you have to do is give it an ID (must be unique on
the page), thus:
<select id="archives" name="archivemenu" ....

Your link should then refer to this ID, thus:
<a href="#archives">MORE ARTICLES...</a>
[Tested with IE 6 and Firefox]

NO need for an enclosing paragraph, unless you are prevented by the
mechanics of your tools from adding the id= to the <select>.

Why doesn't the name= on the select work as a target, i.e. why can't you
say <a href="#archivemenu">MORE ARTICLES...</a>? Because name= means
different things depending on which element it is used within. It becomes
a target ONLY when used on the anchor (<a>) element. For a <select>, the
name= value becomes the 'control name' for the select; this name is passed
to the server along with the currently selected value, so the server can
pick out the right archive, but it has no effect on the browser.

id= ALWAYS specifies an identifier that can be used as a target, so it's
the better attribute to use.

Chris Beall

Hello Chris,

Thanks so much. That worked like a charm.

Much Appreciated,

Bob
Sep 13 '06 #5

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

Similar topics

4
by: Frank | last post by:
Whats best : register_globals ON ? OR register_globals OFF ? I currently use: $_POST
1
by: David Walker | last post by:
Hi I've got two servers I can use for a website. The one (I'll call it 'X') I need to keep most of the site on doesn't have all the PHP libraries on I need, but I can't put the whole site on the...
0
by: Google Mike | last post by:
After a lot of thought and research, and playing with FreeTDS and InlineTDS, as well as various ODBC connections, I have determined that the fastest and cheapest way to get up and going with PHP on...
3
by: laurie | last post by:
Hi all, I'm trying to help out a friend who has inherited a client with a PHP shopping cart application. Neither of us know PHP, but I've been muddling my way through, trying to get these old...
3
by: Bruce W.1 | last post by:
With ASP.NET I've found that request are processed sequentially, one at a time, at least on a server with one CPU. If one request blocks for some reason, maybe on a long database query, then all...
6
by: Hasan Ceylan | last post by:
Hi Everyone, Recently we have started to have performance problems on our server which has the following configuration: Win 2K IIS 5 php The traffic to our web site is on normal time 300...
2
by: Robert | last post by:
I am using the php4-cgi Debian package which is based on PHP 4.3.4. I have problems when running php4 on the command line. If I say something like $ php4 index.cgi a number of variables...
4
by: Artem | last post by:
hello. this is the setup: i have 2 computers at home. one of them has a registered domain name, and is acting as a web server (runs under windows 2003 iis6). my second machine has apache...
2
by: lawrence | last post by:
The following upload script seems to be working on PCs but not on Macs. Can anyone imagine a reason why? Could there be something in the form that turns in flawed data, or could IE on a Mac not...
2
by: MLH | last post by:
I have an AMP application running on linux server that collects, maintains and serves up image files to web clients. On my LAN (in fact, on the same subnet) I have both the linux box and windoze...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.