Jump to content

Recommended Posts

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.

 

 

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!

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 by Rikmanmonkey

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.

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.