YOU CAN GET ALL

Friday 11 February 2011

Multiple Frame in Using Frontpage

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. To edit your hyperlink to update two frames, use one of the following methods.
Back to the top
Method 1
1. In FrontPage Editor, open the page on which you want to create the link.
2. Select the text you want for the link and click the Link button on the toolbar. The Create Hyperlink dialog box will appear.
3. In the URL box, type the URL of the first page that you want to load.
4. Click Target Frame, click the frame for the first page, and click OK twice.
5.Click the HTML tab to switch to HTML view.
6. Insert the following onClick parameter in the anchor tag:

onClick="parent.frames[<n>].location.href='<URL>';"
where <n> is a number indicating the frame that you want the resource to appear in, and <URL> is the URL of the page that you want to appear in that frame.

NOTE: Frame numbers start at 0; hence, parent.frames[2] indicates the third frame in a collection.You may count frames from top to bottom and then from the left of the screen to the right of the screen. For example this code

<a href="mypage.htm" onclick="parent.frames[2].location.href='otherpage.htm';">My Link</a
will load Otherpage.htm into the third frame in the collection. If you want to load additional frames, repeat step 6 for each frame you want to load (separate each new entry with a space).
On the File menu, 
click Save.

No comments:

Post a Comment