jsayers169 Posted June 22, 2009 Share Posted June 22, 2009 Hey everyone. I know this is quite a common question but i have never seen anything that has actually worked. Basically what i am after is a static index page that loads up the other pages by name rather than a normal HTML link or what have you. The idea behind it is to have a static mp3 player on the main page that doesn't stop playing while your browsing my website. Many people talk about using frames but when i try to do it and click on a link it gets rid of the player and just opens up the normal page. Here is an example of what i want for my website http://www.deadman.bandvista.com/ it's an account i opened up because they offered some good things but i don't really like them at all. But check out how the links react while in the index pages and that is what i want. Thanks Jason Quote Link to comment Share on other sites More sharing options...
ldougherty Posted June 22, 2009 Share Posted June 22, 2009 To retain content on the page you would need to use frames, an iframe would likely be your best bet. The key is when your users click on links the link itself needs to specify a target frame otherwise it will take the entire page. http://www.w3schools.com/TAGS/tag_iframe.asp Quote Link to comment Share on other sites More sharing options...
jsayers169 Posted June 22, 2009 Author Share Posted June 22, 2009 To retain content on the page you would need to use frames, an iframe would likely be your best bet. The key is when your users click on links the link itself needs to specify a target frame otherwise it will take the entire page. http://www.w3schools.com/TAGS/tag_iframe.asp OK but how do i make the php pages (i know some of them are HTML) load just via the page names? Quote Link to comment Share on other sites More sharing options...
ldougherty Posted June 22, 2009 Share Posted June 22, 2009 Reference them via the path rather than the absolute URL <a href='index.php' target='mainframe'> <a href='contact.php' target='mainframe'> etc etc Quote Link to comment Share on other sites More sharing options...
jsayers169 Posted June 22, 2009 Author Share Posted June 22, 2009 Reference them via the path rather than the absolute URL <a href='index.php' target='mainframe'> <a href='contact.php' target='mainframe'> etc etc OK i shall try that, Thanks very much. Quote Link to comment Share on other sites More sharing options...
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.