Team:IIT Madras/Templates/head
From 2013.igem.org
(Difference between revisions)
JunaidBabu (Talk | contribs) |
JunaidBabu (Talk | contribs) |
||
Line 130: | Line 130: | ||
</style> | </style> | ||
</head> | </head> | ||
+ | <script type="text/javascript"> | ||
+ | var a=0, b=0; | ||
+ | function OnScrollDiv (div) { | ||
+ | a=div.scrollY; | ||
+ | if(a<b){ | ||
+ | $("#wrap").css({position: 'fixed', left: '65px', top: '66px'}); | ||
+ | }else{ | ||
+ | $("#wrap").css({position: 'absolute', right: '0px', top: '10px'}); | ||
+ | } | ||
+ | b=a; | ||
- | <body id="sort" class="picturefill-wait"> | + | } |
+ | </script> | ||
+ | <body id="sort" class="picturefill-wait" onscroll="OnScrollDiv (this)"> | ||
<!--Facebook, Twitter, Google Plus Float Sharer Starts--> | <!--Facebook, Twitter, Google Plus Float Sharer Starts--> |
Revision as of 21:10, 5 September 2013