网页鼠标特效代码学习

介绍一些炫酷的网站特效代码,网站弹出窗口代码,页面禁止用户鼠标操作某些动作代码,加到自己网站里面,心理会安全多了,快来学习吧。

先来个常见的代码,超级链接的写法:<a href=”URL” target=”_blank”>文字或者图片</a>

省略 target=”_blank” 则是本窗口打开链接,这个大家都知道。
JS:java脚本 javascript
1、禁止复制,禁止鼠标右键等特效

禁止鼠标右键:oncontextmenu=”return false”;
禁止选择:onselectstart=”return false”;
禁止拖放:ondragstart=”return false”;
禁止拷贝:oncopy=document.selection.empty() ;
禁止保存:<noscript><iframe src=”*.htm”></iframe></noscript> 放在head里面。
禁止粘贴:<input type=text onpaste=”return false”>
关闭输入法:<input style=”ime-mode:disabled”>

常用网页鼠标特效代码

常用网页鼠标特效代码

2、弹出窗口:
<script>
alert(“XXXYYY”);
</script>
3、让标题动起来

<embed src=”http://player.youku.com/player.php/Type/Folder/Fid/22720170/Ob/1/sid/XNzU5Mjg2MDgw/v.swf” allowfullscreen=”true” quality=”high” width=”540″ height=”400″ align=”middle” allowscriptaccess=”always” type=”application/x-shockwave-flash”>

常用模板名
catalog.html :分类页模板
default.html 首页模板
single.html 文章页模板

想学习更多关于页面特效代码,鼠标特效代码等,可去这个网站,http://www.w3school.com.cn/ HTML教程



未经允许不得转载:杨永博客 » 网页鼠标特效代码学习

赞 (1)

评论 12

  • 昵称 (必填)
  • 邮箱(必填)
  • 网址(选填)
  1. minecraftPretty! This has been a really wonderful article. Many thanks for providing these details.回复
  2. minecraftThank you for any other great article. Where else may anyone get that type of information in such a perfect manner of writing? I have a presentation next week, and I'm on the look for such info.回复
  3. minecraft free download 2018Excellent way of telling, and pleasant post to obtain data concerning my presentation focus, which i am going to convey in institution of higher education.回复
  4. minecraft free download 2018You're so cool! I don't believe I've truly read through something like this before. So wonderful to find someone with some unique thoughts on this topic. Seriously.. many thanks for starting this up. This web site is one thing that's needed on the internet, someone with some originality!回复
  5. tinder dating siteHi there all, here every one is sharing these kinds of familiarity, thus it's good to read this website, and I used to go to see this blog all the time.回复
  6. tinder dating siteI'm curious to find out what blog platform you happen to be working with? I'm having some minor security problems with my latest site and I'd like to find something more safeguarded. Do you have any recommendations?回复
  7. minecraft secret free downloadI've read several good stuff here. Definitely worth bookmarking for revisiting. I wonder how much attempt you place to make any such wonderful informative website.回复
  8. Benefits of Coconut OilIt's an amazing article for all the online viewers; they will get advantage from it I am sure.回复
  9. Health Benefits of Coconut OilHello just wanted to give you a quick heads up. The text in your post seem to be running off the screen in Firefox. I'm not sure if this is a formatting issue or something to do with web browser compatibility but I thought I'd post to let you know. The design and style look great though! Hope you get the issue resolved soon. Many thanks回复
  10. Coconut OilI loved as much as you will receive carried out right here. The sketch is attractive, your authored material stylish. nonetheless, you command get bought an edginess over that you wish be delivering the following. unwell unquestionably come further formerly again since exactly the same nearly a lot often inside case you shield this increase.回复
  11. Health Benefits of Coconut OilWe're a group of volunteers and opening a new scheme in our community. Your site offered us with valuable information to work on. You have done a formidable job and our entire community will be grateful to you.回复
  12. Quest Protein BarsI have read a few excellent stuff here. Certainly price bookmarking for revisiting. I wonder how much effort you place to make the sort of magnificent informative site.回复