Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Please Help Me With <frame></frame>
.hack//GU
post Feb 20 2006, 04:14 PM
Post #1


Premium Member
********

Group: Members
Posts: 190
Joined: 21-October 05
Member No.: 13,185



Help me, I want to make a website with frame left and right.
so, I use <a href="file.html">Go</a>

Next, in file.html I use
<frame... and so on till </frame>

Now, the question is:
When I am at the file inside the frame, how can I get out from this page?
because if I write <a href="index.html"> it only open the page within the frame.


So, please tell me.
Go to the top of the page
 
+Quote Post
electriic ink
post Feb 20 2006, 04:28 PM
Post #2


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,204
Joined: 11-February 05
From: Heaven
Member No.: 3,709



Make it:

HTML
<a href="index.html" target="_top">


The target attribute tells it where to load the link. Having _top as a value tells it to remove all the frames...
Go to the top of the page
 
+Quote Post
Lozbo
post Feb 22 2006, 12:10 AM
Post #3


Super Member
*********

Group: Members
Posts: 282
Joined: 1-September 05
From: Wanatos
Member No.: 11,382



In the target attribute goes the name of the frame you want the link to open in, or if you want it in a new window ("_blank").

I would recommend you to drop the frames and switch to pure xhtml and css design, you could try a few web sites and this forum to get started.

There are several issues in working with frames that most people will rather advise you to avoid, but you just may need the things as fast as possible or may not have enough time to spend on learning this technologies right now.

The main advantage of using frames is that you only make one page (say: the menu) and use it only once, and whenever it needs updating, you just need to update one file, and not every document of your site that had the menu (and this wouldnt be also that much trouble in some cases, if you know how to use a "seek and replace" function from whatever editor you are using).

But you can take advantage of server side includes, which bassically work the same way, the only problem is that your web server must support the language you are writting your stuff in... (like jsp, asp or php).

If you'd like additional information about this 'server side includes' you can post your question (i think a mod would advice you to make a new thread, or even better: search the forum for older threads where this topic has been already addressed)...

Good luck and good codin'
Go to the top of the page
 
+Quote Post
Inspiron
post Feb 22 2006, 08:26 AM
Post #4


Trap Grand Marshal Member
***********

Group: Members
Posts: 1,205
Joined: 25-March 05
Member No.: 4,883



Seems like you are asking how to escape and break out from a frame.
Try this..

Include this code in the HTML which you didn't want it to be in a frame.
CODE

<head>
<script language="JavaScript" type="text/javascript">
<!--
function breakout_of_frame()
{
  if (top.location != location)
  {
    top.location.href = document.location.href;
  }
}
-->
</script>
</head>


Change your body of the HTML as well to use the breaking out function.
CODE

<body onload="breakout_of_frame()">
... (the rest of the document) ...
</body>


This post has been edited by Inspiron: Feb 22 2006, 08:28 AM
Go to the top of the page
 
+Quote Post
.hack//GU
post Feb 22 2006, 09:24 AM
Post #5


Premium Member
********

Group: Members
Posts: 190
Joined: 21-October 05
Member No.: 13,185



I'll try to do that, thank you for sharing your knowldege. wink.gif

---------edit:
Yes, it's really works. I set it _top and it really gets out of frame.
Thank you, and for next please help me to navigate the other frame to a file, do you know?

I mean, I make the left frame as menu, so when someone click "Biodata" at the left frame,
I want the right frame go to "biodata.html", so how could I do it?
(I've tried target="_right", but don't think it's even exist...)


(-Sory for little Out of Topic this is my 100th post!-)



This post has been edited by .hack//GU: Feb 22 2006, 09:40 AM
Go to the top of the page
 
+Quote Post
Lozbo
post Feb 22 2006, 08:40 PM
Post #6


Super Member
*********

Group: Members
Posts: 282
Joined: 1-September 05
From: Wanatos
Member No.: 11,382



You need to specify the name of the target, try: "_main" or "main" which are names assignated by default, but you should know the name of your main frame, you must have assigned it a name in the frame set... Look at your frameset document and seek for the name of the frame that is used as your right frame.

You can name it whatever you want (no special chars, and usual limitations), doesnt have to necessarily be "right" or "_right".

Greetings:)

Dont be sorry, we help whenever we can..
Go to the top of the page
 
+Quote Post
Kioku
post Feb 22 2006, 08:57 PM
Post #7


Super Member
*********

Group: Members
Posts: 293
Joined: 17-December 05
From: Error 404
Member No.: 15,848



You need each frame to have a title or name, whilst directing the a href to the target, which will be the frame's target. That's all.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How To Create Java Button Or Frame(12)
  2. Css Frame Generator(0)
  3. Kill Frame(2)
  4. Question About Php Includes(17)
  5. Poll: Should I Use Frame Or No Frames For My Site?(10)
  6. Fatal Frame 3(0)
  7. Help With A Bit Of Frame / Frameset Html(5)
  8. Very Simple Picture Frame(0)
  9. Advanced Html Frame Tag(3)
  10. How Do I Make A Frame In The Index.html?(8)
  11. Designing Index Page With Target(13)
  12. Frames Problem: Loads In Wrong Frame(5)
  13. Html Frame Help(8)
  14. Frame Scrolling(5)
  15. Refreshing Frame From Page(1)
  1. Kickoff Frame Javascript(1)
  2. Does Frame Have To Scroll?(5)
  3. Refreshing Frame(1)


 



- Lo-Fi Version Time is now: 24th July 2008 - 12:03 PM