Need javascript for boomark/page jumps

Jaiem's picture

They have: 1,191 posts

Joined: Apr 1999

I tried to do this with Perl but it won't work so I have to try Javascript.

I want to use an HTML form drop-down menu to let visitors quickly "jump" to a bookmark within the current page or to a bookmark in another page.

What I'm looking for is the Javascript that accept the options from the form and go to the appropriate boomark or page.

If anyone has such a Javascript or knows of one (or at least a similar one I can use as a shell to modify) I would appreciate it.

Thanks!

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

did you try the code I posted in the Perl forum?
If it works, you can easily convert from a text box to a dropdown.

Jaiem's picture

They have: 1,191 posts

Joined: Apr 1999

I must have missed before your post in the thread.

That's exactly what I'm looking for! I'll have to try it.

Thanks.

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi Jaiem,

If I understand you right, you want to use anchored hrefs with a selection list. Something like this:

Select Something
same page jump
different page jump

function doSel(selObj)
{
for (i=0;iThis is where you jump to...blahblah...

If you are unsure about the above, see the following at my site:
1) for the doSel function: the "Select & Go Menus" script/tutorial
2) for anchored hrefs: any page other than the home page -- the "Form/Analysis/Code" buttons are inPage anchored hrefs

Vinny

Where the world once stood
the blades of grass cut me still

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.