Home
Website Navigation
News
Forum
FAQs
Links
Shop
Server Navigation
Join Public Server
Join GunGame Server
Join Match Server
Stats
Map List
Matches Navigation
Clan Members
Watch Match TV
Shoutbox
Latest Message: 5 days ago
  • monkey pie : 3 years old :O
  • [KM] Oak : my rap remix]
  • [KM] Oak : «link»
  • [KM] Oak : tongue.png
  • MaximusAlex : god that KM's 3rd birthday really needs to be removed
  • [KM]Pill : oi oi
  • [KM]Pugless :
  • MaximusAlex :
  • MaximusAlex : It's OUT today! *dribbles*
  • MaximusAlex : It's Awesome tongue.png
Please Login to shout..
Login
Birthdays
Black Phoenix 17 in 2 days
[KM]Sneg_ 21 in 2 days
nitro 2 in 3 days
raggi™ 25 in 3 days
[KM]OurManFromRushia 23 in 4 days
BANNED_Lainton 2 in 6 days
Skyrider 22 in 10 days
JiNK 17 in 11 days
eRa 2 in 12 days
Krusty 0 in 12 days
Whos Online
Newsflash
If you dont have a login yet please Register. Only logged in users are able to post
If you have signed up before but havent recieved an email please signup again with the same username.
 
PayPal Donations
Latest Posts
Killer Mongoose  


Dreamweaver
By: [KM]OurManFromRushia Date: 03/05/2006 09:05
  Status:
Gold Boarder

Posts: 464
graphgraph
Anyone with a good knowledge of dreamweaver?

Im trying to make a page with a set background and a table in the centre with links.. When i click the links only the table changed and the background does not refresh..

This is an example of my really old site i made..

The whole page refreshes when you click a link but its such a low size site that you don't notice it.

Thanks.
The administrator has disabled public write access.

Re:Dreamweaver
By: [KM]ShadowDog Date: 03/05/2006 10:20
  Status:
Admin

Posts: 3516
graphgraph
you would have to code that in javascript, so that instead of getting a new page it just shows part of a page that is already loaded. You could also do it in frames, but i wouldnt recommend it, frames are wank.

Let me know what you want and i might already have written the code for such a thing, if not i might be able to write the code for you (if i get the time )
The administrator has disabled public write access.

Re:Dreamweaver
By: [KM]OurManFromRushia Date: 03/05/2006 11:07
  Status:
Gold Boarder

Posts: 464
graphgraph
Ok thanks.. Ill have a gander.
The administrator has disabled public write access.

Re:Dreamweaver
By: LucidDream1 Date: 04/05/2006 00:42
  Status:
Fresh Boarder

Posts: 26
graphgraph
well wat u could do is a simple include statement in php. Something like
Code:

  <?php     $page = ($_GET['page']);    if (!$page || $page == "news"«»)     {         include("inc/news.php"«»);     }     elseif ($page == "roster"«»)     {         include 'inc/roster.php';     }     elseif ($page == "profiles"«»)     {         include 'inc/profiles.php';     }     elseif ($page == "lineups"«»)     {         include 'inc/lineups.php';     }     elseif ($page == "results"«»)     {         include 'inc/results.php';     }     elseif ($page == "serverstatus"«»)     {         include 'inc/serverstatus.php';     }     elseif ($page == "clannews"«»)     {         include 'inc/clannews.php';     }     elseif ($page == "donate"«»)     {         include 'inc/donate.php';     }     elseif ($page == "clanhistory"«»)     {         include 'inc/clanhistory.php';     }     elseif ($page == "maps"«»)     {         include 'inc/maps.php';     }     elseif ($page == "tutorials"«»)     {         include 'inc/tutorials.php';     }     elseif ($page == "games"«»)     {         include 'inc/games.php';     }     elseif ($page == "reviews"«»)     {         include 'inc/reviews.php';     }     elseif ($page == "links"«»)     {         include 'inc/links.php';     }     elseif ($page == "admin"«»)     {         include 'inc/addnews.php';     }     elseif ($page == "forum"«»)     {         include 'forum/index.php';     }     ?>



U would set up a link like this

Code:

  ?page=roster <a href="?page=roster" class="menu">Clan Roster </a>


then the code would get the required page and insert it into your page, keeping the background u have and saving u having to copy continuosly or modify endlessly ur site. I think thats wat u were after, at least i hope.

instead of .html you would save as .php. Hte above code was one i wrote for the old opiate2 clan site.
The administrator has disabled public write access.

Re:Dreamweaver
By: [KM] + FROG + Date: 04/05/2006 02:53
  Status:
Admin

Posts: 4721
graph
i love php..

ive never used it much, but the little bit of it ive done has been great.

insted of a monster load of if statements, you could use a switch/case statement, which i beleive php supports.

its kind of the same thing as above, just more organised and probably performes a little better.

from here

Code:

 <?php switch ($i) { case "apple":    echo "i is apple";    break; case "bar":    echo "i is bar";    break; case "cake":    echo "i is cake";    break; } ?> 


The administrator has disabled public write access.

Re:Dreamweaver
By: [KM]ShadowDog Date: 04/05/2006 08:42
  Status:
Admin

Posts: 3516
graphgraph
but he would need a php server, and it also loads the page again from the server.

its not any quicker than an html page.

the only way to load a page without seeing it load is to use javascript or AJAX
The administrator has disabled public write access.

Re:Dreamweaver
By: [KM]OurManFromRushia Date: 04/05/2006 09:27
  Status:
Gold Boarder

Posts: 464
graphgraph
errrrr....


The administrator has disabled public write access.

Re:Dreamweaver
By: Commanche Date: 04/05/2006 09:41
  Status:
Platinum Boarder

Posts: 1441
graphgraph
Lol.

Me too rushia. Me too...
The administrator has disabled public write access.

Re:Dreamweaver
By: [KM]ShadowDog Date: 04/05/2006 13:38
  Status:
Admin

Posts: 3516
graphgraph
here is a basic example of loading content without refreshing the page, or using frames.
The administrator has disabled public write access.

Re:Dreamweaver
By: LucidDream1 Date: 04/05/2006 19:32
  Status:
Fresh Boarder

Posts: 26
graphgraph
switch statements are horrible and really bad. I would always advise using ifs over a switch. A switch if ur desperate. php rocks and if he has some kind of webhosting i doubt they wouldnt support it.
The administrator has disabled public write access.

Re:Dreamweaver
By: [KM]OurManFromRushia Date: 04/05/2006 19:58
  Status:
Gold Boarder

Posts: 464
graphgraph
They do support php and thanks for all your help..

Got it sorted
The administrator has disabled public write access.