Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function transform1(){
- var DOMHead = document.getElementsByTagName("head")[0];
- var DOMScript = document.createElement("script");
- DOMScript.type = "text/javascript";
- DOMScript.src = "http://code.jquery.com/jquery-latest.min.js";
- DOMHead.appendChild(DOMScript);
- }
- function transform2(){
- $("head:first style:last").append(".rounded-img2 {display: inline-block;-webkit-border-radius: 10px;-moz-border-radius: 10px;border-radius: 10px;-webkit-box-shadow: inset 0 1px 5px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .9), 0 -1px 0 rgba(0, 0, 0, .6);-moz-box-shadow: inset 0 1px 5px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .9), 0 -1px 0 rgba(0, 0, 0, .6);box-shadow: inset 0 1px 5px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .9), 0 -1px 0 rgba(0, 0, 0, .6);}");
- }
- function transform3(){
- $("img").toggleClass("rounded-img2");
- }
- function transform4(){
- $(".rounded-img, .rounded-img2").each(function() { $(this).wrap(function(){ return '<span class="' + $(this).attr('class') + '" style="background:url(' + $(this).attr('src') + ') no-repeat center center; width: ' + $(this).width() + 'px; height: ' + $(this).height() + 'px;" />'; }); $(this).css("opacity","0"); });
- }
- transform1();
- transform2();
- transform3();
- transform4();
Advertisement
Add Comment
Please, Sign In to add comment