Ga Terug   Leerlingen.com Forum > Multi Media > Computers & Internet
FAQ Ledenlijst Kalender Zoeken Berichten van vandaag Markeer forums als gelezen

Computers & Internet Problemen met je computer, of weet je niet welke router nu te moeten installeren voor je breedbandje? Dit, en andere zaken vind je hier!

 
 
Onderwerpopties Waardering: Onderwerp waardering: 2 stemmen, 5,00 gemiddeld. Weergavemodus
Prev Vorige Bericht   Volgende Bericht Next
Oud 18 August 2003, 21:52   #5
Pakspul
Banned
 
Pakspul's Avatar
 
Geregistreerd op: 11 February 2002
Locatie: Hengelo
Berichten: 12.521
Standaard

hele script van die site is gewoon kut, ben maar gewoon helemaal opnieuw begonnen.. dit kwam er uit na een klein uurtje phpen



mooi opgebouwt in tabellen ook, code is beetje heel ranzig maarja, strx maar ff perfect maken,

hier is de code
PHP Code:
<?php 

$str 
"<?php 
function highlight (
$string)
{
    return highlight_string(
$string);
}

echo \"hello world\";

?>"
;


   
$str highlight_string($str,TRUE); 

$count_parts count(explode('<br />',$str)); 


for (
$i 0$i $count_parts$i++)
{
    
$lines .= "$i<br>";
}

$table  "php:<br /><table cellpadding=4 cellspacing=0 class=\"phphighlight\">";
$table .= "<tr><td class=\"phphighlightline\" valign=top align=left>$lines</td>";
$table .= "<td nowrap class=\"phphighlightcode\" valign=top align=left>$str</td></tr>";
$table .= "</table>";

echo 
$table;
exit;
?>
ohja ik heb nog een beetje style aan gegeven anders staat alles niet recht

dat is dit
Code:
<style>

body,td {
	font-family: verdana, arial, avant garde, helvetica;
	font-size: 13px;
	color: #000000;
}


.phphighlight {
     background-color: #FFFFFF;
     border-color: #000000;
     border-style: solid;
     border-left-width: 1px;
     border-right-width: 1px;
     border-top-width: 1px;
     border-bottom-width: 1px;
}
.phphighlightline {
     background-color: #d3d3d3;
     text-align: right;
     border-right-width: 0px;
 }
.phphighlightcode {
     border-left-width: 0px;
}

</style>
Pakspul is offline   Met citaat antwoorden
 

Onderwerpopties
Weergavemodus Stem op dit onderwerp:
Stem op dit onderwerp::

Berichting Regels
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Aan
Smilies zijn Aan
[IMG] code is Aan
HTML code is Uit

Forumnavigatie


Alle tijden zijn GMT +1. De tijd is nu 09:54.


Forum software: vBulletin 3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.