Showing posts with label css. Show all posts
Showing posts with label css. Show all posts

Monday, May 8, 2017

sample popup center

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Center</title>

<script>

  function CenterWindow(windowWidth, windowHeight, windowOuterHeight, url, wname, features) {
    var centerLeft = parseInt((window.screen.availWidth - windowWidth) / 2);
    var centerTop = parseInt(((window.screen.availHeight - windowHeight) / 2) - windowOuterHeight);

    var misc_features;
    if (features) {
      misc_features = ', ' + features;
    }
    else {
      misc_features = ', status=no, location=no, scrollbars=yes, resizable=yes';
    }
    var windowFeatures = 'width=' + windowWidth + ',height=' + windowHeight + ',left=' + centerLeft + ',top=' + centerTop + misc_features;
    var win = window.open(url, wname, windowFeatures);
    win.focus();
    return win;
  }
</script>

</head>

<body>
<a href="javascript:void(0)"
   onclick="CenterWindow(1000,800,50,'http://10.1.1.176/live');">Click here</a>
 
 

</body>






</html>

Monday, March 20, 2017

sample allow pdf full screen

saample allow pdf full screen
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <iframe id="viewer" src="http://mzl.la/pdf-js" mozallowfullscreen allowfullscreen></iframe><br>
  <button onclick="fullScreen()">Full Screen</button>
  <script>
    function fullScreen() {
      var viewer = document.getElementById('viewer');
      var rFS = viewer.mozRequestFullScreen || viewer.webkitRequestFullscreen || viewer.requestFullscreen;
      rFS.call(viewer);
    }
  </script>
</body>
</html>

Tuesday, March 14, 2017

css blinkng

   <style type="text/css">

/* Blink for Webkit and others
(Chrome, Safari, Firefox, IE, ...)
*/

@-webkit-keyframes blinker {
  from {opacity: 1.0;}
  to {opacity: 0.0;}
}
.blink{
text-decoration: blink;
-webkit-animation-name: blinker;
-webkit-animation-duration: 0.6s;
-webkit-animation-iteration-count:infinite;
-webkit-animation-timing-function:ease-in-out;
-webkit-animation-direction: alternate;
}
</style>


Sample
<body>
  <span class="blink">in 7 Second will return to Login Page </span>

phprunner view custom filed status

if ($value=="Process") $str.='<img src="1.png">'; if ($value=="Receive") $str.='<i...