Advertisement
kyleAI_13

Untitled

Jul 11th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //include jquery
  2.   <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
  3.   <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
  4.   <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
  5.  
  6. //javascript
  7. <script>
  8.  $(function() {
  9.     $( "#dialog" ).dialog({
  10.       autoOpen: false,
  11.       show: {
  12.         effect: "blind",
  13.         duration: 1000
  14.       },
  15.       hide: {
  16.         effect: "explode",
  17.         duration: 1000
  18.       }
  19.     });
  20.  
  21.     $( "#dialog_link" ).click(function() {
  22.       $( "#dialog" ).dialog( "open" );
  23.     });
  24.   });
  25. </script>
  26.  
  27. //echoed php
  28. <div id='dialog' title='Message from ".$from_user." on ".dateConvert2($notify['date'])."'>
  29.     <p>".bb_parse($notify['comment'])."</p>
  30. </div>
  31. <a id='dialog_link' href='notifications.php?id=".$notify['id']."'>CLICK TO SEE MESSAGE</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement