Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 window url

views
     
TSpurpleangel85
post Jul 20 2007, 02:42 PM, updated 17y ago

New Member
*
Junior Member
6 posts

Joined: Jun 2007
hi there..i got some question need u all help. i know is easy but..i duno wat is the solution. i have attached a file. hope u all can give me a hand. thank you.


Attached File(s)
Attached File  question.doc ( 89.5k ) Number of downloads: 36
callmepaper
post Jul 20 2007, 03:15 PM

书到用时方恨少
******
Senior Member
1,319 posts

Joined: Dec 2005
From: somewhere i belong
would you mind to summarise your question and post it up here?
bladegirl
post Jul 20 2007, 03:23 PM

Getting Started
**
Junior Member
112 posts

Joined: Jun 2007
From: Selangor


QUOTE(purpleangel85 @ Jul 20 2007, 02:42 PM)
hi there..i got some question need u all help. i know is easy but..i duno wat is the solution. i have attached a file. hope u all can give me a hand. thank you.
*
If you looked at the source code, you will notice that they are using HTML Frames.

http://www.w3schools.com/html/html_frames.asp

What happens is, with frames, you have a main page that describes the layout of the page. Then, each section of the page is created with different files.

Eg. In your index.html you might have this code:

CODE

<frameset cols="*,100%">
  <frame src="empty.html">
  <frame src="content.html" name="myContentPage">
</frameset>

Create an empty file called empty.html, and create a content.html.

Then, in your content.html you include this line:

CODE
<a href="contentPage2.html" target="myContentPage">Content Page 2</a>


In this case, even if the user clicks to go to Content Page 2, they are technically still on index.html and the address bar URL will not change.

Hope you understand what I'm saying :/ Try to search for more tutorials on the net on how to use HTML Frames.
silverhawk
post Jul 20 2007, 03:31 PM

I'm Positively Lustrous
Group Icon
Elite
4,738 posts

Joined: Jan 2003


Why do you want to do that though? Its better to show the page you're at in the url. Frames have their uses, but they are generally bad as a public interface.
bladegirl
post Jul 20 2007, 03:39 PM

Getting Started
**
Junior Member
112 posts

Joined: Jun 2007
From: Selangor


QUOTE(silverhawk @ Jul 20 2007, 03:31 PM)
Why do you want to do that though? Its better to show the page you're at in the url. Frames have their uses, but they are generally bad as a public interface.
*
Yep I agree with silverhawk. Frames are obsolete. Most web designers don't use frames anymore.
TSpurpleangel85
post Jul 20 2007, 04:59 PM

New Member
*
Junior Member
6 posts

Joined: Jun 2007
QUOTE(silverhawk @ Jul 20 2007, 03:31 PM)
Why do you want to do that though? Its better to show the page you're at in the url. Frames have their uses, but they are generally bad as a public interface.
*
nola..jz wan to know how to do it? javascript can do it? thanx
sunsuron
post Jul 20 2007, 06:53 PM

Regular
******
Senior Member
1,334 posts

Joined: Nov 2004



QUOTE(purpleangel85 @ Jul 20 2007, 04:59 PM)
nola..jz wan to know how to do it? javascript can do it? thanx
*
example onmouseover/out , change title

CODE

function uselessFunction()
{
var t = document.title;
var a = document.getElementsByTagName( "a" );

if ( a.length ) {
 for ( var i = 0; i < a.length; i++ ) {
  a[i].onmouseover = function() {
   document.title = this.href;
  }
  a[i].onmouseout = function() {
   document.title = t;
  }
 }
}
}

window.onload = uselessFunction;


 

Change to:
| Lo-Fi Version
0.0142sec    0.45    6 queries    GZIP Disabled
Time is now: 29th March 2024 - 10:37 PM