4Rum Kết Nối
Mời bạn ghé thăm FanPage " Hội Tìm Người Tâm Sự"
https://www.facebook.com/hoitamsu
4Rum Kết Nối
Mời bạn ghé thăm FanPage " Hội Tìm Người Tâm Sự"
https://www.facebook.com/hoitamsu
4Rum Kết Nối

Mời Bạn Ghé Thăm Fanpage Hội Tìm Người Tâm Sự Theo Link https://www.facebook.com/hoitamsu
 
Trang ChínhTrang Chính  Latest imagesLatest images  Tìm kiếmTìm kiếm  Đăng kýĐăng ký  Đăng Nhập  

Share
 

 code css tăng giảm kích thước ảnh nè

Xem chủ đề cũ hơn Xem chủ đề mới hơn Go down 
Tác giảThông điệp
Admin
Admin
Admin


Tổng số bài gửi : 726
Reputation : 19
Birthday : 20/05/1988
Join date : 12/10/2010
Age : 35
Đến từ : phú thọ

code css tăng giảm kích thước ảnh nè Empty
Bài gửiTiêu đề: code css tăng giảm kích thước ảnh nè   code css tăng giảm kích thước ảnh nè EmptyWed Dec 15, 2010 2:53 pm

Code:
#newnavbar ul li{
list-style-type: none;
display:inline;
margin:0px;
padding:30px;
border:0px solid;
}

#newnavbar li a img{
height:30px;
width:30px;
}

#newnavbar li a:hover img{
height:40px;
width:40px;
background: #ffff66;
}

#newnavbar li a:visited img{
height:30px;
width:30px;
background: #6D7B8D;
}
Về Đầu Trang Go down
https://k3kt.forumvi.com
Admin
Admin
Admin


Tổng số bài gửi : 726
Reputation : 19
Birthday : 20/05/1988
Join date : 12/10/2010
Age : 35
Đến từ : phú thọ

code css tăng giảm kích thước ảnh nè Empty
Bài gửiTiêu đề: Re: code css tăng giảm kích thước ảnh nè   code css tăng giảm kích thước ảnh nè EmptyThu Dec 30, 2010 10:49 am

Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function showimg(form)
{
adres = form.image_file.value;
index = adres.indexOf(".gif");
index = index + adres.indexOf(".jpg");
index = index + adres.indexOf(".bmp");
if (form.image_file.value == "")
  {alert("No Image found!");}
else
  {if (index == -3){alert("Unknow image type");
    form.width.value=0;
    form.height.value=0;}
  else
    {
    var img_obj = new Image();
    img_obj = form.image_file.value;
    document.changing.src = img_obj;
    document.changing2.src= img_obj;
    document.changing.width = document.changing2.width;
    document.changing.height = document.changing2.height;
    set();
}
  }
}
fast = 0;
change = 0;
function upw(){
  document.image.width.value=parseInt(document.image.width.value)+1;
  resize();}
function over_upw(){upw();
  change = 1;
  changetime = setTimeout("fast_upw()","600");}
function fast_upw(){clearTimeout(changetime);
  upw();
  fast = setTimeout("fast_upw()","100");}
function clt(){
if (change == 1){clearTimeout(changetime);}
clearTimeout(fast);
change = 0;
}
function resize()  {document.changing.height = document.image.height.value;
  document.changing.width = document.image.width.value;}
function downw(){document.image.width.value=parseInt(document.image.width.value)-1;
  resize();}
function over_downw(){downw();
  change = 1;
  changetime = setTimeout("fast_downw()","600");}
function fast_downw(){clearTimeout(changetime);
  downw();
  fast = setTimeout("fast_downw()","100");}
function uph(){document.image.height.value=parseInt(document.image.height.value)+1;
 resize();}
function over_downh(){downh();
  change = 1;
  changetime = setTimeout("fast_downh()","600");}
function fast_downh(){clearTimeout(changetime);
  downh();
  fast = setTimeout("fast_downh()","100");}
function over_uph(){uph();
  change = 1;
  changetime = setTimeout("fast_uph()","600");}
function fast_uph(){clearTimeout(changetime);
  uph();
  fast = setTimeout("fast_uph()","100");}
function downh(){document.image.height.value=parseInt(document.image.height.value)-1;
  resize();}
function set(){
  document.image.width.value=document.changing.width;
  document.image.height.value=document.changing.height;}
//  End -->
</script>
   <!--
       This script downloaded from [You must be registered and logged in to see this link.]
       Come to view and download over 2000+ free javascript at [You must be registered and logged in to see this link.]
   -->
Về Đầu Trang Go down
https://k3kt.forumvi.com
 

code css tăng giảm kích thước ảnh nè

Xem chủ đề cũ hơn Xem chủ đề mới hơn Về Đầu Trang 
Trang 1 trong tổng số 1 trang

 Similar topics

-
» code giới hạn kích thước ảnh
» code tạo bảng qua tặng âm nhạc
» code chọn toàn bộ code
» Tổng giám đốc đi lên từ nhân viên khuân vác
» trang web về code css ....vv

Permissions in this forum:Bạn không có quyền trả lời bài viết
4Rum Kết Nối :: CenTer :: Hướng Dẫn Làm Forum :: Hướng Dẫn Làm forum-