The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Making the "show/hide widget" script faster

Go down

Making the "show/hide widget" script faster Empty Making the "show/hide widget" script faster

Post by Guest Fri 19 Apr 2013 - 13:56

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
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>
avatar
Guest
Guest


Back to top Go down

Making the "show/hide widget" script faster Empty Re: Making the "show/hide widget" script faster

Post by E-Mark Fri 19 Apr 2013 - 14:05

It's indeed working fine with me. I check your forum and tested in many times.
The problem could be indeed with your pc bye
E-Mark
E-Mark
Active Poster

Male Posts : 1412
Reputation : 169
Language : English
Location : Bitcoin

http://coding-spot.darkbb.com/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum