Click to See Complete Forum and Search --> : moving the scrollbar down?


chumba
10-22-2005, 02:13 PM
i have a menu on top but the frame is in the bottom of the page and everything is redirected to the frame. every time when i click on the menu lets say a forum; i want it to automaticlly scroll down to view the frame once the link is clicked.


heres an example of what i want.

http://www.netzero.net/signup/faqs.html


i looked at the source but could not get it to work, so if you know of a different way please help me.


thanks,
chumba :)

Kravvitz
10-22-2005, 03:38 PM
That example uses anchors, but I'm not sure that's what you want. (http://www.google.com/search?q=HTML+anchor)

Why are you using frames anyway?

Why Frames Are Bad (http://karlcore.com/articles/article.php?id=2)
http://apptools.com/rants/framesevil.php
http://www.456bereastreet.com/archive/200411/who_framed_the_web_frames_and_usability/
Why Frames Suck (Most of the Time)(1996) (http://www.useit.com/alertbox/9612.html)
What's wrong with frames? (http://www.htmlhelp.com/design/frames/whatswrong.html)
http://www.tamingthebeast.net/articles/framesnoframes.htm

chumba
10-22-2005, 10:03 PM
here is a pic.

http://img455.imageshack.us/img455/2200/help2sj.jpg

when i click on the join us in the main menu i want the scrollbar to move down and be able to view the iframe window.

heres the code link.


<A href="http://allied-assassins.net/form.html" target="theframe">Join us</A>

any ideas? :confused:



thanks,
chumba :)

The Little Guy
10-22-2005, 10:59 PM
<a href="#1">This is a link</a>

<a name="1"></a>This is the text that the link will lead to.

If you want to know more here is a place that will teach you some of that http://webtoolz.t35.com/html/links.php

The lesson is at the bottom of the page, called "Name Attribute"

Kravvitz
10-22-2005, 11:23 PM
IDs and names may not start with a number. (http://www.w3.org/TR/html401/types.html#type-name)

He can't use that directly anyway becuase he's already using links.

You can use a bit of JavaScript to do this.

<A href="http://allied-assassins.net/form.html" target="theframe" onclick="location.hash='#iframeTop';">Join us</A>
<A id="iframeTop" name="iframeTop"></A>
<iframe ...

The Little Guy
10-22-2005, 11:40 PM
Couldn't he just swich this:

<a href="http://allied-assassins.net/form.html" target="theframe">Join
us</a>

with this:

<a href="#join">Join us</a>


I don't see how that wouldn't work.

Kravvitz
10-22-2005, 11:43 PM
The point is to change the location of the iframe and to scroll down so that you can see all (or at least most) of the iframe.

What you are suggesting would only scroll the page.

The Little Guy
10-22-2005, 11:53 PM
I believe all he wanted was the page to scroll, according to his example. The page just scrolls. The code I gave his is the exact same code that was in the example, just I changed the word.

(by the way don't use the numer thing, use a word)

chumba
10-23-2005, 02:09 PM
He can't use that directly anyway becuase he's already using links.

i tried the Name Attribute tags but it didnt seem to work.i think kravvitz has got it right. i used the javascript in the link code and it worked. thanks for your help guys. ;)