painkiller Posted April 8, 2009 Report Posted April 8, 2009 (edited) Hello everybody I want to have a window inside a window Like this site has http://www.brutalbands.net/index.html how do i do that? i cant navigate with the a small window inside... Regards Painkiller Edited April 8, 2009 by painkiller Quote
jlhaslip Posted April 8, 2009 Report Posted April 8, 2009 http://www.jlhaslip.trap17.com/samples/misc/frames/css_frame.html or http://www.jlhaslip.trap17.com/samples/templates/framed/index.html Quote
painkiller Posted April 8, 2009 Author Report Posted April 8, 2009 Thanks Jihaslip This site kicks ass Quote
newseed Posted April 8, 2009 Report Posted April 8, 2009 That site uses frames but that is not ideal because frames only allows one page to be indexed and bookmarked. Even if you submit a sitemap and get all the pages indexed, the other problem is that when visitors click on any of the google indexed url, it will take them directly to the content page thus there are no header/footer which then shows no navigation. The correct ways is to use server side includes (PHP or ASP). If you want the center content to scroll then wrap that content in a div with a fixed width and height and style it using overflow: auto. Quote
painkiller Posted April 14, 2009 Author Report Posted April 14, 2009 Can yoou show me code for this? I think it an iframe thing... if i have a menu table up top and when you click on the for eg. the bands page it will go to the iframe etc etc.. Quote
Andrea Posted April 14, 2009 Report Posted April 14, 2009 What exactly are you trying to achieve? If it's just that you don't want to have to repeat those parts that are the same all across your site - like the menu - use php includes: http://www.killersites.com/forums/topic/357/repeating-sections-of-code-on-many-pages/ Quote
painkiller Posted April 14, 2009 Author Report Posted April 14, 2009 Like this Site http://www.brutalbands.net/index.html when the user clicks on for example e-store etc... he/she will see it on the same page but its in a frame Quote
Andrea Posted April 14, 2009 Report Posted April 14, 2009 Frames are a really bad idea - see here: http://www.killersites.com/mvnforum/mvnforum/viewthread?thread=4258 There's not a single good reason to use them - and people don't care if clicking moves them to a different page. That's kind of the expected reaction. Quote
newseed Posted April 14, 2009 Report Posted April 14, 2009 Like this Site http://www.brutalbands.net/index.html when the user clicks on for example e-store etc...he/she will see it on the same page but its in a frame If you have read my earlier post, iframe will not help you with google indexing. Also users will not be able to bookmark to any specific page other than the home page (index page). Iframes might be ok for isolated use but not for the whole site. Even then it's better to use CSS overflow instead. What you need and should be using is Server Side Includes using PHP or ASP. If you don't know how to do that then it's time you learn. We can help you in the process but only if you help yourself by taking the time to learn the codes. Quote
monkeysaurus Posted April 14, 2009 Report Posted April 14, 2009 (edited) Ditch the frames - this 'window within a window' effect can be achieved entirely through CSS. Look into the overflow property. And for a truly stunning example of how a similar effect can be achieved using css only: http://www.csszengarden.com/?cssfile=/202/202.css And for a slightly more mundane (but more practical) example: http://www.w3schools.com/Css/tryit.asp?filename=trycss_pos_overflow_auto Edited April 14, 2009 by monkeysaurus Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.