[Log In ] [New Posts] []
Go Back   GotApex? Forums Forums > General Topics > Software, OS, and the Internet
User Name
Password

Reply
 
Thread Tools Search this Thread Display Modes
Old 05-14-2003, 12:06 PM   #1
RoniMan
Admiral
 
RoniMan's Avatar
 
Join Date: Apr 2000
Location: Temple City, CA
Posts: 5,140
Send a message via AIM to RoniMan
how do you...

make a link appear in the middle of a page?

what i mean is when you click on a link, how do you make the new page start from the middle?
RoniMan is offline   Reply With Quote
Old 05-14-2003, 12:21 PM   #2
attgig
Chief of Naval Operations
 
attgig's Avatar
 
Join Date: Jun 2000
Location: the burbs of baltimore
Posts: 11,924
Send a message via ICQ to attgig Send a message via AIM to attgig Send a message via MSN to attgig Send a message via Yahoo to attgig
Re: how do you...

Quote:
Originally posted by RoniMan
make a link appear in the middle of a page?

what i mean is when you click on a link, how do you make the new page start from the middle?


u mean like....

this? (White Elephant Gift Exchange Signup - UPDATE: Sorry! Signup is closed!)
__________________

attgig is offline   Reply With Quote
Old 05-14-2003, 12:25 PM   #3
attgig
Chief of Naval Operations
 
attgig's Avatar
 
Join Date: Jun 2000
Location: the burbs of baltimore
Posts: 11,924
Send a message via ICQ to attgig Send a message via AIM to attgig Send a message via MSN to attgig Send a message via Yahoo to attgig
i think that's what you meant...


explanation
attgig is offline   Reply With Quote
Old 05-14-2003, 12:34 PM   #4
RoniMan
Admiral
 
RoniMan's Avatar
 
Join Date: Apr 2000
Location: Temple City, CA
Posts: 5,140
Send a message via AIM to RoniMan
actually, more like the second link.

see how it starts in the middle of the page? that's what i want.

but i know yours start on a lower part of the page b/c of the table of contents link.

i need to do so without that.

imagine if i was to click on a link to go to gotapex, and instead of starting on the top of the page, i automatically start in the middle.
RoniMan is offline   Reply With Quote
Old 05-14-2003, 01:24 PM   #5
coleslaw
Arrrhh!
 
coleslaw's Avatar
 
Join Date: May 2000
Location: LI NY
Posts: 6,807
Send a message via ICQ to coleslaw Send a message via AIM to coleslaw Send a message via Yahoo to coleslaw
Use anchors. That's the only way.
__________________
A priest, a paladin and Varimathras walk into a bar...
coleslaw is offline   Reply With Quote
Old 05-14-2003, 02:08 PM   #6
rtse313
Lieutenant
 
Join Date: Apr 2003
Location: So Cal
Posts: 222
<a name> tag ??
rtse313 is offline   Reply With Quote
Old 05-14-2003, 02:16 PM   #7
ironchef
Commander
 
ironchef's Avatar
 
Join Date: Dec 2000
Location: SF Bay Area
Posts: 1,342
Send a message via ICQ to ironchef Send a message via AIM to ironchef Send a message via MSN to ironchef Send a message via Yahoo to ironchef
Couple ways..

Use an anchor. An anchor is simply done like this:

<a name="myanchor">Bleeat!</a>

Then, link to that page with <a href="oorgle.htm#myanchor">

Another way is to link to IDs within a page. The wretched v4 browsers don't like this (NS, anyway. I'm not sure about IE4), but it's a valid way to do this since the <a name=""> tag is deprecated in newer specs. Any tag can have a unique ID, like

<h3 id="sectiontitle1">Chef's House of Hot Sauce Lovin'</h3>

Then, just link to it like with the anchor tag, <a href="foo.htm#sectiontitle1">
ironchef is offline   Reply With Quote
Old 05-14-2003, 02:39 PM   #8
attgig
Chief of Naval Operations
 
attgig's Avatar
 
Join Date: Jun 2000
Location: the burbs of baltimore
Posts: 11,924
Send a message via ICQ to attgig Send a message via AIM to attgig Send a message via MSN to attgig Send a message via Yahoo to attgig
weird...

both links aren't working like they're supposed to...




the first link is...
http://www.gotapex.com/forums/showth...r=3#post514566 (White Elephant Gift Exchange Signup - UPDATE: Sorry! Signup is closed!)

second link is....
http://www.w3.org/TR/REC-html40/stru....html#h-12.1.1


both have that #name on the end of the html..

and the second one describes how to do it:



H1>Table of Contents</H1>
<P><A href="#section1">Introduction</A><BR>
<A href="#section2">Some background</A><BR>
<A href="#section2.1">On a more personal note</A><BR>
...the rest of the table of contents...
...the document body...
<H2><A name="section1">Introduction</A></H2>
...section 1...
<H2><A name="section2">Some background</A></H2>
...section 2...
<H3><A name="section2.1">On a more personal note</A></H3>
attgig is offline   Reply With Quote
Old 05-14-2003, 02:50 PM   #9
ironchef
Commander
 
ironchef's Avatar
 
Join Date: Dec 2000
Location: SF Bay Area
Posts: 1,342
Send a message via ICQ to ironchef Send a message via AIM to ironchef Send a message via MSN to ironchef Send a message via Yahoo to ironchef
"post514566" doesn't actually appear in the source of that page.
__________________
blurt blurt blurt
ironchef is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 02:36 AM.