BVB Source Codes

Jie Yang v0.6.3 article system Show img.js Source code

Return Download Jie Yang v0.6.3 article system: download img.js Source code - Download Jie Yang v0.6.3 article system Source code - Type:.js
  1. function fResizeImg(w, h, id){
  2. var img='';
  3. var obj;
  4. if(id==undefined)obj=document.images;
  5. else obj=document.getElementById(id).getElementsByTagName('img');
  6.  
  7. for(var i=0; i<obj.length; i++){
  8. img=obj[i];
  9. if (img.height<img.width){
  10. if(img.width>w&&(img.height<img.width)){
  11. img.height=img.height-(img.height/(img.width/(img.width-w)))
  12. img.width=w;
  13. }
  14. if(img.height>h&&(img.height<img.width)){
  15. img.width=img.width-(img.width/(img.height/(img.height-h)))
  16. img.height=h;
  17. }
  18. }
  19. else if (img.height>img.width)
  20. {
  21. if(img.height>h&&(img.height>img.width)){
  22. img.width=img.width-(img.width/(img.height/(img.height-h)))
  23. img.height=h;
  24. }
  25. if(img.width>w&&(img.height>img.width)){
  26. img.height=img.height-(img.height/(img.width/(img.width-w)))
  27. img.width=w;  
  28. }
  29. }
  30.  
  31. img.onclick=function()
  32. {
  33. try{ imgPopup.close();} catch(e){}
  34. imgPopup=window.open('','','')
  35. imgPopup.document.write('<script>document.onclick=function(){ close();}<\/script>');
  36. imgPopup.document.write('<img src="'+this.src+'"/>',
  37. '<style>body{margin:0; padding:0;} .hd{visibility:hidden;}<\/style>');
  38. imgPopup.focus();
  39. imgPopup.document.close();
  40. }
  41. }  
  42. }
downloadimg.js Source code - Download Jie Yang v0.6.3 article system Source code
Related Source Codes/Software:
Jilin classification information release system v5.0 trial version - A ready-made classifieds site publishing system, h... 2016-09-21
Linyi CMS v6.5 market classification information - A. supply and demand information function: informa... 2016-09-21
Tesco discount net SQL version - And presentations, faster. 2016-09-21
- electronic enterprise website management system In a fully functional version - Super suitable for enterprise agents build a corpo... 2016-09-21
Rio mesh network hard disk system v3.0 - System functions: 1, increase the progress of Asp... 2016-09-21
Classified information network business in suzhou - Overall module: classification of supply and deman... 2016-09-21
NPOINT virtual host v1.7.0 formal version management system - The system main function is introduced 2016-09-21
IDC sales web site - Beautiful IDC sales web site source code 2016-09-21
Oo 126 CMS movie site system - This procedure ASP + ACC/ASP + SQL, using new kern... 2016-09-21
Pcook CMS bubble guest v3.0 SDCMS version - Developed by Asp+Access, and meet the needs of sma... 2016-09-21
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top