X
Tap here to go to the mobile version of the site.

Support Forum

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

Posted

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">

Modified by cor-el

Post a Reply

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.3 r300
  • Adobe Shockwave for Director Netscape plug-in, version 11.6.3.633
  • Yahoo Application State Plugin version 1.0.0.7
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • 6.0.12.69
  • Adobe PDF Plug-In For Firefox and Netscape
  • np-mswmp

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0

More Information

Posted

Question owner

'*{
 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;
}

Modified by cor-el

Was this helpful to you? 0
Reply
cor-el
  • Top 10 Contributor
  • Moderator
8252 solutions 78136 answers
Posted

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.

Was this helpful to you? 1
Reply
Posted

Question owner

thanks for reply sry my English not good :D

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

Was this helpful to you? 0
Reply

Post a Reply

You must log in to your account to reply to posts.

Don't have an account? You can create a free account now.