切换风格

默认 晚霞 雪山 粉色心情 伦敦 花卉 绿野仙踪 加州 白云 星空 薰衣草 城市 简约黑色 简约米色 龙珠
syntaxhighlighter高亮代码插件测试
 5432     5
发表于 2017-6-27 |
#include "stdafx.h"
#include <Windows.h>
int _tmain(int argc, _TCHAR* argv[])
{
	if (RegisterHotKey(
        NULL,
        1,
        MOD_ALT | MOD_NOREPEAT,
        0x42))  //0x42 is 'b'
    {
        _tprintf(_T("Hotkey 'ALT+b' registered, using MOD_NOREPEAT flag\n"));
    }
 
    MSG msg = {0};
    while (GetMessage(&msg, NULL, 0, 0) != 0)
    {
        if (msg.message == WM_HOTKEY)
        {
            _tprintf(_T("WM_HOTKEY received\n"));            
        }
    } 
 
    return 0;
}

JS

$('textarea').keyup(function(e) {
	if((e.ctrlKey && (e.which == 13 || e.which == 10)) || (e.altKey && e.which == 83)) {
		//Ctrl+Enter执行
		return false;
	}
    if(e.which == 13){ //输入回车键
		var h = $(this)[0].scrollHeight;
		if(h <= 100) {
			return true;
		} else {
			$(this).height($(this)[0].scrollHeight);
			return true;
		}
	}



发表于 2017-6-28 |

支持!

发表于 2018-7-5 |
<?php
if(strstr($public_r['usetags'],','.$modid.','))
{
  $infotag_readonly='';
$infotag_copykeyboard='  <input type="button" name="Submit3" value="复制关键字" onclick="document.add.infotags.value=document.add.keyboard.value;">';
  if(strstr($public_r['chtags'],','.$modid.','))
{
    $infotag_readonly=' readonly';
    $infotag_copykeyboard='';
}
?>
<tr>
<td height="25" bgcolor="#FFFFFF">TAGS    :
  <input name="infotags" type="text" id="infotags" value="<?=$r[infotags]?>" size="32"<?=$infotag_readonly?>>
  <input type="button" name="Submit" value="选择" onclick="window.open('tags/ChangeTags.php?form=add&field=infotags<?=$ecms_hashur['ehref']?>','','width=700,height=550,scrollbars=yes');">
  <?=$infotag_copykeyboard?>
  <input name="oldinfotags" type="hidden" id="oldinfotags" value="<?=$r[infotags]?>">
  <font color="#333333">(多个用","逗号格开)</font></td>
</tr>
<?php
}
?>


发表于 2018-7-6 |
<?php
if(strstr($public_r['usetags'],','.$modid.','))
{
  $infotag_readonly='';
$infotag_copykeyboard='  <input type="button" name="Submit3" value="复制关键字" onclick="document.add.infotags.value=document.add.keyboard.value;">';
  if(strstr($public_r['chtags'],','.$modid.','))
{
    $infotag_readonly=' readonly';
    $infotag_copykeyboard='';
}
?>
<tr>
<td height="25" bgcolor="#FFFFFF">TAGS    :
  <input name="infotags" type="text" id="infotags" value="<?=$r[infotags]?>" size="32"<?=$infotag_readonly?>>
  <input type="button" name="Submit" value="选择" onclick="window.open('tags/ChangeTags.php?form=add&field=infotags<?=$ecms_hashur['ehref']?>','','width=700,height=550,scrollbars=yes');">
  <?=$infotag_copykeyboard?>
  <input name="oldinfotags" type="hidden" id="oldinfotags" value="<?=$r[infotags]?>">
  <font color="#333333">(多个用","逗号格开)</font></td>
</tr>
<?php
}
?>


发表于 2023-1-25 |

<pre class="brush: xml"></pre>

发表于 2023-1-25 |


高亮怎么没用

GMT+8, 2024-05-04 06:21:59 运行耗时 0.0110 秒.

Powered by HYBBS 2.3.4

© 2016-2019 HYBBS

返回顶部