The Pope
Decisive Send PM
Posts: 5183
Threads: 123 Mood: Refreshed Money: £201.52 (D) (+ Friend)
|
I've recently been viewing sources of cool sites and decided to add a few of the cool things onto the gref0 site. I've got the html code for the marquee on the homepage used to show recent posts.
Except this will jut be a manual 'Latest Updates' to the site. One of the links on the scrolling news will be new episodes. Problem is I want it to directly link to the exact place on the page. Not loading a new page at the top but somewhere in middle for example. A bit like the BTP FAQ. It's just I couldn't find the right coding there (too complex for me atm).
This code would also be used in the same fashion on the MFMX Tutorial site for FAQs.
________________
Learn to look, look to learn. |
06.03.04 13:12 Post #1 | Last edited: 06.03.04 13:36 (The Pope - 2 times) |
[Hide Sig (14)] [Profile] [Quote] |
Zogger!
Looking For Status Send PM Posts: 3954
Threads: 62 Money: £93.82 (D) (+ Friend)
|
\n
A Section
blablablbdfg
sdfsdf
A Section
This is a section
\n
then when you click the link at the top it'll go to the a with a specified name
________________
You know I'm a dancing machine |
06.03.04 14:03 Post #2 | [Hide Sig (8)] [Profile] [Quote] |
Dingbats
; Send PM
Posts: 1970
Threads: 50 Mood: Optative Money: £268.57 (D) (+ Friend)
|
This can also be used as a way to make a link without making it link to something. Just write: < a href="#" >Something< /a >. Result: Something. Well, it does link to the top of the page.
|
06.03.04 15:00 Post #3 | Last edited: 06.03.04 15:02 (Dingbats - 2 times) |
[Softbrain Games] [Hide Sig (2)] [Profile] [Quote] |
The Pope
Decisive Send PM
Posts: 5183
Threads: 123 Mood: Refreshed Money: £201.52 (D) (+ Friend)
|
I know how to link normally.
Yet another problem. Now I need to know how to do that thing for the BTP FAQ page but across onto another page.
for example:
index page has Latest Updates scrolling area and link below image as an icon for series update. The link I want to load and go to a certain part of another page. How would I do that?
________________
Learn to look, look to learn. |
06.03.04 18:39 Post #4 | [Hide Sig (14)] [Profile] [Quote] |
Dingbats
; Send PM
Posts: 1970
Threads: 50 Mood: Optative Money: £268.57 (D) (+ Friend)
|
Ehh... What do you mean?
|
06.03.04 18:48 Post #5 | [Softbrain Games] [Hide Sig (2)] [Profile] [Quote] |
ReadMe
Absent Send PM Posts: 2820
Threads: 85 Money: £43.42 (D) (+ Friend)
|
techinically you should use the ID attribute for link targetting, which is what you are reffering to.
as for doing it to another page, href="index.php#target" will do it.
where there is an element with id="target" on index.php.
________________
Cant be arsed to remake my sig. |
06.03.04 22:39 Post #6 | [Hide Sig (7)] [Profile] [Quote] |
routine_error
Statusless Send PM Posts: 1081
Threads: 25 Money: £6.36 (D) (+ Friend)
|
After a bit of testing, I'd go with ReadMe's way. I had used the 'name' attribute myself, too, and was unaware you could use 'id' for this at all.
When I used 'name', it had to be in an 'a' tag. When I used 'id', it could be in any, as ReadMe said.
|
10.03.04 05:33 Post #7 | [Hide Sig (1)] [Profile] [Quote] |
Your Comments: