te')); return $arr; } /* 遍历用户所有主题 * @param $uid 用户ID * @param int $page 页数 * @param int $pagesize 每页记录条数 * @param bool $desc 排序方式 TRUE降序 FALSE升序 * @param string $key 返回的数组用那一列的值作为 key * @param array $col 查询哪些列 */ function thread_tid_find_by_uid($uid, $page = 1, $pagesize = 1000, $desc = TRUE, $key = 'tid', $col = array()) { if (empty($uid)) return array(); $orderby = TRUE == $desc ? -1 : 1; $arr = thread_tid__find($cond = array('uid' => $uid), array('tid' => $orderby), $page, $pagesize, $key, $col); return $arr; } // 遍历栏目下tid 支持数组 $fid = array(1,2,3) function thread_tid_find_by_fid($fid, $page = 1, $pagesize = 1000, $desc = TRUE) { if (empty($fid)) return array(); $orderby = TRUE == $desc ? -1 : 1; $arr = thread_tid__find($cond = array('fid' => $fid), array('tid' => $orderby), $page, $pagesize, 'tid', array('tid', 'verify_date')); return $arr; } function thread_tid_delete($tid) { if (empty($tid)) return FALSE; $r = thread_tid__delete(array('tid' => $tid)); return $r; } function thread_tid_count() { $n = thread_tid__count(); return $n; } // 统计用户主题数 大数量下严谨使用非主键统计 function thread_uid_count($uid) { $n = thread_tid__count(array('uid' => $uid)); return $n; } // 统计栏目主题数 大数量下严谨使用非主键统计 function thread_fid_count($fid) { $n = thread_tid__count(array('fid' => $fid)); return $n; } ?>javascript - Force ChromeFirefox into Full Screen? - Stack Overflow
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Force ChromeFirefox into Full Screen? - Stack Overflow

programmeradmin3浏览0评论

I want to use chrome to display a full-screen html page for a presentation. You can set chrome to fullscreen mode, but it seems the only way to exit is moving the mouse to the top of the screen and clicking:

I don't want to disable the ability to exit full-screen, I just want to make it so the only way to exit is via pressing the ESC key, not the mouse position. That way basically browser "admin" are the only ones who can get out of the presentation. Is that possible in Firefox or Chrome? Could I write an extension for this if it's not possible?

I want to use chrome to display a full-screen html page for a presentation. You can set chrome to fullscreen mode, but it seems the only way to exit is moving the mouse to the top of the screen and clicking:

I don't want to disable the ability to exit full-screen, I just want to make it so the only way to exit is via pressing the ESC key, not the mouse position. That way basically browser "admin" are the only ones who can get out of the presentation. Is that possible in Firefox or Chrome? Could I write an extension for this if it's not possible?

Share Improve this question edited Feb 22, 2011 at 23:25 Lance Pollard asked Feb 22, 2011 at 23:12 Lance PollardLance Pollard 79.4k98 gold badges330 silver badges606 bronze badges 8
  • 12 I do hope it's not possible. I don't want web-sites to be able to emulate, or prevent my access to, my desktop by preventing me from reducing the screen-size of my browser. – David Thomas Commented Feb 22, 2011 at 23:14
  • i agree, i just need it to work like flash, where escape is what gets you out, not the mouse position. can firefox do this? – Lance Pollard Commented Feb 22, 2011 at 23:20
  • I don't think this is possible from within the web site, but it should/might be possible to write an extension. – Pekka Commented Feb 22, 2011 at 23:20
  • 2 what about: chrome.exe -kiosk file:///your/presentation.html ? – jrn.ak Commented Feb 22, 2011 at 23:23
  • jnpcl, how would you run chrome.exe --kiosk from (in-browser) JS?? – DrStrangeLove Commented Feb 22, 2011 at 23:27
 |  Show 3 more ments

2 Answers 2

Reset to default 10

Using my ment for an Answer:

Chrome implemented 'Kiosk Mode' in version 4.0.245.0. This is, essentially, a way to launch the browser in fullscreen mode with the Address Bar and Status Bar disabled. Some keyboard shortcuts (Fullscreen, for example) are also disabled.

On Windows: chrome.exe -kiosk http://yoursite./file.html

On everything else: chromium-browser --kiosk http://yoursite./file.html

Note: Use your 'exit program' keyboard bo to kill it.

For firefox, the add-on R-kiosk doea a similar job: https://addons.mozilla/en-US/firefox/addon/r-kiosk/

I have used it before and it used to be pretty good for kiosk type applications. Haven't needed it in a while though.

To exit, you need to start firefox in safe mode and disable the add-on, which works very well for kiosk purposes.

发布评论

评论列表(0)

  1. 暂无评论