SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast Jesse Rooney's Avatar
    Join Date
    Mar 2000
    Location
    Bloomington, MN USA
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a text field I would like to create a link to, can I create a link to specify a specific spot on a page? Also, I would like to add links on my page to go straight to a certian section of the page, so if they press go here, they go to line 79 of that page, and it automatically scrolls down.
    What is the tag I use, or the command, please direct me to a source where I can learn this.

  2. #2
    Destiny Manager Plebius's Avatar
    Join Date
    Nov 1999
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Page one (one.html):
    <a name="HEADER_1">Some header</a>
    ...
    <a name="HEADER_2">Some header</a>

    Page two: (two.html):
    <a href="one.html#HEADER_1">Header one</a>
    <a href="one.html#HEADER_2">Header two</a>



    ------------------
    Plebius Press - An independent media network

  3. #3
    SitePoint Member
    Join Date
    Mar 2000
    Location
    Arlington, TX USA
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what about simply using the anchor tag?

  4. #4
    SitePoint Enthusiast Jesse Rooney's Avatar
    Join Date
    Mar 2000
    Location
    Bloomington, MN USA
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well-
    I am using the anchor tag like so :
    <tr bgcolor="#FFFFFF">
    <td align="center" colspan="4" height="11" valign="middle"><a name="quote"><font size="2" face="Arial, Helvetica, sans-serif" color="#000000"><i>
    <textarea rows="4" cols="20" name="textarea"></textarea>
    </i></font></a></td>
    I still cant seem to get a cursor to appear inside the textarea. I have no experience in anchors but do I have to put it inside a specific tag in order for it to dorect a user "IN" the text field so they can get right to typing, or is that not possible?

  5. #5
    Destiny Manager Plebius's Avatar
    Join Date
    Nov 1999
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Something like this should do the trick:

    <form name="someform" action="some url" method="some method">
    <element name="somename" value="some value">
    </form>

    <script language="Javascript">
    <!--
    document.someform.somename.focus();
    //-->
    </script>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •