|
|
| Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate. |
|
|||||||
| TouchArcade.com - iPhone Game Reviews and News |
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
macrumors newbie
Join Date: Dec 2007
|
iWeb: Internal links to spots on the same page?
Hi!
I am using iWeb '08 version 2.0.4 and I am creating a huge FAQ page on my site (www.desertluxuryvacations.com). I was hoping to be able to link to different spots on the same page? (i.e. like a "Back to Top" so people aren't scrolling forever...I have a ton of FAQ! )Any ideas? Thanks! Emily |
|
|
|
|
|
#2 |
|
macrumors newbie
Join Date: Aug 2008
|
Add me in
Emily, I need the same thing. If you find a link or another helpful post, be sure to revisit this thread with the info. Thanks!
|
|
|
|
|
|
#3 |
|
macrumors 68000
Join Date: Aug 2007
Location: Atlanta, Ga
|
Somehow your going to need to place 'anchors' on the 'hotspots' on your page. Basically you'll need to probably try to add an HTML snipped resembling "<a name='myspot' />" and then your link TO that spot would resemble "<a href='#myspot' />" to goto top of page you can do the same thing, just link to an anchor at the top of the page, or give something up top an 'id' and link to it similar to what was mentioned before.
To add the actual href link you can 'enable as hyperlink' and just add the #myspot in the text box and it should work. If anything else fails you can just 'add html snippet' and use the above techniques. Code:
<a name="myAnchor" /> <a href="#myAnchor">Link</a> <a name="top" /> <a href="#top">Back to Top</a>
__________________
iMac 2.8ghz (Mid 07) | MB SR 2.2ghz (White) | 80g iPod Classic | 2g iPod Nano | Canon Rebel Xti | 8g iPhone3G | 16g iPhone3G
|
|
|
|
|
|
#4 |
|
macrumors member
Join Date: Feb 2008
|
I don't think HTML Snippets work for Anchors as iWeb creates a new page for each HTML Snippet which gets embedded into the page you added the Snippet to using an iFrame. So the code you put in an HTML Snippet doesn't end up being in the page you added the Snippet to.
Try this one instead: http://iwebfaq.org/site/iWeb_Anchors.html |
|
|
|
| Giovannino |
| View Public Profile |
| Find More Posts by Giovannino |
|
|
#5 | |
|
macrumors regular
Join Date: Dec 2007
|
Quote:
|
|
|
|
|
| stovetop6872 |
| View Public Profile |
| Find More Posts by stovetop6872 |
|
|
#6 |
|
macrumors 68000
Join Date: Aug 2007
Location: Atlanta, Ga
|
I was asking around and was pretty much told to do this after the site is published.
After it's published open the html file you want to modify and manually add the anchor tags. You can (prior to publishing) insert the hyperlink as link to external site and reference the location, "http://mysite.com/myname/HomePage.html#Top" then after publishing add the "<a name="Top">" where you want it.
__________________
iMac 2.8ghz (Mid 07) | MB SR 2.2ghz (White) | 80g iPod Classic | 2g iPod Nano | Canon Rebel Xti | 8g iPhone3G | 16g iPhone3G
|
|
|
|
|
|
#7 |
|
macrumors 65816
Join Date: Dec 2007
Location: Falls Church, Va.
|
For a universal approach and non-proprietary to iWeb for creating a hyperlink (i.e. anchor tag) out of ANYTHING on your page create an href and assign an ID and set coordinates in the selector in your stylesheet. The coordinates form a virtual box based on the link's position, height and width style elements. So anything within that virtual box is now a link (white space, graphics, text, whatever).
Example, in your html: HTML Code:
<a href="/path/to/whatever_page.html#top" id="mylink" title="Top of Page...">Top of Page</a> HTML Code:
#mylink {
position: absolute;
left: 100px;
top: 100px;
width: 200px;
height: 16px;
}
It's all done via CSS! Just another way of doing things, get creative and have fun! -jim
__________________
Jim, Sr. Web Developer If you ever want to know who you true friends are, ask them to either paint or move furniture. |
|
|
|
|
|
#8 |
|
macrumors newbie
Join Date: Aug 2008
|
Thanks for the feedback!
Thanks to everyone who responded with various suggestions. This response is greatly appreciated.
I must confess, though, that I am a novice at web production. I just started using iWeb for the first time a few weeks ago. Funny how so quickly I needed to do things that Apple did not think to "code in" to the software to ease the user experience--like jumps, or anchors, on the same page to another part of that page.OK, so here's the confession. I appreciate the posted suggestions greatly. But actually knowing how to implement them in my web page still seems a little tenuous. I apologize, but I need a little more of a step 1, step 2, this window, that drop-down menu choice, kind of a hand-holding "walk through" tutorial in the iWeb app to do this, if someone has the time. As a complete novice (not stupid, just ignorant) I am not sure I can implement these html coding processes without some specific "do this," "do this," "then do this" in the iWeb 08 app.So, I have an iWeb page. The content is lengthy. At the bottom of the page, after scrolling through lots of graphics and text, I want to make getting back to the top of the page convenient for my reader. So I want to put a "Back To Top" link at the bottom of that page that when clicked jumps the user back to the top of that same page. So, in iWeb 08 I . . . |
|
|
|
|
|
#9 |
|
macrumors member
Join Date: Feb 2008
|
There's a step by step guide on the site I linked to on my previous post in this thread. I don't think you will get something more step by step... And I'm sure you will be able to get it to work with that one...
|
|
|
|
| Giovannino |
| View Public Profile |
| Find More Posts by Giovannino |
|
|
#10 |
|
macrumors newbie
Join Date: Aug 2008
|
OK. Thanks.
Thanks. I did look at that discussion. Still had some jargon that I need time to parse, and seemed a little convoluted. In the meantime I discovered on my own a simple work around for at least one type of jump, that is, the specific one I needed (from bottom of page to top). Thanks again. Much appreciated.
|
|
|
|
|
|
#11 | |
|
macrumors newbie
Join Date: Mar 2008
|
Quote:
|
|
|
|
|
| Carole Hayes |
| View Public Profile |
| Find More Posts by Carole Hayes |
|
|
#12 |
|
macrumors member
Join Date: Feb 2008
|
|
|
|
|
| Giovannino |
| View Public Profile |
| Find More Posts by Giovannino |
|
|
#13 | |
|
macrumors 68000
Join Date: Aug 2007
Location: Atlanta, Ga
|
Quote:
Also this is a bad practice as it makes a round trip back to the server again which can eat bandwidth and load time. Meaning if the page was slow to load to begin with, just getting to the top would be just as slow when a simple <target="_Top"> would work. I would not recommend relinking the page.
__________________
iMac 2.8ghz (Mid 07) | MB SR 2.2ghz (White) | 80g iPod Classic | 2g iPod Nano | Canon Rebel Xti | 8g iPhone3G | 16g iPhone3G
|
|
|
|
|
|
|
#14 |
|
macrumors member
Join Date: Feb 2008
|
|
|
|
|
| Giovannino |
| View Public Profile |
| Find More Posts by Giovannino |
|
|
#15 |
|
macrumors newbie
Join Date: Mar 2008
|
I don't want to re-link the page....
I want to do what a previous poster asked about: I am trying to build a FAQ page, with a list of questions at the top, linked to the answer down below. I can't believe iWeb doesn't have anchor tags, and I'm trying to find some way to do it without them.... |
|
|
|
| Carole Hayes |
| View Public Profile |
| Find More Posts by Carole Hayes |
|
|
#16 |
|
macrumors 601
Join Date: Aug 2005
Location: Dayton, OH
|
I don't have iWeb on my computer at work, but something you can try. Go to the point on the page where you want a link to go to, then insert a HTML Snippet. Use this as the snippet
HTML Code:
<a name="faq-1"></a> I can't try it out though so you'll just have to give it a try. Edit: Well, I got to try the above, but it didn't work as is. I forgot iWeb stores the snippets in an iframe so it's not accessible by #faq-1. However, the iframe itself does have an id attribute, which you can link to. In my case it was widget1-frame, so my link pointed to http:?/domain.com/FAQ.html#widget1-frame and that seems to work. What a pain though.
__________________
MRoogle can find your answers! Guess what? Most of us use MR/Google to answer your threads. Seriously. Last edited by angelwatt : Nov 7, 2008 at 06:54 PM. |
|
|
|
|
|
#17 | |
|
macrumors newbie
Join Date: Mar 2008
|
Quote:
It works! It WORKS!!! Thank you, so much!!!! I was starting to get really worried that there was just NO way to do it, and that I was going to have to have my husband hand-code the FAQ page and then REPLACE the iWeb page EVERY time I published! Now I won't have to!!! You don't happen to know how to do drop-down menus in iWeb, do you??
|
|
|
|
|
| Carole Hayes |
| View Public Profile |
| Find More Posts by Carole Hayes |
|
|
#18 | |
|
macrumors 601
Join Date: Aug 2005
Location: Dayton, OH
|
Quote:
__________________
MRoogle can find your answers! Guess what? Most of us use MR/Google to answer your threads. Seriously. |
|
|
|
|
|
|
#19 | |
|
macrumors newbie
Join Date: Mar 2008
|
Quote:
|
|
|
|
|
| Carole Hayes |
| View Public Profile |
| Find More Posts by Carole Hayes |
|
|
#20 | |
|
macrumors newbie
Join Date: Nov 2008
|
step-by-step?
Quote:
I checked out your site and it does work! I'm having trouble figuring out two things though and was hoping you could help: 1. How did you find the iFrame id attribute (i.e., http:?/domain.com/FAQ.html#widget1-frame in angelwatt's post)? 2. Once you changed your external link to reflect the iFrame id attribute, did you keep the snippet the same as in angelwatt's post (i.e., <a name="faq-1"></a> )? BTW I spent quite a bit of time trying to get the other page anchor method to work (the one Giovannino posted a link to: http://iwebfaq.org/site/iWeb_Anchors.html) but it just didn't. Otherwise, that site is pretty extensive. |
|
|
|
|
| lucasledger |
| View Public Profile |
| Find More Posts by lucasledger |
|
|
#21 | |
|
macrumors 601
Join Date: Aug 2005
Location: Dayton, OH
|
Quote:
__________________
MRoogle can find your answers! Guess what? Most of us use MR/Google to answer your threads. Seriously. |
|
|
|
|
|
|
#22 | |
|
macrumors newbie
Join Date: Mar 2008
|
Quote:
Mine don't line up exactly how I want them to right now, and I'm about to go back to tweak them, so I'm afraid I WILL have to do it the long way, but if you only have a couple, and aren't constantly adding and deleting like I did, you can probably just number them, in order.... Did that make any sense? I'm about to go to sleep, and a bit muddle-headed.... I'll be back in the a.m..... |
|
|
|
|
| Carole Hayes |
| View Public Profile |
| Find More Posts by Carole Hayes |
|
|
#23 | |
|
macrumors newbie
Join Date: Nov 2008
|
Quote:
Thanks! It worked! Here's the result: www.lucasledger.com (Any and all feedback on layout would be much appreciated.) Here are some extra hints for others who like me are also new to iWeb: 1. Figuring out which widget id in TextWrangler (TW) corresponds to your anchor: Once you've got the TW file open, you'll notice that the widget ids start at 0 and are numbered sequentially. You'll also notice that TW identifies each widget id by the corresponding anchor's absolute position from the top. In a nutshell, all you need from TW is the first widget id ("widget0-frame" in my case), because all your widget ids will have the exact same format (except that the number will go from 0 to 1 to 2 etc.). Then go back to iWeb and you can visually figure out which is the first id ("widget0-frame") because it'll be the the one closest to the top of your page. The second id (widget1-frame) is the second closest to the top of your page. And so on. 2. Anchors do not like objects!! For the anchors within my main text box (the ones corresponding to my FAQs, not to my Back To Top) to work properly I had to remove, and replace with text-only, all (1) fixed text boxes, (2) floating text boxes, (3) bullets, and (4) column formatting. Not being able to format columns automatically was rough--you can't do it with tabs or by centering the text and adding spaces to create justified columns. Fortunately I didn't have a similar issue with the anchor for my Back To Top because that anchor isn't inserted in a text box--instead, the anchor snippet is a fixed object that sits at the top corner of my page. 3. Off of the anchors topic but still on the objects topic: Internet Explorer (IE) doesn't like objects in the same location with text either. Objects by themselves seem to get translated okay, but every time I had a text box with both text and an object (fixed or floating), IE ignored the way the text wrapped around the object (either through the floating mechanism or even by creating text paragraph returns underneath a fixed object). 4. A final note on browsers other than Safari and Firefox: even when I used web-standard fonts (99.9% of my entire website is in Times New Roman), IE creates an image of the website and does not recognize the content as text. Same thing with a bunch of other browsers (both OS and Windows versions). |
|
|
|
|
| lucasledger |
| View Public Profile |
| Find More Posts by lucasledger |
|
|
#24 | |
|
macrumors newbie
Join Date: Nov 2008
|
Quote:
It sounds like you may be having the same issues as me with alignment (see my most recent post, #2). If the same thing is causing our alignment problems, please let me know if you find a better workaround than going with 100% text. Thanks again to you and Angelwatt for your help! |
|
|
|
|
| lucasledger |
| View Public Profile |
| Find More Posts by lucasledger |
|
|
#25 | |
|
macrumors newbie
Join Date: Mar 2008
|
Quote:
I don't think I have anything in that text box other than left-justified text, and all of it is Verdana, so I don't know that that's the issue, but I'll check again and see... The page I'm working on is here, if anyone wants to take a look and tell me if there's something I'm missing. |
|
|
|
|
| Carole Hayes |
| View Public Profile |
| Find More Posts by Carole Hayes |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|