cancel
Showing results for 
Search instead for 
Did you mean: 

if use full screen mode with js for 3 second cursor restored to default !

Highlighted
New Contributor

if use full screen mode with js for 3 second cursor restored to default !

if use full screen mode with js for 3 second cursor restored to default !

<script type="text/javascript">
  function goFullscreen(id) {
    // Get the element that we want to take into fullscreen mode
    var element = document.getElementById(id);
    
    // These function will not exist in the browsers that don't support fullscreen mode yet, 
    // so we'll have to check to see if they're available before calling them.
    
    if (element.mozRequestFullScreen) {
      // This is how to go into fullscren mode in Firefox
      // Note the "moz" prefix, which is short for Mozilla.
      element.mozRequestFullScreen();
    } else if (element.webkitRequestFullScreen) {
      // This is how to go into fullscreen mode in Chrome and Safari
      // Both of those browsers are based on the Webkit project, hence the same prefix.
      element.webkitRequestFullScreen();
   }
   // Hooray, now we're in fullscreen mode!
  }
</script>

    <input type="button" onClick="goFullscreen('body');" value="FullScreen">
3 REPLIES
New Contributor

Re: if use full screen mode with js for 3 second cursor restored to default !

'*{
 cursor:url('../images/cursor.cur'), url('../images/cursor.png') , auto;
}

a:hover , button:hover , input[type=sumit]:hover , input[type=button]
{
 cursor:url('../images/handcursor.cur'), url('../images/handcursor.png') , auto;
}
Site Moderator

Re: if use full screen mode with js for 3 second cursor restored to default !

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.

New Contributor

Re: if use full screen mode with js for 3 second cursor restored to default !

thanks for reply sry my English not good Smiley Very Happy

i test it with ff18 , it no problem but in ff19 ....