View Full Version : Navigation Bars + Inline Frames


ono_its_LiLo
06-08-2003, 07:43 AM
I have a navigation bar at the top of my page and I wanted to know how do I make it so that when people click on one of the links on the top, the page would show up in my inline frame?

you'll see what i mean when yoo look at my page... oh yeah and ignore my little message if yoo want... yoo don't have to but I suggest yoo protect yourself from bad influences...


JUST A WARNING...

Pleease help!!!WOWIES (http://www.geocities.com/hi_im_jessica/front.html)

MaGiCSuN
06-08-2003, 12:19 PM
This is what i have read on the page from dynamicdrive.com where the script is located:

2) Menu links targetting

When an item or header is clicked on, the associated link string is checked. If it's a null string, nothing is done. If the string starts with "javascript:" the code that follows is executed. For anything else, the string is taken to be a URL and the window's location is set to that value, causing the link to be followed.

To setup a menu link so that the url loads in another frame, use the following javascript: url:

javascript:parent.framename.location='http://dynamicdrive.com'

where "framename" is the name of the frame you wish to target.

So for you it would be:

javascript:parent.inlineframe.location='http://dynamicdrive.com'

Also make sure you haev closed your <body> tag, it's not like this:

<body onload="init()"

but it should be:

<body onload="init()">

Love,
Mirna

ono_its_LiLo
06-08-2003, 05:39 PM
THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU!!!!


YOU'RE THE COOLEST IN THE WHOLE FREEGIN WORLD!!!


THAANNNKKKK YOOOOOOOOOOOUUUU!!!!!


If it weren't for you... i woulda gone crazy


Thanks!!!

ono_its_LiLo
06-08-2003, 05:44 PM
Ooooh... wait but i gotta question...
do i substitute

dhtmlMenu.addItem(new NavBarMenuItem("News.com", "http://www.news.com"));

with

java script:parent.inlineframe.location='http://dynamicdrive.com'



?