Jump to content
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Resolu]Smileys d'une pop up

Featured Replies

Bonjour, suite au post de Bryce_30, j'ai fais ma propre interprétation du script.

Mais un problème persiste, le texte ne s'affiche pas dans le textarea alors que tous les codes m'ont l'air bon!

Je vous les partages:

Code de la mini pas de smuileys:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title>Smileys</title>
	<style type="text/css">
		a img
		{
			border:none;
		}
	</style>
	<script ='javascript'>
		function add_smilies(smiley, textarea)
		{
			opener.document.getElementById(textarea).value += ' ' + smiley + ' ';
		}
	</script>
</head>

<body>
	<?php
	$liste_emote = array( [tous les smileys recencés]);

		$dossier = '../images/emotes/';
		$dir = opendir($dossier);

		while ($file = readdir($dir))
		{
			if ($file != '.' && $file != '..')
			{
				$file_name = preg_replace('!([a-zA-Z0-9_-]+).[a-zA-Z]{3}!', '$1', $file);
				if (array_key_exists($file_name, $liste_emote))
				{
					echo '<a href="java script:void(0);" onClick="add_smilies(\'' . $liste_emote[$file_name] . '\', \'contenu\');"><img src="' . $dossier . $file . '" alt="' . $file . '" /></a>';
				}
			}
		}

		closedir($dir);
	?>
</body>
</html>

La page de smileys s'affiche parfaitement, mais ne m'envoie pas le texte des émotes dans le textarea nommé "contenu"!

Pourriez vous m'aider?

Edited by rhadamanth30

Archived

This topic is now archived and is closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.