Vuilam Community Entertainment

Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.
Vuilam Community Entertainment

Diễn Đàn Giải Trí Tổng Hợp

Latest topics

» Hướng dẫn làm nhiệm vụ GTA San AnDreas
by Dương Tiến Vinh Tue Jul 28, 2015 11:02 pm

» I-Ninja [Full PC]
by thanglun2 Sun Apr 26, 2015 4:53 pm

» Theme - Naruto ( Cực Hot Cực Hot )
by sayedn73 Fri Feb 13, 2015 10:14 am

» Dynasty Warriors 6 [Full PC]
by dungfa1992 Wed Dec 31, 2014 9:17 pm

» Gun Metal - Tranfomer Wars [Full PC]
by nghia6541 Tue Dec 30, 2014 9:11 am

» Theme :Sao Băng
by sayedn73 Sun Dec 21, 2014 9:41 am

» Theme dành cho fangirl(đặc biệt là fan DBSK)
by sayedn73 Sun Dec 21, 2014 9:31 am

» Share Code Viewtopic_body VBB By SockDust
by sayedn73 Sun Dec 21, 2014 8:12 am

» The House Of The Dead III [Full PC]
by kriskiller Sat Sep 13, 2014 9:36 am

» [Da Liễu] Bệnh vảy nến
by con_zubo Wed Nov 13, 2013 10:31 am

» Game Lego Batman (Full DVD)
by hotel1221 Mon May 27, 2013 11:02 am

» Game G-Force | Biệt Đội Chuột Lang (Full DVD)
by hotel1221 Mon May 27, 2013 10:52 am

» Game Phá Hàng Xóm 2
by hotel1221 Mon May 27, 2013 10:49 am

» Day Of The Zombie [Full PC]
by hotel1221 Sun May 26, 2013 6:25 pm

» Neighbours From Hell 1 + 2
by tuanvu0707 Wed Apr 10, 2013 10:10 am


    Mod resize image chuẩn nhất ( giống VBB luôn nà )

    ╬VipΩPro╬
    ╬VipΩPro╬
    Rìu Bạc
    Rìu Bạc

    Cảnh Báo :
    Mod resize image chuẩn nhất ( giống VBB luôn nà ) Image-7CE0_4ECA73FD0 / 1000 / 100Mod resize image chuẩn nhất ( giống VBB luôn nà ) Image-7CE0_4ECA73FD

    Lý Do Vi Phạm : An Toàn
    Giới tính Giới tính : Nam Cung Sinh Cung Sinh : Pisces
    Posts Posts : 117
    SDPoints SDPoints : 368
    Thanked Thanked : 6
    Tham Gia Tham Gia : 16/09/2011
    Tuổi Tuổi : 27
    Đến từ Đến từ : Hà Ná»™i
    Sở Thích Sở Thích : Computer,....
    Châm Ngôn Sống Châm Ngôn Sống : Nản,....
    30092011

    Mod resize image chuẩn nhất ( giống VBB luôn nà ) Empty Mod resize image chuẩn nhất ( giống VBB luôn nà )

    Bài gửi by â•¬VipΩPro╬

    Chèn vào QLTT\Mô tả:
    Code:
    <script>window.onload = function resizeImagesForumotion()
    {
              if (document.images.length > 0)
              {

          var maxWidth = 600;
                      var imgHeight;
                      var imgWidth;
                      for (var i = 0; i < document.images.length; i++)
                  {
                            imgWidth = document.images[i].width;
                            imgHeight = document.images[i].height;
              if (document.images[i].width > maxWidth && document.images[i].src != "http://upanh.com/uploads/19-July-2009/ywt3tpwbxblkio5pc57h.jpg")  {
                image = new Image();
                                    image = document.images[i];

                newImage = image.cloneNode( true )  ;

                                    newImage.origHeight = image.height;
                                  newImage.origWidth = image.width;


                                    newImage.width = maxWidth ;

                                    imgHeight = imgHeight / (imgWidth/ maxWidth );
                                    newImage.height = imgHeight;
               
                newImage.style.cursor = 'pointer';


                if( image.outerHTML )
                {
                                        newImage.onclick = "var altHeight; var altWidth;  altHeight = this.height ; altWidth = this.width; this.width = this.origWidth;    this.height = this.origHeight; this.origWidth = altWidth; this.origHeight = altHeight;    ";
                } else {
                                        newImage.onclick = function () {
                      var altHeight;
                      var altWidth;
                     
                      altHeight = this.height ;
                      altWidth = this.width;

                      this.width = this.origWidth;
                      this.height = this.origHeight;

                      this.origWidth = altWidth;
                      this.origHeight = altHeight;
                  };
                }

                if( parentNode = image.parentNode )
                {
                  textMessage = document.createTextNode('This Image has been resized. Click the image to view full size. ');

                  elem = document.createElement("td");
                  elem.setAttribute( "align", "center");
                  elem.style.backgroundColor = '#FFFFCC';
                  elem.style.color = '#000';
                  elem.style.fontSize = '12pt';

                  elem.appendChild( textMessage );
                  elem.appendChild( document.createElement("br"));
                  elem.appendChild( newImage );
                     
                 
                  tableRow = document.createElement("tr");
                  tableRow.appendChild(elem);
                 
                  TableElem = document.createElement("table");
                  TableElem.setAttribute( "border", "0");
                  TableElem.appendChild( tableRow );

                  frag = document.createElement("div");
                  frag.appendChild( TableElem );

                  if( image.outerHTML )
                  {
                      image.outerHTML = frag.innerHTML;
                  } else {
                      parentNode.replaceChild( TableElem, image );
                  }
                }
                  } }
              }
        } </script>
    Sửa link banner tại
    Code:
    http://upanh.com/uploads/19-July-2009/ywt3tpwbxblkio5pc57h.jpg
    Demo:
    http://share4all123.forumotion.com/garbage-f17/test-resize-img-t11.htm
    Share this post on: reddit

    No Comment.


      Hôm nay: Fri Mar 29, 2024 6:07 am