source: trunk/plugins/InsertSmiley/popups/insertsmiley.html @ 987

Last change on this file since 987 was 987, checked in by ray, 11 years ago

#1179 minor html syntax changes

  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 2.0 KB
Line 
1<html>
2<head>
3<title>Insert Smiley</title>
4<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
5<script type="text/javascript" src="../../../popups/popup.js"></script>
6<script type="text/javascript">
7  window.resizeTo(400, 300);
8var InsertSmiley = window.opener.InsertSmiley;
9var editor = null;
10var _editor_url = opener._editor_url;
11var param;
12var smileys = null;
13function Init() {
14  __dlg_translate("InsertSmiley");
15  __dlg_init();
16  param = window.dialogArguments;
17  editor = param['editor'];
18  var smileyList = Xinha._geturlcontent(_editor_url + 'plugins/InsertSmiley/smileys.txt');
19  smileyList = smileyList.match(/^.+$/mg);
20  var smileyURL = editor.config.InsertSmiley.smileyURL;
21  var tbody = document.getElementById("smileytable");
22  var inum;
23  var trow;
24  for(var i = 0; i < smileyList.length; i++) {
25    if((i) % 4 == 0) {
26      trow = tbody.insertRow((i ) / 4);
27    }
28   trow.insertCell((i) % 4).innerHTML = '<a onclick="onOK(\'' + encodeURIComponent( smileyList[i] ) + '\')" href="javascript:void(0);"><img style="border: 0px;" alt="Smiley ' + (i +1) + '" src="'+ smileyURL + encodeURIComponent(smileyList[i]) + '" />';
29  }
30}
31function onCancel() {
32  __dlg_close(null);
33  return false;
34}
35
36function onOK(smileyfile) {
37  var params = {};
38  params.smileyfile = smileyfile;
39  __dlg_close(params);
40  return false;
41}
42
43</script>
44
45<style type="text/css">
46.buttons {border-top: 1px solid #999; padding: 5px; text-align: right; height: 20px; }
47</style>
48</head>
49  <body class="dialog" onload="Init()">
50<form action="" method="get">
51  <div class="title" style="width: 360px;">Insert Smiley</div>
52  <div style="height: 175px; overflow:auto; text-align: center;">
53  <table style="border: 0; width: 370px;" id="smileytable">
54  </table>
55  </div>
56<div class="space"></div>
57<div class="buttons">
58<button type="button" onclick="return onCancel();">Cancel</button>
59</div>
60<div id="showselect" style="position:absolute; left:7px; top:75px; width:150px; z-index:100; visibility: visible; height: 13px; color: red;">
61</div>
62</form>
63</body>
64</html>
Note: See TracBrowser for help on using the repository browser.