[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - inhoud veranderen zonder iframe
aan alle goede dingen komt een eind, webmasterplein.net 2003 - 2013
wij danken jullie voor al mooie momenten die dankzij dit forum ontstonden - Derk, Rutger en Stef

inhoud veranderen zonder iframe

Je komt er niet helemaal uit bij het scripten? Übergoede functie geschreven? Alles met betrekking tot scripting, kun je hier terecht.

Berichtdoor Derk » 12 apr 2005 16:01

Het PHP werkt maar het javascript niet zo te merken.....
hmmm ik d8 dat het daarstraks toen ik het javascript testte wel werkte....

*gaat wat anders verzinnen

<hr />andere oplossing:



[syntax="php"]<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>Test index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="description" content="">
<meta http-equiv="keywords" content="Autocad">
<meta http-equiv="generator" content="mps htmlgate free">
<meta http-equiv="author" content="julien">
<?
if ($_GET["p"]=="mezelf")
{
$page="mezelf.html";
$menu="Diverse";
}
else if ($_GET["p"]=="test")
{
$page="test.html";
$menu="Diverse";
}
else if ($_GET["p"]=="pagina_2")
{
$page="pagina_2.htm";
$menu="Diverse";
}
else
{
$page="test.html";
$menu="geen";
}
?>

<script type="text/javascript">
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000">

<div id="Layer1" style="position:absolute; left:91px; top:8px; width:563px; height:26px; z-index:1; visibility: visible"><a href="../index.html">startpagina</a>
| <a href="#" onClick="MM_showHideLayers('Cursus','','show','block','','hide','Lisp','','hide','Applicaties','','hide','contact','','hide','Diverse','','hide')">Cursus</a>
| <a href="#" onClick="MM_showHideLayers('Cursus','','hide','block','','show','Lisp','','hide','Applicaties','','hide','contact','','hide','Diverse','','hide')">blocks</a>
| <a href="#" onClick="MM_showHideLayers('Cursus','','hide','block','','hide','Lisp','','show','Applicaties','','hide','contact','','hide','Diverse','','hide')">lisp</a>
| <a href="#" onClick="MM_showHideLayers('Cursus','','hide','block','','hide','Lisp','','hide','Applicaties','','show','contact','','hide','Diverse','','hide')">Applicaties</a>
| <a href="#" onClick="MM_showHideLayers('Cursus','','hide','block','','hide','Lisp','','hide','Applicaties','','hide','contact','','show','Diverse','','hide')">Contact</a>
| <a href="#" onClick="MM_showHideLayers('Cursus','','hide','block','','hide','Lisp','','hide','Applicaties','','hide','contact','','hide','Diverse','','show')">Diverse</a></div>
<div id="Cursus" style="position:absolute; left:5px; top:50px; width:100px; height:150px; z-index:2; visibility: <? if ($menu=="Cursus") { echo"visible"; } else { echo"hidden"; } ?>">
<p>CURSUS<br>
Tips en trucks<br>
lessen<br>
links</p>
</div>
<div id="block" style="position:absolute; left:5px; top:50px; width:100px; height:150px; z-index:2; visibility: <? if ($menu=="Blocks") { echo"visible"; } else { echo"hidden"; } ?>">
<p>BLOCKS<br>
Wat zijn blocks?<br>
download<br>
links</p>
</div>
<div id="Lisp" style="position:absolute; left:5px; top:50px; width:100px; height:150px; z-index:2; visibility: <? if ($menu=="lisp") { echo"visible"; } else { echo"hidden"; } ?>">
<p>LISP<br>
Wat is lisp<br>
download<br>
links</p>
</div>
<div id="Applicaties" style="position:absolute; left:5px; top:50px; width:100px; height:150px; z-index:2; visibility: <? if ($menu=="Applicatieslisp") { echo"visible"; } else { echo"hidden"; } ?>">
<p>APPLICATIES<br>
Wat zijn dat?<br>
download<br>
links</p>
</div>
<div id="contact" style="position:absolute; left:5px; top:50px; width:100px; height:150px; z-index:2; visibility: <? if ($menu=="Contact") { echo"visible"; } else { echo"hidden"; } ?>">
<p>CONTACT<br>
Hoe contacteren?<br>
Formulier<br>
Adverteer<br>
Breng een tip aan<br>
Gastenboek<br>
<a href="http://forum.cadsite.be">Forum</a><br>
</p>
</div>
<div id="Diverse" style="position:absolute; left:5px; top:50px; width:100px; height:150px; z-index:2; visibility: <? if ($menu=="Diverse") { echo"visible"; } else { echo"hidden"; } ?>">
<p>DIVERSE<br>
<a href="index.php?p=mezelf">linkje 2</a><br>
<a href="index.php?p=test">test</a><br>
Uw link suggestie<br>
Lengte omzetten<br>
Oppervlakte omzetten<br>
Hoe helpen<br>
<a href="index.php?p=biertje">Biertje?</a><br>
<a href="index.php?p=pagina_2">linkje 2</a><br>
</p>
</div>
<div id="Inhoud" style="position:absolute; left:110px; top:50px; width:600px; height:500px; z-index:2; visibility: visible">
<?
include('inhoud/'.$page);
?>

</div>
</body>
</html>[/syntax]
Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Berichtdoor julien » 12 apr 2005 16:03

Embarassed blijkt dat het opeens wel werkte...
Blijkbaar geen goede copy paste gedaan. :fool:
Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Berichtdoor Derk » 12 apr 2005 16:04

hip naja tuurlijk werken mijn scripts :p
dat niuwe had ook gewerkt denk ik alleen zat de kans erin dat hij 'mischien' niet zou werken....
Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Berichtdoor julien » 12 apr 2005 16:07

Ik heb de 2de ook online geplaatst
http://www.cadsite.be/test/index2.php
Het zal deze worden. Hierbij flitst het menu niet even weg, nog veel knapper dus!
BTW, in de nieuwe versie komt zeker een link naar dit forum!
Nu begint het moeilijkste voor mij... design. Rolling Eyes
Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Berichtdoor Derk » 12 apr 2005 17:00

Met scripts kan ik helpen maar voor design moet je bij een ander wezen ^^
Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Berichtdoor julien » 13 apr 2005 10:55

Jij hebt al meer dan genoeg gedaan. :aanbid:
Ik ga eerst trachten alles werkende te krijgen en dan ga ik eens goed nadenken over het uiterlijk.

Dankzij dit systeem zal het uiterlijk toch zeer eenvoudig aan te passen zijn.
Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Berichtdoor Derk » 13 apr 2005 15:32

Zelf gebruik ik dit ook en idd das zeer makkelijk
Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Berichtdoor mats » 14 apr 2005 19:55

sorry dat ik wat laat kom :
global.php
[syntax="php"]
<?PHP

// *** database *** //
$database_url = "localhost"; // de locatie van de database
$gebruiker = "root"; // de username van de database
$wachtwoord = "root"; // het wachtwoord om toegang te krijgen tot de database
$database = "root"; // de naam van de database

// *** einde database *** //

// *** instellingen *** //
$full_url = "http://www.site.nl"; // je voledige url zonder / aan het einde.
$email = "info@site.nl"; // je email.. is meestal wel handig.. voor links..
$titel = "Welkom op mijn homepage"; // de site titel

// kijk naar de vars.. zo kun je zelf meer aan maken

// *** einde instellingen *** //


// *** header van de site *** //

// waar mijn html staat kun je dus vervangen door je eigen html
$header = "
<html>
<head>
<title>".$titel."</title>
</head>

<body>";

// *** einde header van de site *** //


// *** footer van de site *** //

// waar mijn html staat kun je dus vervangen door je eigen html
$footer = "
</body>
</html>";

?>
[/syntax]
index.php
[syntax="php"]
<?

// *** include de global.. anders zal niks werken *** //
include("./global.php");

// nu plaatsen we de header aan de bovenkant
echo $header;

//Hier komt je text
echo "welkom op mijn site.";

// en hier de afsluiting.. de footer
echo $footer;

?>
[/syntax]
Avatar gebruiker
mats
wmpr
 
Berichten: 3748
Geregistreerd: 19 sep 2004 12:00

Berichtdoor Derk » 14 apr 2005 20:07

je connected met de database dan moet er ook iets gedaan worden in het script met Mysql maar dat gebeurd niet.
ik snap de bedoeling er niet van....
Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Vorige

Keer terug naar PHP, ASP, SQL



cron