Template:Team:UC Davis/Head
From 2011.igem.org
(Difference between revisions)
Aheuckroth (Talk | contribs) |
Aheuckroth (Talk | contribs) |
||
Line 93: | Line 93: | ||
clearTimeout(setting.snapbacktimer); | clearTimeout(setting.snapbacktimer); | ||
$contentbox.html(contentarray[$target.parent().index()]); | $contentbox.html(contentarray[$target.parent().index()]); | ||
- | var contentwidth = $contentbox. | + | var contentwidth = $contentbox.innerWidth(); |
currenttarget=$target;$contentbox.dequeue().css( | currenttarget=$target;$contentbox.dequeue().css( | ||
{ | { | ||
- | left:$target.parent().position().left,opacity:0 | + | left:$target.parent().position().left-(contentwidth-$target.parent().innerWidth())/4,opacity:0 |
} | } | ||
); | ); |
Revision as of 22:53, 26 August 2011