d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Need Help
Add Reply New Topic New Poll
Member
Posts: 16,661
Joined: Aug 14 2006
Gold: 120.00
Oct 9 2013 08:33am
PHP

Sub-pages with PHP. You must have at least 3 sub-pages as separate HTML documents in addition to the main page. If you do not have this before you make it . ( If you find it difficult to find the text , use snippets from books / wikipedia , photo gallery , product information about a product you like , etc. Just remember to quote your reference if you did not create the content yourself ) .
You should brukePHP include to include the content that is different from side to side so that the HTML framework only in one copy .
You should use a " query- string " variable called "page" ( read by using $ _GET ) to switch between the pages. It should then be possible to get to the three different sub-pages by hooking the following url to your page : " page = 1" , " page = 2" and " page = 3". You will need a simple control structure for this, as well as include.
There will be links to these sub-pages , and they must of course be amended accordingly

JavaScript

" Read more " with JQuery . On one of the pages should have at least 3 texts with some length , located in separate HTML element . You will be using JQuery toggle ( t) (where t is an appropriate number of milliseconds ) to create a " read more" link (it must not be a link, it can be a button , a div w. , Just seeing someone reasonably clean and natural ) . The texts should therefore be partially hidden, until you press the " read more " - then the rest arrive . To achieve this, the section of text to be hidden , also in their own HTML element . When you click on "read more " link to this " inner" html element turned on / off with " toggle " .
Change of colors. At least one of the sites you have the option to change colors on parts of the page with javascript.
At least three items of the same type to make new colors
It shall be possible to choose between at least three colors
You choose if you want to use jquery or just plain javascript.
PS: Weekly assignments can give you some help on the way here .

Easter eggs !

It is tradition to hide funny messages , pictures, sounds , etc. . inside the computer software. To see an example , google "do a barrel roll " ( Do it ) . These are called eeast eggs ) and is available to anyone, but you have to know exactly where to touch , or in what order, what to write , etc. . to get it out .

got homework, but i need help... can people give me some examples etc and explain me, will pay fg.
Member
Posts: 2,478
Joined: Jan 4 2007
Gold: 7,545.00
Oct 9 2013 10:08am
Have you attempted to do this at all?

I'd suggest posting your code and pointing out the errors and we can help from there. I doubt anyone here really wants to do your homework.

This post was edited by DirtyRasa on Oct 9 2013 10:08am
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Oct 9 2013 01:04pm
terrible Engrish

Code
<?php
if(isset($_GET['page'])) {
if($_GET['page'] === 1) {
?>

content for page 1

<?php
}
if($_GET['page'] === 2) {
?>

content for page 2

<?php
}
if($_GET['page'] === 3) {
?>

content for page 3

<?php
}
}
?>


Or if you're using include statement

Code
<?php
if(isset($_GET['page'])) {
if($_GET['page'] === 1) include('index1.php');
if($_GET['page'] === 2) include('index2.php');
if($_GET['page'] === 3) include('index3.php');
}
?>
Member
Posts: 16,661
Joined: Aug 14 2006
Gold: 120.00
Oct 9 2013 01:09pm
Quote (DirtyRasa @ Oct 9 2013 05:08pm)
Have you attempted to do this at all?

I'd suggest posting your code and pointing out the errors and we can help from there.  I doubt anyone here really wants to do your homework.


ye , its my homework... and i dunno what to do. ^
thats why ill pay.
Quote (0n35 @ Oct 9 2013 08:04pm)
terrible Engrish

Code
<?php
if(isset($_GET['page'])) {
    if($_GET['page'] === 1) {
    ?>

content for page 1

    <?php
    }
    if($_GET['page'] === 2) {
    ?>

content for page 2

    <?php
    }
    if($_GET['page'] === 3) {
    ?>

content for page 3

<?php
    }
}
?>


Or if you're using include statement

Code
<?php
    if(isset($_GET['page'])) {
          if($_GET['page'] === 1) include('index1.php');
          if($_GET['page'] === 2) include('index2.php');
          if($_GET['page'] === 3) include('index3.php');
    }
?>


ill get back to you ^
Oct 10 2013 07:48am
Inappropriate Post Content
Member
Posts: 16,411
Joined: Apr 9 2007
Gold: 12,059.17
Oct 10 2013 03:07pm
about the second assignment check this out, this has some samples how to do "show more"/"show less":

http://jsfiddle.net/QrLtA/

And lastly: what do you need about the Easter Eggs part?
Member
Posts: 2,736
Joined: Nov 28 2009
Gold: 34.00
Oct 11 2013 03:00am
I've helped Ameziz with this. :)
Member
Posts: 16,661
Joined: Aug 14 2006
Gold: 120.00
Oct 11 2013 03:02am
Quote (Ironfister @ Oct 10 2013 10:07pm)
about the second assignment check this out, this has some samples how to do "show more"/"show less":

http://jsfiddle.net/QrLtA/

And lastly: what do you need about the Easter Eggs part?


already gotten help, but i had to use the jqeury toggle() function, but thanks for help anyways ^
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll