Tekst veranderding script.

Gestart doorSimmers3 reacties30 weergaven

4 berichten · pagina 1 van 1

Simmers

Lid · Topicstarter

Berichten
111
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb hier een script waarmee je als je bv de pagina refresht een andere tekst krijgt te zien,
Dus eerst zie je:

Wist je dat,
dit automatisch veranderd

Ga je opnieuw naar de pagina zie je bv dit:

Wist je dat,
dit script cool is

en zo kan je er 100000 toevoegen.
Hier een voorbeeld
Eerst zie je dit:
Afbeelding
En daarna als je opnieuw naar die pagina gaat:
Afbeelding
0
Berichten
620
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php

$urls[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]"tekst"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$urls[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]"tekst"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$urls[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]2[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]"tekst"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$urls[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]3[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]"tekst"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$urls[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]4[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]"tekst"[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/srand"]srand[/URL] [COLOR= #007700]((double)[/COLOR][URL="http://www.php.net/microtime"]microtime[/URL][COLOR= #007700]()*[/COLOR][COLOR= #0000BB]1000000[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/shuffle"]shuffle[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$urls[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/list"]list[/URL][COLOR= #007700](,[/COLOR] [COLOR= #0000BB]$urlche[/COLOR][COLOR= #007700]) =[/COLOR] [URL="http://www.php.net/each"]each[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$urls[/COLOR][COLOR= #007700])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"$urlche<br>n"[/COLOR][COLOR= #007700];}[/COLOR]
?>


Is toch simpel wink
0
Tom

Lid

Berichten
3.868
Reputatie
0
Punten
0,02
Lid sinds
Laatst gezien
@Simmers
Heb je een online demo?

@Habla
Je doet veel te moeilijk en je hebt het script volgens mij van anouksweb gejat.

Mijn manier is het beste en laad het snelste volgens mij:

[COLOR= #0000BB]<?php
$tekst[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]lol[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]2[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]whaha[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700][[/COLOR][URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]2[/COLOR][COLOR= #007700])];[/COLOR]
?>
0
Simmers

Lid · Topicstarter

Berichten
111
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Tom schreef:
Heb je een online demo?

@Habla
Je doet veel te moeilijk en je hebt het script volgens mij van anouksweb gejat.

Mijn manier is het beste en laad het snelste volgens mij:

[COLOR= #0000BB]<?php
$tekst[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]lol[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]2[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]whaha[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700][[/COLOR][URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]2[/COLOR][COLOR= #007700])];[/COLOR]
?>


Nee, dan heb je meteen de code confused maar ik sluit het topic. Aangezien de script er al is.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren