50 users online (0 members and 50 guests)  


  Results 1 to 2 of 2

Related

  1. Verifing Window 'size' upon Opening a File.    Forum: Javascript Forum
    Replies: 8
  2. Opening a new window    Forum: HTML Forum
    Replies: 12
  3. Opening New Window    Forum: Javascript Forum
    Replies: 9
  4. Page opening in new window - Help    Forum: HTML Forum
    Replies: 7
  5. problem with javascript opening a new window    Forum: Javascript Forum
    Replies: 4
  1. #1
    fadenangel's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2003
    Posts
    1

    Unhappy javascript-help with opening in frame window

    So far the website that I am working on has a navagational bar with javascript rollover menus. The navagational bar with links open to a frame called 'main'. But the rollover links open up the windows in another frame which I don't want. I am trying to understand how I can do this

    Can anyone help?

    Here is the code for the menus:

    [FONT=Arial Black]function fwLoadMenus() {
    if (window.fw_menu_1) return;

    window.fw_menu_0 = new Menu("root",120,19,"arial",11,"#000000","#F4EC0B","#FF8E30","#FF8E30","#ffffff");
    fw_menu_0.addMenuItem("The Team","location='team.html'");
    fw_menu_0.addMenuItem("Press Release","location='press.html'");
    fw_menu_0.addMenuItem("Career","location='career.html'");
    fw_menu_0.addMenuItem("FAQ's","location='faq.html'");
    fw_menu_0.hideOnMouseOut=true;

    window.fw_menu_1 = new Menu("root",120,19,"arial",11,"#000000","#F4EC0B","#FF8E30","#FF8E30","#ffffff");
    fw_menu_1.addMenuItem("Feedback","location='feedback.html'");
    fw_menu_1.addMenuItem("Information","location='info.html'");
    fw_menu_1.addMenuItem("Advertising","location='advertising.html'");
    fw_menu_1.hideOnMouseOut=true;

    window.fw_menu_2 = new Menu("root",120,19,"arial",11,"#000000","#F4EC0B","#FF8E30","#FF8E30","#ffffff");
    fw_menu_2.addMenuItem("Schedules","location='schedules.html'");
    fw_menu_2.addMenuItem("Featured Programs","location='prog_feature.html'");
    fw_menu_2.addMenuItem("Original Programs","location='prog_original.html'");
    fw_menu_2.addMenuItem("Program Submissions","location='prog_sub.html'");
    fw_menu_2.hideOnMouseOut=true;

    window.fw_menu_3 = new Menu("root",120,19,"arial",11,"#000000","#F4EC0B","#FF8E30","#FF8E30","#ffffff");
    fw_menu_3.addMenuItem("Events","location='events.html'");
    fw_menu_3.hideOnMouseOut=true;

    window.fw_menu_4 = new Menu("root",120,19,"arial",11,"#000000","#F4EC0B","#FF8E30","#FF8E30","#ffffff");
    fw_menu_4.hideOnMouseOut=true;



    *****

    document.write('<a href=about.html target="main" onMouseOut=FW_startTimeout();MM_swapImgRestore(); onMouseOver=window.FW_showMenu(window.fw_menu_0,1,103);MM_swapImage("prod","","img/navbar_black_01-over.gif",1);><img src="img/m_about.gif" border="0" vspace="2"></a>');
    document.write('<a href=contact.html target="main" onMouseOut=FW_startTimeout();MM_swapImgRestore(); onMouseOver=window.FW_showMenu(window.fw_menu_1,74,123);MM_swapImage("prod","","images/navbar_black_01-over.gif",1);><img src="img/m_contact.gif" border="0" vspace="2"></a>');
    document.write('<a href=programming.html target="main" onMouseOut=FW_startTimeout();MM_swapImgRestore(); onMouseOver=window.FW_showMenu
    (window.fw_menu_2,148,103);MM_swapImage("loc","","images/navbar_black_02-over.gif",1);><img src="img/m_program.gif" border="0" vspace="2"></a>');
    document.write('<a href=community.html target="main" onMouseOut=FW_startTimeout();MM_swapImgRestore(); onMouseOver=window.FW_showMenu(window.fw_menu_3,238,163);MM_swapImage("loc","","images/navbar_black_03-over.gif",1);><img src="img/m_community.gif" border="0" vspace="2"></a>');
    document.write('<a href=subscribe.html target="main"><img src="img/m_getiatv.gif" border="0" vspace="2"></a>');
    document.write('<a href=content.html target="main"><img src="img/m_home.gif" border="0" vspace="2"></a>');

  2. #2
    cgiexpo's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2003
    Location
    Washington
    Posts
    6
    You can't do it with the ahref in a javascript call, try using javascript's window.open function and calling the target name there.

    See: http://www.devguru.com/technologies/ecmascript/quickref/win_open.html

    for more info.