diff options
author | Jonas Kohl | 2024-07-26 10:15:48 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-07-26 10:15:48 +0200 |
commit | 59d6c150f7b3562b7e8cb1a0504186c5ad097b0a (patch) | |
tree | bdac781ba4a006a31f2854ad97b0e607438ee1d6 /src/pages/guestbook.php | |
parent | 8effbccd6057b2d804ea55b88c5dfe5d5c0945a5 (diff) |
Tweak emoticons data formatting
Diffstat (limited to 'src/pages/guestbook.php')
-rw-r--r-- | src/pages/guestbook.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pages/guestbook.php b/src/pages/guestbook.php index e7c3e28..6a3393d 100644 --- a/src/pages/guestbook.php +++ b/src/pages/guestbook.php @@ -28,7 +28,8 @@ function replace_emoticons(html) { html = html.split(":" + EMOTICONS[0][i][0] + ":") .join( '<img src="/static/emoticons/' + EMOTICONS[0][i][0] + '.gif" ' + - EMOTICONS[0][i][1] + + ' width="' + EMOTICONS[0][i][1] + '"' + + ' height="' + EMOTICONS[0][i][2] + '"' + ' alt="' + EMOTICONS[0][i][0] + '"' + ' title=":' + EMOTICONS[0][i][0] + ':" />' ); @@ -61,8 +62,9 @@ $(function() { idx = EMOTICONS[1][i]; win.document.write( "<tr><td>" + - '<img src="/static/emoticons/' + EMOTICONS[0][idx][0] + '.gif" ' + - EMOTICONS[0][idx][1] + + '<img src="/static/emoticons/' + EMOTICONS[0][idx][0] + '.gif"' + + ' width="' + EMOTICONS[0][idx][1] + '"' + + ' height="' + EMOTICONS[0][idx][2] + '"' + ' alt="' + EMOTICONS[0][idx][0] + '"' + ' title=":' + EMOTICONS[0][idx][0] + ':" />' + "</td><td><font face=Verdana size=2>" + |