Donate SIGN UP

linking across pages?

Avatar Image
aquilotta | 01:46 Sun 25th Feb 2007 | Internet
18 Answers
Me again. Making progress on the website, thanks to the wonderful people here on answerbank who've been patient with my goober queries about basic html stuff so far... So here's the next question (hopefully the last!!): IS IT POSSIBLE, with html, TO LINK ACROSS PAGES? By that I mean - take the topics list here on the left of answerbank's page. Is it possible to eg., link "Family" to the head of one page - and link "Food & Drink" to that SAME page but half-way down? Or do they have to be separate pages? I know that it's possible to link within the SAME page (eg "go to the top of the page"): but not whether there's something similar which will take visitors to another part on another page...? Not sure whether I'm making any sense here - *I* know what I mean, but not sure how to explain it... If you CAN help, that would be wonderful. In the meanwhile, for all those who've helped me so far with my other questions, come see what your answers have helped me create so far! www.lakemaggiore.50g.com

All effusive praise, constructive comments, and typo spottings gratefully received!!

Thanks guys.
Gravatar

Answers

1 to 18 of 18rss feed

Best Answer

No best answer has yet been selected by aquilotta. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
Sure you can do that. For instance if you have a link on the top left that you want to take you to somewhere half way down the page you need to give that spot half way down the page an id like this <H3 id="Hours">Hours</H3> h3 is the text size and you put whatever you want to link to in place of where i have Hours. Then you need to create the link on the top left and that will look like this hours The # means you are linking to the same page.
Sorry that did not work and upon reading your post more carefully, im not sure that my answer was appropriate anyway. if it is , let me know and i will be more specific. In the meantime That lower picture of yours has a red border, you can get rid of that like this , after the name of your picture img src="xxxx.jpg"border="0"; The rest of your attributes go here.
Ok now im batting a thousand. I looked at your source code and can see that you already know how to set the border to 0. sorry :-(
Question Author
Hi Peanut! Thanks for the valiant help! My challenge though is that I want to be able to link to different places on a DIFFERENT page from the one in which I'm in - just as here on this page in answerbank, clicking "Family" in that left-hand table will take me to the answerbank Family page from this Technology one - what I would like to know is whether (and if so, HOW, with baby steps please!) I can click on, say, "Food & Drink" from the same left-hand table - and have it take me directly to the food&drink section... on the same page as the Family page?

In other words, and more specifically: in my case, if you look at the available sports & activities page on the www.lakemaggiore.50g.com website, you'll see that there are about 15 different activities which one can do around here, from skiing to windsurfing to attending the New Orleans Jazz Festival in the summer. However, a number of those activities will have relatively little information attached to them: contact details and little else. Rather than creating a separate page for each 5-liner, therefore, I'd like to combine some of them: eg., have a single page with 3 sections - let's say a section about the paragliding, for instance, a section about the horseriding, and a section about the mountain climbing. But I want people to be able to click on either the thumbnail or the link in the left-hand table and go DIRECTLY to that relevant section, rather than having to trawl through the previous bits about the activities in which they have no interest (eg., if they want to go canoeing, they don't have to first read about the La Scala opera, or about bungee jumping off the Verzasca Dam!).

Is it possible to do such a thing, and if so, HOW? It needs to be utterly idiot-proof for a beginner like me, I'm afraid!

Thanks, Peanut (and whoever else can help!!)
Each page has a name Like "page.htm", you need to give your target an id. The location that you want your link to take you to is the target. So say your first page has a the word "family" and you want to be able to click on it to bring you to a new page where it describes "family". you need to create an id for the word family on that second page. you can see how to create an id in my first post. Then you can create your link on the first page. so if your home page has the word family you would create your link like this family. Leave the dash after the a out of that link, i just put it there so you can see how that anchor is made. I do see that you have already done that with the bungee jumping link.
Lets try that link again {a target='_blank' href="glossary.htm">glossary replace the { with a < at the beginning of that link. Also, if you dont want it to open a new page when you click on a link, dont use target= "_new"
I dont know how it got there but leave out the "target=_blank" too. sorry to make this so confusing.
Question Author
*chuckle* Peanut, you're an absolute star! Especially since I'm not sure how you found the sports page after I just renamed it "(a target="_new" target='_blank' href="http://www.lakemaggiore.50g.com/sports-en.htm" > what to do while you're here"! :-)
Shall head over and attempt that right now...

So just to recap: I'd put <H3 id="canoeing"> canoeing </h3> as my target, half-way down the page or wherever that particular bit of info gets inserted in the Bungee page: and then on my departure page I'd simply put (brackets!) a target='_blank' href="canoeing" - and THAT would be sufficient for it to jump the pages to the relevant section?? wow!

I thought it was going to be HUGELY complicated...!!!! Thanks so much, Peanut - now to see whether I can follow your advice sufficiently well to get it to work.

And another question (yes, I know I said I hoped this one would be the last! ) about ROR files...(what/how to do 'em) but perhaps I'd better start another thread for that one!

Question Author
(ooops...[red face!] coding blooper there - sorry - but re., the new page - I was sooooo proud of myself for discovering how to insert that piece of code, so that people didn't lose the page they were one! *sign*!!!)..
it'll teach me not to preview what I write before I post it though, won't it!
Question Author
...without the target blank... um... I think my brain has turned to mush... a target='_blank' href="canoeing" ...
Question Author
phew. It's not my brain. It's just the answerbank system which has been merrily inserting the target=blank bit! That makes me feel a WHOLE lot better!
yes id did the same thing to me
Question Author
:'-( But..... I can't get it to work! Have a look for yourself! WAIL!!! What am I doing wrong????
Without being there with you its very difficult to see exactly what you want to do, I know I could do it if I were there w/ you. I'm in New York State. Maybe THIS will help you a little. Sorry I couldn't be of more help to you. also try looking at some of the code that you already have there because some of those links already do what it is you are asking for.
Question Author
Peanut, you're a star. I THINK the link you just gave me is the solution to everything: To link directly to the "tips" section, add a # sign and the name of the anchor to the end of a URL, like this:


Jump to the Useful Tips Section


That's what I couldn't figure out how to do - what the URL was supposed to be, since it was on a different page! Thank you thank you thank you... check tomorrow to see whether I've got those wretched tags to work :-)

Thanks and blessings from Italy :-)
Try taking the target="_" new out of this line and try again.
ah nevermind.
Question Author
*chuckle*
Well, at least anyone else who has a similar challenge will just be able to follow your wonderful link and find the answer for themselves, even if our attempts to duplicate the explanation on here have been over-efficiently transmogrified :-)

Thanks again, Peanut. Really really appreciate it.

1 to 18 of 18rss feed

Do you know the answer?

linking across pages?

Answer Question >>

Related Questions

Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.