Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 14 of 14
  1. #1
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    menu without using frames

    Here's what I'm trying to do- I have a menu I made in flash and I want it to stay (not reload) when click through the site. I DON'T want a fixed menu where it stays on the top as you scroll down. Have web browsers fixed the frame problems? How bad is it if I use frames for this effect? OR does anyone have a CSS code that I could stumble through to create this effect? Any other options out there?

    Sorry I'm a newbie...Please respond! THX!

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Fixed menus

    CSS offers fixed positioning, but--to my knowledge--this isn't supported by IE; another option would be to use JavaScript.
    The problems with frames are inherit to frames, not to browsers.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #3
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    3 options:

    1) Use frames.
    2) Make your links swap content on the page, rather than load new pages, using JavaScript.
    3) Do things normally, and reload your navigation on each page. I mean, does it really matter? If it's a Flash file I also would have thought it would be cached so reloading it won't actually be an issue (not 100% on that one though, worth checking out).

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Floating menu?

    I read the original question as if he wanted the menu to stay visible in the viewport while scrolling through the content; maybe the original poster can clarify this.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #5
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    The problem with flash is that when you load a new page with the same flash file, it is cached but you always get a 'flash' of white (or whatever background colour you have set in the parameters for the embed) and tho you can set a background-image to a div and place the flash in the div but because the flash is on top of the div it still creates the 'flash' of colour.
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #6
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    I read the original question as if he wanted the menu to stay visible in the viewport while scrolling through the content; maybe the original poster can clarify this.
    That shouldn't be necessary - the op states "I want it to stay (not reload) when [I] click through the site".

    And, he also quite clearly says...

    I DON'T want a fixed menu where it stays on the top as you scroll down.

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What top?

    You're probably right, but which top does he mean: top of the viewport, or top of the page? (Not) fixed to what, the page or the viewport?
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #8
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the replies! I want the menu to be "fixed" to the top of the page NOT the top of the viewport. So when you scroll down the menu scrolls off the page like normal. I just don't want the menu to reload.

    What I probably should I have explained before is that the menu is a flash slide show, so if it reloads it will go back to the beginning of the movie. I just want it to play continuosly as people flip through the site.

    It's a big problem if it doesn't work on IE, so it sounds like CSS isn't the way to go.

    Frames then?

  • #9
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by ronaldb66 View Post
    You're probably right, but which top does he mean: top of the viewport, or top of the page? (Not) fixed to what, the page or the viewport?
    And "he" is a "she" by the way

  • #10
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, now I'm having a new problem. I've made the final decision to go with frames, but when I click on a link in the flash menu, the html page doesn't load in the content frame. It loads in a new window. The frame name is "contentframe" and here's the code on the buttons:

    this.onRelease = function(){
    getURL("contact.html", "contentframe");
    };

    I feel like I'm missing something with the HTML. Anything I need to do besides name the frame "contentframe"?

    Thanks!

  • #11
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ah! I am so frusturated. So I figured out that last problem but I'm back to the first. Frames don't work! I just want the menu bar not to reload, but I don't want the scrolling effects of frames. I turned the scroll bar off of the content frame, but I didn't realize it turns off the scrolling of the whole window! I want the menu bar and the content to scroll down as one. Like non-framed pages. But the menu bar to load only once. It shouldn't be this hard! Pleeeease help!

  • #12
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Yes it is this hard or you have received the answer by now. Flash has no way of knowing not to reload. If the page reloads so does the flash. You will have to use ajax to make the page not 'reload'.

    http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    Just be sure to have an alternative way of uses viewing the pages if they have javascript disabled.

    Good luck.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #13
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks Aerospace. I wasn't sure if people weren't responding because it was too stupid of a question to waste their time, or if it was actually difficult. I've decided to make a different version of the slide show for each main tab so that it isn't obvious that the movie is starting over with each click. Good enough I guess.

    Thanks everyone.

  • #14
    Regular Coder KevinG's Avatar
    Join Date
    Aug 2002
    Location
    The Matrix
    Posts
    405
    Thanks
    3
    Thanked 0 Times in 0 Posts
    personally i would have used ajax for the body content reload.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •