Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

HTML query

Options
  • 11-09-2003 3:00pm
    #1
    Closed Accounts Posts: 570 ✭✭✭


    I'm working on a project where there are 600 items -

    approx. 100 pages x 6 items per page. My query is how do i link to each particular item .

    Should you wish to link to a certain item on the bottom of the page, my client wishes that you click staright to that item, i.e. no scrolling

    The site is complete except for this so the simpler the solution the better.

    Thanks

    Motm


Comments

  • Registered Users Posts: 68,317 ✭✭✭✭seamus


    Not sure what you mean.....

    On each page you want to be able to click a link and go straight to one of the six items?

    Then you put 6 links at the top of the page, each of the format

    <a href="#item1"........
    <a href="#item2"........

    etc

    Then for each item, you put an anchor on it like

    <a name = "item1">....</a>
    <a name = "item2">....</a>

    etc etc


  • Registered Users Posts: 1,031 ✭✭✭buddy


    Agreed - bookmarks are the best way to go.


  • Registered Users Posts: 10,339 ✭✭✭✭LoLth


    most basic way would be to put links to the items at the top of the page and have the target be an anchor.

    eg:

    <a href="#item1"> Item 1 </a>
    <a href="#item2"> Item 2 </a>

    page continues: at the description of the item put:

    <p><a name="item1"> Item 1 </a> Item 1 description goes here.</p>
    <p><a neam="item2"> Item2</a> Item 2 description goes here </p>

    you can also reference a completely different page if you want to put an index at the first page. use <a href="url/page number/#anchor name>

    more than likely there is a much better way to do this, but that's the basic one.

    hope it helps.

    doh! damn my lack of touchtyping skills :)


  • Closed Accounts Posts: 570 ✭✭✭manonthemoon


    Sorry guys, I should have explained better

    On each page I have a scroll down list of the 600 items. All the links to every item are in this scroll down list.

    Say I click on item No. 599.

    The link will go to the last page, but to the top of the last page. Item 599 in on the bottom of page and at present the user will have to scroll down Can I link directly to that item.

    Hope this makes sense


  • Registered Users Posts: 10,339 ✭✭✭✭LoLth


    then change the target url of the list entries to include anchore (the #bit) and edit the pages to include anchors at relevant points.


  • Advertisement
  • Registered Users Posts: 1,031 ✭✭✭buddy


    A scrolldown list or a dropdown list - I've down this before.

    I've done it before with a lil javascript and bookmarks:

    <SCRIPT LANGUAGE="Javascript"><!--
    function go(){
    if(document.info.menu.options[document.info.menu.selectedIndex].value != "none") {
    location.href= document.info.menu.options[document.info.menu.selectedIndex].value
    }
    }
    //--></SCRIPT>

    <SELECT NAME="menu" style="font-family: Verdana; font-size: 10pt">
    <OPTION>Make your choice.....</OPTION>
    <OPTION VALUE="sample.htm#1">1</OPTION>
    <OPTION VALUE="sample.htm#2">2</OPTION>
    <OPTION VALUE="sample.htm#3">3</OPTION>
    <OPTION VALUE="sample.htm#4">4</OPTION>
    </SELECT>


Advertisement