PDA

View Full Version : Miscellaneous Hacks - popup fade effect


winstone
01-15-2010, 10:00 PM
===============
This mod will not be updated anymore
please see https://vborg.vbsupport.ru/showthread.php?t=233425
===============

By using this mod you can apply fade in (opacity) effects on your regular popup menus anywhere in VB powered pages, even in custom mods

see demo: http://tinypic.com/r/10zbrjc/6

How to install:
- upload the attached javascript file called "popup_anime.js" to "clientscript" directory
- add JS include codes to the "headinclude" area of template of the pages you want this hack to function
note: if you want to make it global, add to the main "headinclude" template, tho if you do this, on forumdisplay page you will have two calls for YUI Animation

JS Include codes:
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/yui/animation/animation-min.js?v={vb:raw vboptions.simpleversion}"></script>
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/popup_anime.js?v={vb:raw vboptions.simpleversion}"></script>

For browser compatibility please refer to YUI supported browsers chart http://developer.yahoo.com/yui/articles/gbs/index.html

*YUI Animation utility has A-Grade support

YOU ARE FREE TO RE USE THIS CODE, TRANSLATE OR PUBLISH IT ON OTHER WEBSITES


UPDATE LOG:
=============
v1.1 changes
fixes flickering issue on some browsers

mandingo
01-16-2010, 12:43 AM
That's pretty slick,thanks.

garretbyrne
01-16-2010, 01:17 AM
Cool it's a slight bit jumpy but it's okay..

garretbyrne
01-16-2010, 01:54 AM
Too jumpy for me.. cheers anyway

mandingo
01-16-2010, 02:14 AM
I did notice the jumpiness,is there a setting we can tweak in the js?

Dr.osamA
01-16-2010, 02:24 AM
thanx

installed
________
Vaporizer Review (http://twitter.com/vaporizer)

Taurus1
01-16-2010, 02:59 AM
Very cool mate. Thanks. Will this work for VB 3.8.4?

winstone
01-16-2010, 03:41 AM
Too jumpy for me.. cheers anyway

I did notice the jumpiness,is there a setting we can tweak in the js?

Try the new version

winstone
01-16-2010, 03:43 AM
Very cool mate. Thanks. Will this work for VB 3.8.4?

I don't think so mate

Sador
01-16-2010, 08:52 AM
I'm gonna try it out, thanks.

Sador
01-16-2010, 09:01 AM
Doesn't seem to work for me. I've uploaded the popup_anime file to /clientscript/ and added the JS include code to my headinclude template... Is there a certain place where you have to put it? If not, I have no idea what I'm doing wrong.

winstone
01-16-2010, 10:18 AM
Doesn't seem to work for me. I've uploaded the popup_anime file to /clientscript/ and added the JS include code to my headinclude template... Is there a certain place where you have to put it? If not, I have no idea what I'm doing wrong.

mind sharing the url to your board mate? so I can have a look

Sador
01-16-2010, 11:20 AM
Sure, send a pm.

mandingo
01-16-2010, 01:57 PM
Try the new version

Much better,cheers.

Hornstar
01-16-2010, 08:35 PM
I feel it makes your site look slow. I like it at full speed. Thanks anyway.