Results 1 to 9 of 9

Thread: HTML Hyperlinking Code Brainfart Q

  1. #1
    Senior Member godsdog's Avatar
    Join Date
    Jul 2007
    Location
    Jelly Wall Hotel
    Posts
    737
    Thanks
    15
    Thanked
    61 times in 54 posts
    • godsdog's system
      • Case:
      • Silverstone TJ04
      • Monitor(s):
      • Samsung 204B
      • Internet:
      • UKFSN ..have to check

    HTML Hyperlinking Code Brainfart Q

    Yes indeed, quick brainfart question. I've forgotten the code for when you create a hyperlink to another site and want it to open at a certain bit, or paragraph, on a web page.

    Thanks
    .
    "Ladies and Gentlemen, take my advice: Pull down your pants and slide on the ice"

  2. #2
    Registered+
    Join Date
    Nov 2007
    Location
    Devon
    Posts
    58
    Thanks
    1
    Thanked
    1 time in 1 post
    • Ap0llo's system
      • Motherboard:
      • Asus P5K Premium
      • CPU:
      • Intel Core 2 Duo E8400
      • Memory:
      • 2GB Geil Black Widow
      • Storage:
      • 500GB Western Digital SE16
      • Graphics card(s):
      • Zotac GTX 285
      • PSU:
      • Antec 550W Modular
      • Case:
      • Lian Li V1000 Plus
      • Operating System:
      • Vista and XP
      • Monitor(s):
      • Dual 17" Dell
      • Internet:
      • 8mb BT Total Broadband

    Re: HTML Hyperlinking Code Brainfart Q

    This code will open a webpage in a frame on your page:
    Code:
    <iframe 
    src ="http://www.example.com"
    width="100%">
    </iframe>
    Sorry i dont quite know what your asking for so if thats not what you want just say...

  3. #3
    Senior Member godsdog's Avatar
    Join Date
    Jul 2007
    Location
    Jelly Wall Hotel
    Posts
    737
    Thanks
    15
    Thanked
    61 times in 54 posts
    • godsdog's system
      • Case:
      • Silverstone TJ04
      • Monitor(s):
      • Samsung 204B
      • Internet:
      • UKFSN ..have to check

    Re: HTML Hyperlinking Code Brainfart Q

    It was a little rushed

    My standard hyperlink code I use...

    Code:
    <A HREF="  " target="_blank" STYLE="color:#000000">  </A>
    Directs you to a web page.

    What's the code to make it open at any point I want on that page?
    .
    "Ladies and Gentlemen, take my advice: Pull down your pants and slide on the ice"

  4. #4
    LWA
    LWA is offline
    Senior Member
    Join Date
    Jul 2003
    Location
    London
    Posts
    2,171
    Thanks
    134
    Thanked
    57 times in 41 posts

    Re: HTML Hyperlinking Code Brainfart Q

    You mean something like:

    <a
    href="#Q1">I have a question</a>

    And then in the code later on you would have:

    <a name=Q1>The Answer</a>

    And then when you click the link, it would jump to that part of the page?

  5. #5
    IBM
    IBM is offline
    there but for the grace of God, go I IBM's Avatar
    Join Date
    Dec 2003
    Location
    West London
    Posts
    4,187
    Thanks
    149
    Thanked
    244 times in 145 posts
    • IBM's system
      • Motherboard:
      • Asus P5K Deluxe
      • CPU:
      • Intel E6600 Core2Duo 2.40GHz
      • Memory:
      • 2x2GB kit (1GBx2), Ballistix 240-pin DIMM, DDR2 PC2-6400
      • Storage:
      • 150G WD SATA 10k RAPTOR, 500GB WD SATA Enterprise
      • Graphics card(s):
      • Leadtek NVIDIA GeForce PX8800GTS 640MB
      • PSU:
      • CORSAIR HX 620W MODULAR PSU
      • Case:
      • Antec P182 Black Case
      • Monitor(s):
      • Dell 2407WPF A04
      • Internet:
      • domestic zoom

    Re: HTML Hyperlinking Code Brainfart Q

    The other website needs to have a target tag attached to the part you want to open. It's easy enough if it's your own page you're linking to, but if it's someone elses, you'll have to check if there's a < a name= > tag.

    HEXUS.community discussion forums - FAQ: Reading and Posting Messages

    Hover over that link, and you'll see a # followed by the target name. Just like Big Leon said.
    sig removed by Zak33

  6. #6
    Senior Member godsdog's Avatar
    Join Date
    Jul 2007
    Location
    Jelly Wall Hotel
    Posts
    737
    Thanks
    15
    Thanked
    61 times in 54 posts
    • godsdog's system
      • Case:
      • Silverstone TJ04
      • Monitor(s):
      • Samsung 204B
      • Internet:
      • UKFSN ..have to check

    Re: HTML Hyperlinking Code Brainfart Q

    Yes Big Leon, that's what I'm after. Create a link - click on it - jump to that part of page scenario. Except I didn't think it looked like that. ...I'll go play and experiment. Ta.
    .
    "Ladies and Gentlemen, take my advice: Pull down your pants and slide on the ice"

  7. #7
    Senior Member godsdog's Avatar
    Join Date
    Jul 2007
    Location
    Jelly Wall Hotel
    Posts
    737
    Thanks
    15
    Thanked
    61 times in 54 posts
    • godsdog's system
      • Case:
      • Silverstone TJ04
      • Monitor(s):
      • Samsung 204B
      • Internet:
      • UKFSN ..have to check

    Re: HTML Hyperlinking Code Brainfart Q

    cheers ibm, I got it.
    .
    "Ladies and Gentlemen, take my advice: Pull down your pants and slide on the ice"

  8. #8
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts

    Re: HTML Hyperlinking Code Brainfart Q

    As far as i'm concerned it's better to practice to specify anchors on the id attribute.

    <a href="http://mysite.tl/index.html#namedlink">

    <h2 id="namedlink">Chapter 5</h2>
    To err is human. To really foul things up ... you need a computer.

  9. #9
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable

    Re: HTML Hyperlinking Code Brainfart Q

    Quote Originally Posted by yamangman View Post
    As far as i'm concerned it's better to practice to specify anchors on the id attribute.

    <a href="http://mysite.tl/index.html#namedlink">

    <h2 id="namedlink">Chapter 5</h2>
    ++

    That's the correct method now.

    HTML A TAG

    ^ handy reference.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 17
    Last Post: 15-07-2007, 03:59 PM
  2. DreamHost 555 Promo Code - 5 domains, 5Tb of bandwidth, 500Gb of storage for life
    By ChristopherW in forum Retail Therapy and Bargains
    Replies: 18
    Last Post: 30-05-2007, 09:24 PM
  3. HELP: MAC Code Length?
    By top_caty in forum Networking and Broadband
    Replies: 3
    Last Post: 09-03-2007, 01:44 AM
  4. Linux code help!
    By nvening in forum Software
    Replies: 18
    Last Post: 26-02-2005, 12:30 AM
  5. Replies: 1
    Last Post: 14-08-2003, 03:32 PM

Posting Permissions

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