www.webdeveloper.com
Results 1 to 4 of 4

Thread: Reduce the size

  1. #1
    Join Date
    Dec 2008
    Location
    Kota Kinabalu
    Posts
    1

    Reduce the size

    This may be asked and answered but I have 5 mins to find out. How it can be done, and if in many ways, to reduce the weight of java scripts?

  2. #2
    Join Date
    Oct 2006
    Posts
    939
    function setMarPad(x){
    if(kolor=='btc'){ if(marpad=='p'){d.paddingTop=x}
    else if(marpad=='m'){d.marginTop=x}
    else if(marpad=='b'){d.borderTopWidth=x}}
    else if(kolor=='brc'){ if(marpad=='p'){d.paddingRight=x}
    else if(marpad=='m'){d.marginRight=x}
    else if(marpad=='b'){d.borderRightWidth=x}}
    else if(kolor=='bbc'){ if(marpad=='p'){d.paddingBottom=x}
    else if(marpad=='m'){d.marginBottom=x}
    else if(marpad=='b'){d.borderBottomWidth=x}}
    else if(kolor=='blc'){ if(marpad=='p'){d.paddingLeft=x}
    else if(marpad=='m'){d.marginLeft=x}
    else if(marpad=='b'){d.borderLeftWidth=x}}
    getStyles()
    }

  3. #3
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,350

    Talking

    Quote Originally Posted by jettamo View Post
    This may be asked and answered but I have 5 mins to find out. How it can be done, and if in many ways, to reduce the weight of java scripts?
    Don't ever print the code. Electrons always weigh less than paper!

  4. #4
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,773

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles