The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

[TUT] Conditionally Load WibyaBar onclick

View previous topic View next topic Go down

[TUT] Conditionally Load WibyaBar onclick

Post by ioncube on November 22nd 2011, 9:55 pm

Features:
1] User will be able to select whether wibyabar is to load or not, so users with faster net connection will turn it off & vice versa
2] The choice will be remembered

HTML part (style it as necessary)
Code:
<p>•<a href=""  onclick="stopwibya('hidden')" title="Decrease page loading time">  Remove </a>|<a href=""  onclick="stopwibya('visible')" title="Increase page loading time"> Show</a> WibyaBar
</p>

JS part
Code:

function stopwibya(stwb) {
    my_setcookie('stopwib', stwb, true);
    window.location.reload();
}
var stopwib = my_getcookie('stopwib');
if (stopwib != 'hidden') {

//Put complete Wibya code here

}



Special thanks to
LGforum & Dion for making us understand Forumotion study

ioncube
Forumember

Male Posts : 279
Reputation : 41
Language : eng
Location : Pakistan

http://defencedog.blogspot.com/

Back to top Go down

Re: [TUT] Conditionally Load WibyaBar onclick

Post by ioncube on November 22nd 2011, 10:06 pm

I knew someone will say this Smile
This isn't something that deals with FM directly, so officials may not agree. I suggest you don't lock it for the sake of wibya lovers which are many

ioncube
Forumember

Male Posts : 279
Reputation : 41
Language : eng
Location : Pakistan

http://defencedog.blogspot.com/

Back to top Go down

Re: [TUT] Conditionally Load WibyaBar onclick

Post by Nera. on November 22nd 2011, 10:18 pm

Hi,

Anything you you want to add to Tips and tricks you are welcomed to send to my PM. Please do so. If it helps our users it will certanly be published so there is no need to vory about the topic beeing locked. You concern and will to help will be highly apriciated. Topics like these are not allowed on the Support forum cause of the quantity of our users & our will to keep the forum clean and organized.

Thank you for understanding. Smile

> Locked


Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


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