Shoutbox

html help? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: html help? (/showthread.php?tid=44335)

html help? by Supersonicdarky on 05-08-2005 at 01:38 AM

i tried this code, but it doesn't work, when you click a link in one frame it opens up in that frame, not the other one, how do you do it?

code:

<frameset cols="145,*" border="0" frameborder="0" framespacing="0">
<frame src="???"name="menu" scrolling="no" noresize border=0 frameborder=0 marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 frameBorder=0 framespacing=0>
<frameset rows="75,*" border="0" frameborder="0" framespacing="0" name=test>
<frame src="???" name="ad"  scrolling="no" noresize border=0 frameborder=0 marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 frameBorder=0 framespacing=0>
<frame src="???" name="main" scrolling="auto" noresize border=0 frameborder=0 marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 frameBorder=0 framespacing=0>
</frameset>
</frameset>



or do you do it on the normal page, not the frame?
RE: html help? by mwe99 on 05-08-2005 at 01:42 AM

You need to set the target for the link to display

<frameset rows="75,*" border="0" frameborder="0" framespacing="0" name=test target=<framename>>


RE: html help? by Supersonicdarky on 05-08-2005 at 01:52 AM

what i meant was if you click a link in one frame, the kink opens in another frame


RE: html help? by mwe99 on 05-08-2005 at 01:57 AM

yeah you need to specify the framenameyou want it to open in, in  the target="?" such as menu, ad or main


RE: html help? by andrey on 05-08-2005 at 02:38 AM

You don't set thios in the index.html, but eg. the menu.html where the links are set that you want to open in, say, main.html (named "main").
There are at least two ways to do this:
way 1:
open menu.html and insert

code:
<BASE TARGET="main">
into the header if you want all links from menu.html to open in main.html (named "main").

way 2:
open menu.html and instead of
code:
<A HREF="url">Targeted Anchor</A>
write
code:
<A HREF="url" TARGET="window_name (eg. "main")">Targeted Anchor</A>


Further info:
http://www.newbie.net/frames/
RE: html help? by Concord Dawn on 05-08-2005 at 02:40 AM

Name the frame

<frame name="main">

Then add the target frame to your link code.

<a target="main">

Simple.


RE: html help? by Supersonicdarky on 05-10-2005 at 11:20 AM

thnx for before, but now i need a way of a link opening it self in the whole page, not in a specific frame. is it like target="all" or something? :S


Edit: nvm, found it, it's target="_parent" :)