Making the "show/hide widget" script faster
Page 1 of 1
Making the "show/hide widget" script faster
I want to make it faster. I followed the tutorial by lucky and it seems slow sometimes on my site. Especially when it is set to hide the widgets. Any suggestions from the coding pros??
TOP
bottom
TOP
- Code:
<div id="forum-widget" style="cursor: pointer; height: 13px; width: 16px; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; position: relative; bottom: -15px; float: right; background: #f5ebf7 url(http://i42.tinypic.com/vg54yu.png) no-repeat 0 -13px;" onClick="jQuery('#right').animate({width:'toggle',height:'toggle',opacity:'toggle'},1000); if(my_getcookie('forum-widget')=='0') { my_setcookie('forum-widget','1',0,0); jQuery('#forum-widget').css('background-position','0 -13px'); jQuery('#content-container div#content').css('margin-right','189px');} else { my_setcookie('forum-widget','0',1,0); jQuery('#forum-widget').css('background-position','0 0px'); jQuery('#content-container div#content').css('margin-right','0px'); }"></div>
bottom
- Code:
<script type="text/javascript"> jQuery('#forum-widget').insertBefore('#right'); if(my_getcookie('forum-widget')=='0') {jQuery('#right').animate({width:'toggle',height:'toggle',opacity:'toggle'},0); jQuery('#forum-widget').css('background-position','0 0px'); jQuery('#content-container div#content').css('margin-right','0px');} </script>
Guest- Guest
Re: Making the "show/hide widget" script faster
It's indeed working fine with me. I check your forum and tested in many times.
The problem could be indeed with your pc
The problem could be indeed with your pc
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum