How to use composite links - '.html file#secao'?

Asked

Viewed 59 times

0

I made the following button:

<a href="/../totem_app/xplaces/00_menu_vitoria_xingu.html#acru" 
target="_parent" class="bcontraste"><b>LINK</b></a>

to go to

<a href="../acess/00_menu_vitoria_xingu_acess.html#acru" target="_parent" 
class="bcontraste"><b>LINK</b></a>

But when I use one of the two links they go to the general directory:

00_menu_vitoria_xingu.html# ou
00_menu_vitoria_xingu_acess.html#

In both cases they do not go to

00_menu_vitoria_xingu.html#acru ou
00_menu_vitoria_xingu_acess.html#acru

What is the correct way for the link to load the page "00_menu_vitoria_xingu.html" with the correct "section"? Because it has several:

00_menu_vitoria_xingu.html#acru
00_menu_vitoria_xingu.html#bnpf
00_menu_vitoria_xingu.html#cars
00_menu_vitoria_xingu.html#....

How do I create a link to open page in a certain section?

  • It may seem unnecessary, but I will ask. On the page you will link there is an element with the ID="accru" for example. In the HTML of your page you have to have this element named after the Link ID

  • Has yes friend! Looks like this: <div id="acru" class="content active">

  • dib believe the know problem is similar to the other question, put a . / on the link. So where is " /.. / "put " . /.. / " Forehead there

  • @hugocsl it opens the page normally, I solved it with the other hint, but it does not open in the correct type section. the link is <.. /acess/00_menu_vitoria_xingu_acess.html#bmnt> but it opens only <.. /acess/00_menu_vitoria_xingu_acess.html>

  • Got it, it goes to the page, but it doesn’t go to the anchor right... I’ll think of something

  • Thanks for the attention, I stayed yesterday maturing, not have much content fold links, for being something relatively simple.

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.