[ PHPXref.com ] [ Generated: Sun Jul 20 20:25:38 2008 ] [ SPiD 1.3.1 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> spid.js (source)

   1  <script language="JavaScript" type="text/JavaScript">
   2  <!--
   3  function openWindow(theURL,winName,features) {
   4    window.open(theURL,winName,features);
   5    return false;
   6  }
   7  
   8  function openWindow_NOIE_large(theURL,winName,features,width,height) {
   9    if (((width + 12) > screen.width) || ((height + 30) > screen.height)) {
  10        if ((width + 12) > screen.width) {
  11            height = height + 15;
  12            width = screen.width - 12; }
  13        if ((height + 30) > screen.height) {
  14            width = width + 15;
  15            height = screen.height - 50; }
  16        features = features+"scrollbars=yes,resizable=yes,width="+width+",height="+height;
  17        window.open(theURL,winName,features);
  18        return false; }
  19    else {
  20        features = features+"scrollbars=no,resizable=no,width="+width+",height="+height;
  21        window.open(theURL,winName,features);
  22        return false; }
  23  }
  24  
  25  function openWindow_IE_large(theURL,winName,features,width,height) {
  26    if (((width + 12) > screen.width) || ((height + 30) > screen.height)) {
  27        if ((width + 12) > screen.width) {
  28            height = height + 17;
  29            width = screen.width - 12; }
  30        if ((height + 30) > screen.height) {
  31            width = width + 17;
  32            height = screen.height - 50; }
  33        features = features+"scrollbars=yes,resizable=yes,width="+width+",height="+height;
  34        window.open(theURL,winName,features);
  35        return false; }
  36    else {
  37        features = features+"scrollbars=no,resizable=no,width="+width+",height="+height;
  38        window.open(theURL,winName,features);
  39        return false; }
  40  }
  41  
  42  function JS_jump(my_select){
  43      eval('location='+'\''+my_select.options[my_select.selectedIndex].value+'\'');
  44  }
  45  
  46  function addsmiley(smiley) {
  47      document.add_comment.comment.value += " "+smiley+" ";
  48      document.add_comment.comment.focus();
  49      return;    
  50  }
  51  
  52  function addstyle(style) {
  53      if (style == 'bold') {
  54          var mytext = prompt("Enter the text you wish to display as bold", "");
  55          if ((mytext == "") || (mytext == null)) { return; }
  56          document.add_comment.comment.value += " <strong>"+mytext+"<\/strong> ";
  57          document.add_comment.comment.focus();
  58          return;
  59      }
  60  
  61      if (style == 'italic') {
  62          var mytext = prompt("Enter the text you wish to display as italic", "");
  63          if ((mytext == "") || (mytext == null)) { return; }
  64          document.add_comment.comment.value += " <em>"+mytext+"<\/em> ";
  65          document.add_comment.comment.focus();
  66          return;
  67      }
  68  
  69      if (style == 'underline') {
  70          var mytext = prompt("Enter the text you wish to display as underline", "");
  71          if ((mytext == "") || (mytext == null)) { return; }
  72          document.add_comment.comment.value += " <u>"+mytext+"<\/u> ";
  73          document.add_comment.comment.focus();
  74          return;
  75      }
  76  
  77      if (style == 'break') {
  78          document.add_comment.comment.value += " <br \/>";
  79          document.add_comment.comment.focus();
  80          return;
  81      }
  82  }
  83  -->
  84  </script>


[ Powered by PHPXref - Served by Debian GNU/Linux ]