NIELSJUHH vraaggjuhh

Gestart doorOne2xs10 reacties39 weergaven

11 berichten · pagina 1 van 1

One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
ik heb nu deze code:

echo <a href=".htmlentities($row[link], ENT_QUOTES).">.htmlentities($row[naam], ENT_QUOTES).</a> info: .htmlentities($row[info], ENT_QUOTES). <br />;


maar bij sommige is de info te lang
hoe maak ik net zoals bij one2xs dat als je met je muis over de link gaat er zon zwart wolkje komt
waar de info dan in kan?
0
Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
met
title="ga hier verder"
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
ik heb efe in bron van one2xs gekeken:
JS:

/* Tooltip */
var tooltip=function(){
 var id = tt;
 var top = 3;
 var left = 3;
 var maxw = 300;
 var speed = 10;
 var timer = 20;
 var endalpha = 95;
 var alpha = 0;
 var tt,t,c,b,h;
 var ie = document.all ? true : false;
 return{
  show:function(v,w){
   if(tt == null){
    tt = document.createElement(div);
    tt.setAttribute(id,id);
    t = document.createElement(div);
    t.setAttribute(id,id + top);
    c = document.createElement(div);
    c.setAttribute(id,id + cont);
    b = document.createElement(div);
    b.setAttribute(id,id + bot);
    tt.appendChild(t);
    tt.appendChild(c);
    tt.appendChild(b);
    document.body.appendChild(tt);
    tt.style.opacity = 0;
    tt.style.filter = alpha(opacity=0);
    document.onmousemove = this.pos;
   }
   tt.style.display = block;
   c.innerHTML = v;
   tt.style.width = w ? w + px : auto;
   if(!w && ie){
    t.style.display = none;
    b.style.display = none;
    tt.style.width = tt.offsetWidth;
    t.style.display = block;
    b.style.display = block;
   }
  if(tt.offsetWidth > maxw){tt.style.width = maxw + px}
  h = parseInt(tt.offsetHeight) + top;
  clearInterval(tt.timer);
  tt.timer = setInterval(function(){tooltip.fade(1)},timer);
  },
  pos:function(e){
   var u = ie ? event.clientY + document.documentElement.scrollTop : e.pageY;
   var l = ie ? event.clientX + document.documentElement.scrollLeft : e.pageX;
   tt.style.top = (u - h) + px;
   tt.style.left = (l + left) + px;
  },
  fade:function(d){
   var a = alpha;
   if((a != endalpha && d == 1) || (a != 0 && d == -1)){
    var i = speed;
   if(endalpha - a < speed && d == 1){
    i = endalpha - a;
   }else if(alpha < speed && d == -1){
     i = a;
   }
   alpha = a + (i * d);
   tt.style.opacity = alpha * .01;
   tt.style.filter = alpha(opacity= + alpha + );
  }else{
    clearInterval(tt.timer);
     if(d == -1){tt.style.display = none}
  }
 },
 hide:function(){
  clearInterval(tt.timer);
   tt.timer = setInterval(function(){tooltip.fade(-1)},timer);
  }
 };
}();
/* /tooltip */


SCRIPT:

<script type="text/javascript" src="JS.js"></script> 
<a style="cursor: help;" onmouseover="tooltip.show(TEKST);" onmouseout="tooltip.hide();">MOUSEOVER</a>
0
Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Oh zo, die had ik je ook wel kunnen geven zonder bron hoor yummie
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
probleem opgelost
domme erik had een in de info gezet waardoor alles in soep raakte xd
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
ik heb nu dit script (voor me gastenboek)

[COLOR= #0000BB]<?php[/COLOR] 

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]door[/COLOR][COLOR= #007700]])[/COLOR] and [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]])[/COLOR] and [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]door[/COLOR][COLOR= #007700]]!=[/COLOR][COLOR= #DD0000]Typ hier uw naam[/COLOR] and [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]!=[/COLOR][COLOR= #DD0000]Typ hier uw bericht![/COLOR] [COLOR= #007700]) {[/COLOR]
    [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]];[/COLOR]
    [COLOR= #0000BB]$door[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]door[/COLOR][COLOR= #007700]];[/COLOR]
    [COLOR= #0000BB]$datum[/COLOR] [COLOR= #007700]=[/COLOR]  [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"d-m-Y H:i:s"[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]());[/COLOR]
    
    [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"n"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<br>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700]);[/COLOR]
    
    [COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"INSERT INTO gastenboek(bericht, door , datum) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$door[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$datum[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700];[/COLOR] 
      [COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
}[/COLOR]
?>


maar hoe zet ik neer dat als je niks verandert hebt er komt te staan Vul wat in
en als je bericht gepost is er komt te staan bericht gepost en je dan naar ?bekijk gaat
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nielsie:
probleem opgelost
domme erik had een in de info gezet waardoor alles in soep raakte xd
Ja hé , Echt erik xd
(Hopen dat hij dit niet leest)emo
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
erik is altijd zo dom xd maare
Afbeelding
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
en weet iemand ook hoe ik deze oplos:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"header.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bekijk[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"gasten/kijk.php"[/COLOR][COLOR= #007700]);
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nieuw[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"gasten/plaats.php"[/COLOR][COLOR= #007700]);
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000][/COLOR][COLOR= #007700]]))
{[/COLOR]
    [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"gasten/anders.php"[/COLOR][COLOR= #007700]);
}[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"footer.php"[/COLOR][COLOR= #007700]);[/COLOR]
?>


als je niet op ?nieuw of ?bekijk bent moet anders worden geincluded

EDIT: sorry dubbele post
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
include("header.php");
if(isset($_GET[bekijk]))
{
include ("gasten/kijk.php");
}
elseif(isset($_GET[nieuw]))
{
include ("gasten/plaats.php");
}
else
{
include ("gasten/anders.php");
}
include("footer.php");
?>
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
@milan probeer maar uit werkt niet
als je nar ?bekijk gaat word anders erbij geincluded omdat ?nieuw er niet 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