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 Link to comment https://forums.phpfreaks.com/topic/163281-php-index-page-help-needed/ 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 Link to comment https://forums.phpfreaks.com/topic/163281-php-index-page-help-needed/#findComment-861455 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? Link to comment https://forums.phpfreaks.com/topic/163281-php-index-page-help-needed/#findComment-861461 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 Link to comment https://forums.phpfreaks.com/topic/163281-php-index-page-help-needed/#findComment-861468 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. Link to comment https://forums.phpfreaks.com/topic/163281-php-index-page-help-needed/#findComment-861470 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.