Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Menu in frame?

  • 04-04-2002 1:29pm
    #1
    Registered Users, Registered Users 2 Posts: 1,684 ✭✭✭


    <HTML> 
    <TITLE>First Frame Page</TITLE>
    
    <FRAMESET COLS="18%,82%" scrolling="no" frameborder="NO" border="0" framespacing="0">
    
    <FRAME SRC="menu.html"  scrolling="no">
    <FRAME SRC="welcome.htm">
    </FRAMESET>
    
    </HTML> 
    
    how do i make menu on right show up its links on the left? i know its really simple i just cant figure it out.


Comments

  • Registered Users, Registered Users 2 Posts: 2,660 ✭✭✭Baz_


    okay im assuming you got your right and your left mixed up, but it really doesnt matter.

    Give each FRAME tag a name attribute, and then to open a link from one in the other the link appears like this:
    <a href="somelink.html" target="[otherframename]">linktext</a>


  • Closed Accounts Posts: 1,651 ✭✭✭Enygma


    Give the second frame a 'name':
    <frame src="welcome.htm" name="mainContent">
    

    In your left links the tags should say:
    <a href="whatever.html" target="mainContent">Opens in other frame</a>
    

    I think


  • Closed Accounts Posts: 21 Griever


    sorry


  • Closed Accounts Posts: 21 Griever


    doh my mistake btw this is not spam


  • Registered Users, Registered Users 2 Posts: 1,684 ✭✭✭Kraken


    kinda understand that but cant get it working i under stand the logic of it. just well i dunno.

    file above is index.html menu.html can be located Here and the main page is here just cant figure it out. its recking my head.

    And here is what its supposed to look like well nearly still missing some stuff.
    bah


    This is it as far as i have it just pretend that there are images in it and that there are no boards.ie logos behind the menu :)

    my head is starting to hurt with this :angry::confused: :tired:

    please help.


  • Advertisement
  • Closed Accounts Posts: 1,651 ✭✭✭Enygma


    OK, see this in menu.html?
    //makeMenu('TYPE','TEXT','LINK','TARGET', 'END (THE LAST MENU)')
    
    //Menu 0 
    makeMenu('top','Home')
    	makeMenu('sub','East cork news','http://www.eastcork.com/eastcorknews.htm')
    	makeMenu('sub','Site Map','http://www.eastcork.com/sitemap.htm')
    	makeMenu('sub','Search this site','http://www.eastcork.com/welcome.htm#sitesearch')
    

    makeMenu should take 5 parameters, the first is the 'type' or where it is in the hierarchy, the second is the text, the third is the link, the fourth is the target and the last one is false for everything except the last link in the menu where it's true.

    So change your makeMenu calls to look like this:
    //Menu 0
    makeMenu('top','Home')
    	makeMenu('sub','East cork news','http://www.eastcork.com/eastcorknews.htm', 'targetFrame', false)
    	makeMenu('sub','Site Map','http://www.eastcork.com/sitemap.htm', 'targetFrame', false)
    	makeMenu('sub','Search this site','http://www.eastcork.com/welcome.htm#sitesearch', 'targetFrame', true)
    

    HTH


  • Registered Users, Registered Users 2 Posts: 2,660 ✭✭✭Baz_


    okay that code is not too easy to follow ;) but ive tried, in the make menu function there is a section of code that says this:
    <a '+tg+' href="'+lnk+'" class="clSlideSub2Links">
    it should say this:
    <a '+tg+' href="'+lnk+'" class="clSlideSub2Links" target="main">
    and this one, which was harder to follow:
    <a '+tg+' onclick="swmenu('+(a-1)+','+b+',-1); if(bw.ie || bw.ns6) this.blur(); '
    if(lnk=="#") str+='return false'
    str+='" href="'+lnk+'" class="clSlideSubLinks">
    should say:
    <a '+tg+' onclick="swmenu('+(a-1)+','+b+',-1); if(bw.ie || bw.ns6) this.blur(); '
    if(lnk=="#") str+='return false'
    str+='" href="'+lnk+'" class="clSlideSubLinks" target="main">


  • Registered Users, Registered Users 2 Posts: 1,684 ✭✭✭Kraken


    cheers done and dusted. now all i need do is get access to their files change their flash around take out the silly menu and tada. cheers for the help enygma. i was screwed without it. i was going the complete wrong way about it. i just change them to main from target frame.
    Baz_ cheers i actually under stand that but got it working from enygmas post but i will try yours out as well. cheers for all the help.


  • Registered Users, Registered Users 2 Posts: 2,660 ✭✭✭Baz_


    I actually didnt see enygmas post until, now actually, damn i was pwnd. and his was a lot neater too, ah well.

    and glad I could be of even moderate assistance ;)


  • Closed Accounts Posts: 1,651 ✭✭✭Enygma


    and his was a lot neater too, ah well.
    Presentation is everything in a good post _Baz, everything.

    I didn't get where I am today by....rant rant rant
    :P

    Your stuff was right, I was gonna suggest that too, but the 'tg' variable is the target attribute. They'd have to do it that way to make it customisable.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,684 ✭✭✭Kraken


    cheers to both of ye dudes. Ill let ye know when its all up and running.


Advertisement