Ignore:
Timestamp:
Jan 31, 2011, 10:37:30 AM (13 years ago)
Author:
grum
Message:

release 3.0.0
fix bug on random picture display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMenuManager/js/amm_randomPictPublic.min.js

    r8962 r9002  
    1 /* file: amm_randomPictPublic.js - v1.0.0 | minified on 2011/01/28 with http://jscompress.com/ */
     1/* file: amm_randomPictPublic.js - v1.0.0 | minified on 2011/01/31 with http://jscompress.com/ */
    22function randomPict(opt)
    33{var options={fixedHeight:0,pictures:[],showName:'n',showComment:'n',delay:0},properties={vIntervalID:0,vCurrentPict:0,nameDOM:'',commentDOM:'',img:new Image()},init=function(opt)
     
    1212else
    1313{properties.img.src=options.pictures[properties.vCurrentPict].thumb;}});properties.img.src=options.pictures[properties.vCurrentPict].thumb;},computePositionTop=function()
    14 {$("#iamm_ill0").css({top:(options.fixedHeight-$("#iamm_ill0").innerHeight())/2});},getNextPicture=function()
     14{$("#iamm_ill0").css({top:($('#irandompicinner').innerHeight()-$("#iamm_ill0").innerHeight())/2});},getNextPicture=function()
    1515{properties.vCurrentPict++;if(properties.vCurrentPict>=options.pictures.length)properties.vCurrentPict=0;$('#iamm_ill0').fadeTo(200,0,function()
    1616{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);}
Note: See TracChangeset for help on using the changeset viewer.