Вход Регистрация
Файл: includes/jquery/jquery.jcorners.js
Строк: 72
<?php
/**
 * jCorners - Cross-Browser Corners with JQuery
 *   http://jcorners.culturezoo.com/
 *
 * Copyright (c) 2008 Levi Nunnink, Culturezoo, LLC (http://culturezoo.com)
 * Licensed under the GPL
 *
 * Built on top of the jQuery library
 *   http://jquery.com
 *
 * Inspired by the "Corners Experiment" by Jonathan Snook
 *   http://snook.ca/archives/html_and_css/rounded_corners_experiment_ie/
 */

var defaults = {
    
radius5
};
jQuery.fn.jcorners = function(o) {
    return 
this.each(function() {
        new 
$jc(thiso);
    });
};
jQuery.jcorners = function(eo) {
    
this.options = $.extend({}, defaults|| {});
    if(
this.browser.msie){
        
this("body").prepend("<xml:namespace ns='urn:schemas-microsoft-com:vml' prefix='v' />");
        if($(
e).css("background-color") != undefined){
            var 
bg = $(e).css("background-color");
        }else{
            var 
bg "white";
        }
        var 
guid this.guid();
        var 
padding this.intval(this(e).css("padding"));
        var 
arc = (this.options.radius this(e).height());
        
this(e).wrap("<v:roundrect arcsize='"+arc+"' class='corner-wrapper' id='wrapper-"+guid+"' fillcolor='"+bg+"' strokecolor='"+bg+"'></v:roundrect>");
        
this("#wrapper-"+guid+"").css("behavior","url(#default#VML)");
        
this("#wrapper-"+guid+"").css("background-color","transparent");
        
this("#wrapper-"+guid+"").css("padding",this.options.radius+"px");
        
this("#wrapper-"+guid+"").css("height","100%");
        
this("#wrapper-"+guid+"").css("width",this(e).width()+(padding*2)+"px");
        
this("#wrapper-"+guid+"").css("border-color:",bg);
        
this("#wrapper-"+guid+"").css("display","inline-block");

    }else if(
this.browser.mozilla){
        
this(e).css("-moz-border-radius",this.options.radius+"px");
    }else if(
this.browser.safari){
        
this(e).css("-webkit-border-radius",this.options.radius+"px");
    }else{
        
this(e).css("border-radius",this.options.radius+"px");
    }
    return 
this;
}
jQuery.extend({
    
intval: function(v) {
        
parseInt(v);
        return 
isNaN(v) ? v;
    },
    
guid: function(){
        var 
resultij;
        
result '';
        for(
j=0j<32j++)
        {
            if( 
== || == 12|| == 16|| == 20)
            
result result '-';
            
Math.floor(Math.random()*16).toString(16).toUpperCase();
            
result result i;
        }
        return 
result
    

});
?>
Онлайн: 0
Реклама