jojopareto

Inscris le 02/06/2009 à 06:23
  • Signature
    Jojopareto
  • Nombre de sujets
    2
  • Nombre de messages
    7
  • Nombre de commentaires
    Aucun
  • Nombre de news
    Aucune
  • Niveau en PHP
    Débutant

Ses derniers sujets sur les forums

jojopareto
le 06/10/2009 à 22:37
exeption compteur
bonjour, je viens d'installer un compteur PHP sur mon site et j'aimerais savoir si il est possible que quand je le visite de mon PC il ne me compte pas.
Merci
Jojopareto
jojopareto
le 02/06/2009 à 06:37
pb affichage smiley
Bonjour, j'essaye de mettre un forum sur mon site et j'ai un problème avec les smileys.
J'ai télécharger csforum car je peux lui donner la même apparence que mon site, par contre quand je fais glisser un smiley dans la zone de texte il m'écrit javascript:actions(":-Q"). Quand je le publie il m'écrit juste javascript:action et me fait apparaitre le smiley entre parenthèses. Pouvez vous m'aider! Attention je suis novice en PHP/Mysql/Java. Voici mon code
<script language="JavaScript" type="text/javascript">
<!--

function actions(text) {
text = ' ' + text + '';
if (document.post.message.createTextRange && document.post.message.caretPos) {
var caretPos = document.post.message.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + '' : text;
document.post.message.focus();
} else {
document.post.message.value += text;
document.post.message.focus();
}
}
function url(text) {
var autre = prompt("<?=LG_URL_A_METTRE?> :","http://");
text = ' ' + text + autre + '[/url]';
if (document.post.message.createTextRange && document.post.message.caretPos) {
var caretPos = document.post.message.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + '' : text;
document.post.message.focus();
} else {
document.post.message.value += text;
document.post.message.focus();
}
}
function email(text) {
var autre = prompt("<?=LG_EMAIL_A_METTRE?>:","");
text = ' ' + text + autre + '[/email]';
if (document.post.message.createTextRange && document.post.message.caretPos) {
var caretPos = document.post.message.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + '' : text;
document.post.message.focus();
} else {
document.post.message.value += text;
document.post.message.focus();
}
}
function gras(text) {
var autre = prompt("<?=LG_TEXTE_GRAS?>:","");
text = ' ' + text + autre + '[/b]';
if (document.post.message.createTextRange && document.post.message.caretPos) {
var caretPos = document.post.message.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + '' : text;
document.post.message.focus();
} else {
document.post.message.value += text;
document.post.message.focus();
}
}
function souligne(text) {
var autre = prompt("<?=LG_TEXTE_SOULIGNER?>:","");
text = ' ' + text + autre + '[/u]';
if (document.post.message.createTextRange && document.post.message.caretPos) {
var caretPos = document.post.message.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + '' : text;
document.post.message.focus();
} else {
document.post.message.value += text;
document.post.message.focus();
}
}
function italique(text) {
var autre = prompt("<?=LG_TEXTE_ITALIQUE?>:","");
text = ' ' + text + autre + '[/i]';
if (document.post.message.createTextRange && document.post.message.caretPos) {
var caretPos = document.post.message.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + '' : text;
document.post.message.focus();
} else {
document.post.message.value += text;
document.post.message.focus();
}
}

//-->
</script>


<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<?
for ($i = 0; $i < count($souriez); $i++) {
$sizeImg = GetImageSize("images/smileys/".$souriez[$i][1]);
echo "<a href='javascript:actions(\"".$souriez[$i][0]."\")'>";
echo "<img src=\"images/smileys/".$souriez[$i][1]."\" ".$sizeImg[3]." border=\"0\" alt=\"".$souriez[$i][2]."\">";
}
?>
</td>
</tr>
</table>
<br>
<b> |
<a class="minilien" href="javascript:url('[url]')"><?=LG_URL?></a> |
<a class="minilien" href="javascript:email('[email]')"><?=LG_MAIL?></a> |
<a class="minilien" href="javascript:gras('[b]')"><?=LG_GRAS?></a> |
<a class="minilien" href="javascript:italique('[i]')"><?=LG_ITALIQUE?></a> |
<a class="minilien" href="javascript:souligne('[u]')"><?=LG_SOULIGNE?></a> |
</b>


Merci d'avance
Jojopareto
LoadingChargement en cours