Home >Web Front-end >JS Tutorial >jquery+css3 realizes mouse and form interaction

jquery+css3 realizes mouse and form interaction

php中世界最好的语言
php中世界最好的语言Original
2018-04-25 10:37:471788browse

This time I will bring you jquery css3 to realize mouse and form interaction, jquery css3 to realize mouse and form interaction What are the precautions , the following is a practical case, let’s take a look one time.

The renderings are shown below:

Online preview Source code download

html code:

<p class="buttonCollection">
 <p class="qutton" id="qutton_upload">
  <p class="qutton_dialog" id="uploadDialog">
  <h2>上传</h2>
  <p class="urlField">
   <input type="text" id="fileUrl" placeholder="文件地址" />
  </p>
  <p id="button_basic_upload">选择文件</p>
  </p>
 </p>
 <p class="qutton" id="qutton_delete">
  <p class="qutton_dialog" id="deleteDialog">
  <h2>确定?</h2>
  <p id="button_basic_confirm_delete">确定删除</p>
  </p>
 </p>
 <p class="qutton" id="qutton_comment">
  <p class="qutton_dialog" id="commentDialog">
  <textarea name="comment" id="commentInput" placeholder="你的评论..."></textarea>
  <p id="button_basic_submit_comment">发送</p>
  </p>
 </p>
 </p>

js code:

$(function () {
  var quttonUpload = Qutton.getInstance($('#qutton_upload'));
  quttonUpload.init({
  icon: 'images/icon_upload.png',
  backgroundColor: '#917466'
  });
  var quttonDelete = Qutton.getInstance($('#qutton_delete'));
  quttonDelete.init({
  icon: 'images/icon_delete.png',
  backgroundColor: "#eb1220"
  });
  var quttonComment = Qutton.getInstance($('#qutton_comment'));
  quttonComment.init({
  icon: 'images/icon_comment.png',
  backgroundColor: "#41aaf1"
  });
 });

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the PHP Chinese website!

Recommended reading:

jQuery creates a responsive image carousel effect

jQuery implements a collection of special effects for text buttons in forms

The above is the detailed content of jquery+css3 realizes mouse and form interaction. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn