Rikmanmonkey Posted November 12, 2012 Share Posted November 12, 2012 (edited) Hi, Just wondering if anyone can help here, ive been creating this website doing a bit here and there the last couple of years and i have a few questions. http://www.rixsta.co.uk/ My main issue is that i want the music player to keep on playing when you go to a new page, i know some/all ? php sites are ok in this way because when you change page most of the page stays the same and the browser is not refreshed. Because the scripts im wanting to use need the pages PHP i think i will convert over so is there a way to convert my site into php or is it best to start again. this is a page ive converted and it works fine! http://www.rixsta.co.../html/test5.php it has to be PHP for the comments script at the bottom of the page..i think im best making all pages php The other thing is id like to be able to make the menu semi-transparent or find a similar menu to go on the side bar rather than at the top. Most importantly i would like to make it so you can go to the next album by clicking the arrows and only that section of the page change to a new album/info/downloads and so on, the menu the left hand bar and music player all stay the same. Cheers for any help i know its a lot of questions Edited November 12, 2012 by Rikmanmonkey Quote Link to comment Share on other sites More sharing options...
codefossa Posted November 12, 2012 Share Posted November 12, 2012 You need to read up on what HTML and PHP actually are. Then you need to check out Javascript and Ajax to do the things you're aiming for. Also, if you do actually start learning JS, check out jQuery because it will make many things much easier. Basic Info HTML - The page data shown and downloaded to the browser. PHP - Server-sided scripting that can interact with the database and files + a bit more. Javascript - Client-sided scripting that can interact with the HTML and request other pages. Ajax - What you'll use to request the pages in JS. jQuery - A framework for JS that will make life so much easier. Quote Link to comment Share on other sites More sharing options...
Rikmanmonkey Posted November 13, 2012 Author Share Posted November 13, 2012 Hi, thanks So i presume it will need a lot of learning to get the mp3 player to not refresh, even for a simple page like this ? http://www.rixsta.co.uk/test/index.php Cheers, i will look into Javascript, ajax etc Quote Link to comment Share on other sites More sharing options...
codefossa Posted November 13, 2012 Share Posted November 13, 2012 It would be easy, but that's not the point. It's clear from what you've posted that you don't really understand what you're trying to do, and I was suggesting you learn what you're doing before you try to code it because you were going in the wrong direction. All you really need is a content div and then load data from another page into it with Ajax. You should learn what HTML, PHP and JS actually are though so you will get a lot more out of it. For example. Converting HTML to PHP as you put it would simply be changing a file extension unless you echoed out all of the HTML with PHP function, but that's overly pointless when it's plain HTML. They each do completely different jobs, and once you figure that out, it will help you do a lot more than the simple thing you're talking about here. For this example if you just wanted to have it done, use jQuery and you would have this when the click trigger is set off for a navigation link: $("#mydiv").load("about.php"); Also, you should use CSS instead of tables to create a layout. Tables are for tabular data while CSS is for styling your layout. 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.