[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/include/js/ -> thumbnail.js (source)

   1  /***********************************************
   2  * Image Thumbnail Viewer II script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
   3  * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
   4  * This notice must stay intact for legal use
   5  ***********************************************/
   6  
   7  //Specify image paths and optional link (set link to "" for no link):
   8  //from getContactImages function in include/utils/Commonutils.php
   9  //Preload images ("yes" or "no"):
  10  var preloadimg="no"
  11  
  12  //Set optional link target to be added to all images with a link:
  13  var optlinktarget=""
  14  
  15  //Set image border width
  16  var imgborderwidth=0
  17  
  18  //Optionally, change 1.0 and 0.7 below to affect Wipe gradient size and duration in seconds in IE5.5+:
  19  var filterstring="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.7)"
  20  
  21  ///////No need to edit beyond here/////
  22  
  23  if (preloadimg=="yes"){
  24      for (x=0; x<dynimages.length; x++){
  25          var myimage=new Image()
  26          myimage.src=dynimages[x][0]
  27      }
  28  }
  29  
  30  function returnimgcode(theimg){
  31      var imghtml=""
  32      if (theimg[1]!="")
  33          imghtml='<div class=thumbnail><a href="'+theimg[1]+'" target="'+optlinktarget+'">'
  34          imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'" width=270 height=200>'
  35          if (theimg[1]!="")
  36              imghtml+='</a></div>'
  37              document.getElementById("dynloadarea").style.display="block";
  38              return imghtml
  39  }
  40  
  41  function modifyimage(loadarea, imgindex){
  42      if (document.getElementById){
  43          var imgobj=document.getElementById(loadarea)
  44          if (imgobj.filters && window.createPopup){
  45              imgobj.style.filter=filterstring
  46              imgobj.filters[0].Apply()
  47          }
  48          imgobj.innerHTML=returnimgcode(dynimages[imgindex])
  49          if (imgobj.filters && window.createPopup)
  50              imgobj.filters[0].Play()
  51              return false
  52      }
  53  }
  54  


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7