PDA

View Full Version : Frames Help Please


Jasmine
10-12-2002, 06:03 AM
Top Navigational Bar (aka Smart menu) All

How Do I Load The Menu Links To Other Frames.
Whatever I Do I Can't Manage To Load It To Other Frames

Please Help
Thanks ~~~~

Example:

menu.addSubItem("Photoid", "Me", "Me", "http://www.ABC.com");

What Must I Input , So The Menu Link Will Go To The Mainframe

Jasmine
10-12-2002, 05:20 PM
I Downloaded Your Script "Top Navigational Bar (aka Smart menu) All"

How Do I Load The Menu Links To Other Frames?
Whatever I Do I Can't Manage To Load It To Other Frames

I Did Check Out Your Top script related questions of Dynamic Drive 3Q)
And I Try This On My menucontext.js

Example:

menu.addSubItem("Homepageid", "Home", "Home", "javascript:parent.mainFrame.location='http://www.hotmail.com");

My Website is http://www.geocities.com/tvl2416/VL.htm
Try The Menu Link Search Engine , Yahoo

It Doesn't Change Into The Frame I Wanted

Help Me ~

Garadon
10-12-2002, 06:02 PM
try this

in menu.js replace following lines

function addSubItem(idParent, text, hint, location)
with
function addSubItem(idParent, text, hint, location,target)


and
if (n) MENUitem = "<tr><td><a class=clsMenuItemNS title='"+hint+"' href='"+location+"'>"+text+"</a><br></td></tr>\n";
if (ie||ns6) MENUitem = "<tr><td><a class=clsMenuItemIE title='"+hint+"' href='"+location+"'>"+text+"</a><br></td></tr>\n";

with:
if (n) MENUitem = "<tr><td><a class=clsMenuItemNS title='"+hint+"' href='"+location+"' Target='"+target+"'>"+text+"</a><br></td></tr>\n";
if (ie||ns6) MENUitem = "<tr><td><a class=clsMenuItemIE title='"+hint+"' href='"+location+"' Target='"+target+"'>"+text+"</a><br></td></tr>\n";


and in menucontext.js
subitem calls should look like this

menu.addSubItem("searchengineid", "HotBot", "HotBot", "http://www.hotbot.com","TARGETFRAME");




note I have not tested this

Quiet Storm
10-12-2002, 07:19 PM
CROSSPOSTED! (http://www.codingforums.com/showthread.php?s=&postid=36790#post36790):mad: