Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- .myButton {
- -moz-box-shadow:inset 0px 1px 0px 0px #f5978e;
- -webkit-box-shadow:inset 0px 1px 0px 0px #f5978e;
- box-shadow:inset 0px 1px 0px 0px #f5978e;
- background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #f24537), color-stop(1, #c62d1f));
- background:-moz-linear-gradient(top, #f24537 5%, #c62d1f 100%);
- background:-webkit-linear-gradient(top, #f24537 5%, #c62d1f 100%);
- background:-o-linear-gradient(top, #f24537 5%, #c62d1f 100%);
- background:-ms-linear-gradient(top, #f24537 5%, #c62d1f 100%);
- background:linear-gradient(to bottom, #f24537 5%, #c62d1f 100%);
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f24537', endColorstr='#c62d1f',GradientType=0);
- background-color:#f24537;
- -moz-border-radius:6px;
- -webkit-border-radius:6px;
- border-radius:6px;
- border:1px solid #d02718;
- display:inline-block;
- cursor:pointer;
- color:#ffffff;
- font-family:Arial;
- font-size:15px;
- font-weight:bold;
- padding:6px 24px;
- text-decoration:none;
- text-shadow:0px 1px 0px #810e05;
- font-color: white;
- }
- .myButton:hover {
- background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #c62d1f), color-stop(1, #f24537));
- background:-moz-linear-gradient(top, #c62d1f 5%, #f24537 100%);
- background:-webkit-linear-gradient(top, #c62d1f 5%, #f24537 100%);
- background:-o-linear-gradient(top, #c62d1f 5%, #f24537 100%);
- background:-ms-linear-gradient(top, #c62d1f 5%, #f24537 100%);
- background:linear-gradient(to bottom, #c62d1f 5%, #f24537 100%);
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#c62d1f', endColorstr='#f24537',GradientType=0);
- background-color:#c62d1f;
- }
- .myButton:active {
- position:relative;
- top:1px;
- font-color: white;
- }
- </style>
- <script>
- function copyToClipboard(element) {
- var $temp = $("<input>");
- $("body").append($temp);
- $temp.val($(element).text()).select();
- document.execCommand("copy");
- $temp.remove();
- }
- </script>
- <center>
- <a href="#copied" class="myButton" onclick="copyToClipboard('#sentence')">Copy Test</a>
- <br></br>
- <p id="sentence">This is a sentence.</p>
- </center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement