Ik wil hier ff iets posten, voor de fun, als jullie er wat aan hebben, asjeblieft !
Wat hieronder tussen de ## staat, moet je je variable invullen, daarna gaat hij de tekens tellen en bij elke punt in de tekst plaatst hij de waarde.
(kheb het ff tussen php quotes gezet voor kleurtjes)
Resultaat :
Lorem ipsum dolor JOTI sit amet, consectetuer adipiscing elit, sed diam nonummy nibh
euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.[155] Ut wisi en JOTI JOTIim
ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis n JOTIvisl
ut aliquip ex ea commodo consequat. [ 311]
Wat hieronder tussen de ## staat, moet je je variable invullen, daarna gaat hij de tekens tellen en bij elke punt in de tekst plaatst hij de waarde.
(kheb het ff tussen php quotes gezet voor kleurtjes)
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| <? <% Content_Var = ##Rs_counting.Fields.Item("Content").Value## %> <% Content_Var_aantal = Len(Content_Var)%> <font face="Verdana, Arial" size="2"> <b>Aantal tekens in tekst : <%= Content_Var_aantal%> <br> </b> <br> <br> <%= Left(Content_Var, Instr(Content_Var,"."))%><font size="-2" color="#FF0000">[<%= Instr(Content_Var,".")%>]</font></font> <font face="Verdana, Arial" size="2"> <% start_Search_Count = Instr(Content_Var,".") %> <% Berekening_tekens = Content_Var_aantal - start_Search_Count %> <% Content_var = Right(Content_var,Berekening_tekens) %> <% for r = 1 to 999 step 1 %> <% if Berekening_tekens <= "0" then exit for %> <%= Left(Content_Var, Instr(Content_Var,"."))%> <% if Eindetekst_value = Instr(Content_Var,".") + start_Search_Count then exit for else %> <font size="-2" color="#FF0000">[ <% Response.Write(Instr(Content_Var,".") + start_Search_Count) Eindetekst_value = Instr(Content_Var,".") + start_Search_Count %>]</font></font> <font face="Verdana, Arial" size="2"> <% start_Search_Count = Instr(Content_Var,".") + start_Search_Count %> <% Berekening_tekens = Content_Var_aantal - start_Search_Count %> <% Content_var = Right(Content_var,Berekening_tekens) %> <% next %> <br> <br> ?> |
Resultaat :
Lorem ipsum dolor JOTI sit amet, consectetuer adipiscing elit, sed diam nonummy nibh
euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.[155] Ut wisi en JOTI JOTIim
ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis n JOTIvisl
ut aliquip ex ea commodo consequat. [ 311]