Page 1 of 1

Php 'frames' effect

Posted: Sat Nov 22, 2003 7:55 am
by sasuke
I must say I merely a beginner in programming php and need still a lot of practice. Can anyone help me with the code to create 'frames' with php? I don't mean actually frames, but the code for php that does about the same thing that frames do in html. I would like my main page to have a menu on the left and header image (without links) at the top, content displayed on the right? Can anyone get me on the right track?

Some other questions (not really php related):
*I want to make a playlist that plays audio in the menu of my site. I want to make it so that you will only see play, stop, next and previous buttons, so you can sort of zap on the next or previous one and it should be visible on every page. If the music is stopped in one page, it should be stopped in the next page too. Has anyone got advice on how to do this?

*I'm using simple java to make sure there's no right click on main page, is there any way to make the box that pops up custom colored?

Thanks in advance for your help!!! :)

Posted: Sat Nov 22, 2003 8:16 am
by RTT
None of those questions are PHP related. Remember PHP is server-side and as such, is an interface for returning HTML.

Thus, frames are created in exactly the same way as with HTML, infact, you will have to use HTML to create the frames in the first place ;)
PHP can be used, for example, to create what will be inside the frames.
The playlist question, that's all also HTML.
And for the javascript box thing, nope, you can't customise it, and certainly not with PHP.

Posted: Sat Nov 22, 2003 5:52 pm
by sasuke
Then what is good alternative to frames? Frames really annoy me :(

Yes, I do realise the box thingy is not customisable with php. I just thought I read something about it, so I thought I would ask :(

Posted: Sat Nov 22, 2003 6:58 pm
by DuFF
I think maybe what you mean is using templates. Templates are used to seperate the PHP code from the design of the site. You can find more about it at these links:

patTemplate:
http://www.php-tools.de/site.php?&file= ... erview.xml
patTemplate Tutorials:
http://www.devshed.com/Server_Side/PHP/ ... page1.html
http://www.devshed.com/Server_Side/PHP/ ... page1.html

Other Links:
http://www.zend.com/zend/tut/tutorial-Darrell.php
http://www.gurusnetwork.com/tutorials/p ... late2.html
*I'm using simple java to make sure there's no right click on main page, is there any way to make the box that pops up custom colored?
I did find one script that doesn't even have a pop-up, just the right-click has no effect.
http://www.dynamicdrive.com/dynamicindex9/noright3.htm