Browse code

totoz in popup

devnewton authored on 23/07/2012 at 17:28:35
Showing 2 changed files
... ...
@@ -242,4 +242,16 @@ td.spaced {
242 242
     background-color: #FFCC66;
243 243
 }
244 244
 
245
+.totoz {
246
+	position: relative;
247
+}
248
+
249
+.totoz img {
250
+	display: none;
251
+}
252
+.totoz:hover img {
253
+	display: inline;
254
+	position: absolute;
255
+	bottom: 100%;
256
+}
245 257
 
... ...
@@ -128,7 +128,7 @@ function msgFormat(msg, norlogeToMtime) { // replaces emoticons and urls in a me
128 128
   });
129 129
   
130 130
   //replace totoz
131
-  msg = msg.replace(/(\s|^)\[\:([a-zA-Z0-9-_ ]*)\]/g, '$1<img src="http://sfw.totoz.eu/gif/$2.gif"/>');
131
+  msg = msg.replace(/(\s|^)\[\:([a-zA-Z0-9-_ ]*)\]/g, '$1<a class="totoz">[:$2]<img src="http://sfw.totoz.eu/gif/$2.gif"/></a>');
132 132
   
133 133
   msg = msg.replace(/\n/g,"<br>");
134 134