Changeset 11036 for extensions/AMenuManager/js/amm_randomPictPublic.min.js
- Timestamp:
- May 24, 2011, 11:17:20 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMenuManager/js/amm_randomPictPublic.min.js
r9002 r11036 1 /* file: amm_randomPictPublic.js - v1.0. 0 | minified on 2011/01/31with http://jscompress.com/ */1 /* file: amm_randomPictPublic.js - v1.0.1 | minified on 2011/05/24 with http://jscompress.com/ */ 2 2 function randomPict(opt) 3 3 {var options={fixedHeight:0,pictures:[],showName:'n',showComment:'n',delay:0},properties={vIntervalID:0,vCurrentPict:0,nameDOM:'',commentDOM:'',img:new Image()},init=function(opt) … … 16 16 {if(properties.nameDOM!='')$('#'+properties.nameDOM).html(options.pictures[properties.vCurrentPict].name);if(properties.commentDOM!='')$('#'+properties.commentDOM).html(options.pictures[properties.vCurrentPict].comment);$('#iammRPicLink').attr('href',options.pictures[properties.vCurrentPict].link);$('#iammRPicImg').attr('src',options.pictures[properties.vCurrentPict].thumb);computePositionTop();$('#iamm_ill0').fadeTo(200,1);});};init(opt);} 17 17 $(document).ready(function() 18 {var rPict =new randomPict(randomPictOpt);});18 {var rPict;if(typeof randomPictOpt!=='undefined'){rPict=new randomPict(randomPictOpt);}else{$('#mbAMM_randompict').remove();}});
Note: See TracChangeset
for help on using the changeset viewer.