Click to See Complete Forum and Search --> : Toolbar


Perry Garrod
01-21-2003, 10:19 AM
Having a problem setting up a Toolbar

Source file says

<!-- ONE STEP TO INSTALL TOOLBAR MENU:

1. Copy the coding into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the BODY of your HTML document -->

<BODY>

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: Sharon Harber (sharon@harber.f9.co.uk) -->
<!-- Web Site: http://www.nwr.org -->
<script type='text/javascript' src='nwrmenu_var.js'></script>
<script type='text/javascript' src='menu_com.js'></script>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 0.63 KB -->

But alls I get is a Hyperlink

What am I doing wrong?

Thanks


http://javascript.internet.com/navigation/toolbar-menu.html

tbod
01-21-2003, 10:56 AM
This requires that you download 2 JS files :

nwrmenu_var.js
menu_com.js

Just enter the following 2 urls into the aadress bar and save them accordingly:

http://javascript.internet.com/navigation/nwrmenu_var.js
http://javascript.internet.com/navigation/menu_com.js

T

Perry Garrod
01-22-2003, 11:00 AM
The Toolbars works fine, but I only want any links to either run winthin the main frame (and not the header) for those links without http and for those with http, ie going elsewhere to open a new window.

Any ideas how this can be achieved?

tbod
01-22-2003, 11:29 AM
I'm not exactly sure that I understand what you are saying, but perhaps you are referring to frame TARGETS.

Links can be tageted to any frame or new window by using the NAME attribute of the frame tag. Such as:

target="_blank"
(opens the link in a new window)

target="_parent"
(opens in the parent frame. Duh)

target="_self"
(opens in the same frame as the link. It replaces the current page within that frame)

target="_top"
(opens in the same window as the frames page, although it replaces the entire frames page with the new linked page)

target="your_named_frame"
(opens in a frame which which you have named)

For instance, if the name of your main frame is "main", then you could use something like:
<a href="your_page.htm" target="main">load in Main frame</a>
and for the new window use:
<a href="your_page.htm" target="_blank">load in new window</a>

Hopefully this is what you were after.
If not, I'm sure that someone can use this info.
T