转载:http://blog.csdn.net/cometnet/article/details/51082091

 

 1 #include <urlmon.h>
 2 #ifndef FEATURE_DISABLE_NAVIGATION_SOUNDS
 3 #define FEATURE_DISABLE_NAVIGATION_SOUNDS 21
 4 #endif
 5 #ifndef SET_FEATURE_ON_PROCESS
 6 #define SET_FEATURE_ON_PROCESS 0x00000002
 7 #endif
 8 
 9 void DisableClickSounds()  
10 {  
11     CoInternetSetFeatureEnabled((INTERNETFEATURELIST)FEATURE_DISABLE_NAVIGATION_SOUNDS,SET_FEATURE_ON_PROCESS,true);  
12 } 

 2.禁止网页上的文字被选择

转载:http://www.cnblogs.com/tingchen/archive/2013/10/08/web%E6%8B%BE%E9%81%97%E5%BD%95.html

 1 <html>
 2     <head>
 3         <style type="text/css">
 4             body{-moz-user-select:none}
 5         </style>
 6     </head>
 7 
 8 <body onselectstart="return false;">
 9     this is a test!
10 </body>
11 </html>

 

相关文章:

  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2021-06-23
  • 2021-12-25
  • 2021-04-20
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2021-11-12
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案