chat:cliquer sur 1 smiley pour le mettre dans une conversati
Sur mon t'chat quand vous tapez dans une conversation : ) vous avez le smileys :) qui apparait.
Ce que je voudrais c quand on clique sur l'image d'un smileys il apparaisse de la même façon (comme ici quand on veut mettre un smileys sur le forum en y pensant bien)
Mon problème c'est que je n'arrive pas à les faire apparaître sur la page de mon t'chat et quand j'y arrive, je n'arrive pas à les rendre cliquable.
Donc je demande un petit peu d'aide
il faudrait adapter un truc de ce genre, pour le faire apparaitre sur la page en dessous de l'applet. (Exemple ce ce que je voudrais : http://www.hiaka.com/applet/connexion.php )
Citation:
echo("<img src=\"img/b6.gif\" width=\"8\" height=\"15\" onClick=\"document.applet.setFieldText(document.applet.getFieldText()+':b6');document.applet.requestSourceFocus()\" />\n");
mais pour mon code ci dessous :
:arrow: ceci lance l'applet
Code:
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
| <html>
<head>
<title>IRCApplet</title>
<script language=javascript>
function parseQueryString () {
var str = str ? "" : document.location.search;
var query = str.charAt(0) == '?' ? str.substring(1) : str;
var args = new Object();
if (query) {
var fields = query.split('&');
for (var f = 0; f < fields.length; f++) {
var field = fields[f].split('=');
args[unescape(field[0].replace(/\+/g, ' '))] = unescape(field[1].replace(/\+/g, ' '));
}
}
return args;
}
function startChat() {
var args = parseQueryString ();
nick = args['nick'];
chan = args['chan'];
pass = args['pass'];
age = args['age'];
ville = args['ville']; |
Ceci met en forme, couleurs, configuration etc etc :
Code:
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
| document.write("<title>Hiaka.com Hiaka venir chatter</title>\n");
document.write("<center><a href=\"http://www.hiaka.com/\"><img src=\"http://www.hiaka.com/~hiaka/portail/photo/banniere/hiakaban1.gif\" border=\"0\" /></a></center>");
document.write("<center><applet name='applet' code=IRCApplet.class archive='irc.jar,pixx.jar'width=80% height=80%>\n");
document.write("<param name='CABINETS' value='irc.cab,pixx.cab,securedirc.cab'>\n");
document.write("<param name='pixx:language' value='pixx-french'>\n");
document.write("<param name='pixx:lngextension' value='lng'>\n");
document.write("<param name='nick' value='" + nick + "'>\n");
document.write("<param name='alternatenick' value='" + nick + "??'>\n");
document.write("<param name='quitmessage' value='Hiaka venir chatter sur Hiaka.com'>\n");
document.write("<param name='name' value='" + age + ville +"'>\n");
document.write("<param name='host' value='jenny.hiaka.com'>\n");
document.write("<param name='port' value='6667'>\n");
document.write("<param name='gui' value='pixx'>\n");
document.write("<param name='asl' value='true'>\n");
document.write("<param name='command1' value='/msg nickserv identify " + pass + "'>\n");
document.write("<param name='command2' value='/join " + chan + "'>\n");
document.write("<param name='highlight' value='true'>\n");
document.write("<param name='style:bitmapsmileys' value='true'>\n");
document.write("<param name='style:smiley1' value=':) img/sourire.gif'>\n");
document.write("<param name='style:smiley2' value=':-) img/sourire.gif'>\n");
document.write("<param name='style:smiley3' value=':-D img/content.gif'>\n");
document.write("<param name='style:smiley4' value=':d img/diable.gif'>\n");
document.write("<param name='style:smiley5' value=':-O img/OH-2.gif'>\n");
[b]etc etc....[/b]
document.write("<param name='style:smiley62' value=':rose img/rose.gif'>\n");
document.write("<param name='style:sourcefontrule1' value='none+Channel all DialogInput 12'>\n");
document.write("<param name='style:sourcefontrule2' value='none+ChanList all DialogInput 12'>\n");
document.write("<param name='style:highlight' value='true'>\n");
document.write("<param name='style:backgroundimage' value='true'>\n");
document.write("<param name='style:backgroundimage1' value='all all 0 background.gif'>\n");
document.write("<param name='style:floatingasl' value='true'>\n");
document.write("<param name='pixx:styleselector' value='true'>\n");
document.write("<param name='pixx:setfontonstyle' value='true'>\n");
document.write("<param name='pixx:highlightnick' value='true'>\n");
document.write("<param name='pixx:nickfield' value='true'>\n");
document.write("<param name='pixx:configurepopup' value='true'>\n");
document.write("<param name='pixx:popupmenustring1' value='Qui est ce?'>\n");
[b]etc etc...[/b]
document.write("<param name='pixx:popupmenucommand14_1' value='/CTCP FINGER %1'>\n");
document.write("<param name='pixx:helppage' value='http://www.hiaka.com'>\n");
document.write("<param name='pixx:color0' value='000000'>\n");
document.write("<param name='color1' value='000000'>\n");
document.write("<param name='pixx:color2' value='98AAB1'>\n");
document.write("<param name='pixx:color3' value='EFEFEF'>\n");
document.write("<param name='pixx:color4' value='EFEFEF'>\n");
document.write("<param name='pixx:color5' value='98AAB1'>\n");
document.write("<param name='pixx:color6' value='DEE3E7'>\n");
document.write("<param name='pixx:color7' value='ff0000'>\n");
document.write("<param name='color8' value='ff6600'>\n");
document.write("<param name='pixx:color9' value='98AAB1'>\n");
document.write("<param name='color10' value='33ff99'>\n");
document.write("<param name='pixx:color11' value='ff0000'>\n");
document.write("<param name='color12' value='00ff00'>\n");
document.write("<param name='color13' value='ccffff'>\n");
document.write("<param name='color14' value='ffccff'>\n");
document.write("<param name='color15' value='ffffcc'>\n");
document.write("<param name='style:backgroundimage'>\n");
document.write("<param name='style:backgroundimage1'>\n");
document.write("</applet></center>\n");
} |
ceci ouvre la page je crois :
Code:
1 2 3 4 5
| </script>
</head>
<body onload='startChat();'>
</body>
</html> |
merci d'avance à celui qui voudra bien m'aider