vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   Swf File Widget (https://vborg.vbsupport.ru/showthread.php?t=243043)

Xencored 05-23-2010 02:35 PM

Quote:

Originally Posted by baghdad4ever (Post 2041877)
is there any chance to put 10 swf files in certain folder and the widget show them randomly?

Hmm i guess so ill look into it for you :)

Quote:

Originally Posted by Jaske (Post 2041919)
would this work in vBadvanced (modules) ?

Never used Vbad mate so no idea sorry :(

baghdad4ever 06-10-2010 10:46 AM

Quote:

Originally Posted by Animemike (Post 2042258)
Hmm i guess so ill look into it for you :)


Never used Vbad mate so no idea sorry :(

thanks

im waiting you

Xencored 06-17-2010 11:07 PM

Quote:

Originally Posted by baghdad4ever (Post 2051488)
thanks

im waiting you

Not tested but this might work

Code:

<script type="text/javascript">
<!--

var swf1="1.swf"
var swf2="2.swf"
var swf3="3.swf"
var swf4="4.swf"
var swf5="5.swf"
var swf6="6.swf"
var swf7="7.swf"
var swf8="8.swf"
var swf9="9.swf"
var swf10="10.swf"
var x=Math.round(Math.random()*9)
if (x==0) x=swf1
else if (x==1) x=swf2
else if (x==2) x=swf3
else if (x==3) x=swf4
else if (x==4) x=swf5
else if (x==5) x=swf6
else if (x==6) x=swf7
else if (x==7) x=swf8
else if (x==8) x=swf9
else x=swf10

document.write('<embed src='+'"'+x+'"'+' width="145px"; height="170" >')

//-->
</script>


baghdad4ever 06-19-2010 12:38 PM

Quote:

Originally Posted by Animemike (Post 2055208)
Not tested but this might work

Code:

<script type="text/javascript">
<!--

var swf1="1.swf"
var swf2="2.swf"
var swf3="3.swf"
var swf4="4.swf"
var swf5="5.swf"
var swf6="6.swf"
var swf7="7.swf"
var swf8="8.swf"
var swf9="9.swf"
var swf10="10.swf"
var x=Math.round(Math.random()*9)
if (x==0) x=swf1
else if (x==1) x=swf2
else if (x==2) x=swf3
else if (x==3) x=swf4
else if (x==4) x=swf5
else if (x==5) x=swf6
else if (x==6) x=swf7
else if (x==7) x=swf8
else if (x==8) x=swf9
else x=swf10

document.write('<embed src='+'"'+x+'"'+' width="145px"; height="170" >')

//-->
</script>



thanks

can you explain plz how to use this code?

Xencored 06-19-2010 06:32 PM

Quote:

Originally Posted by baghdad4ever (Post 2055823)
thanks

can you explain plz how to use this code?

Same as above
"Add this code in the "Enter Static HTML" box"

Add the url for your SWFs over 1.swf 2 3 4 5 etc...

vikris 07-14-2010 06:20 PM

Works perfectly with jpg files also! :)

My question is how to put in the code link, when someone clicks on the image to be redirected somewhere?

Thanks!

--------------- Added [DATE]1279139477[/DATE] at [TIME]1279139477[/TIME] ---------------

Sorry for double post. In IE 8 gives blank. All other browsers show correctly.

Xencored 07-23-2010 05:40 PM

The swf works fine on IE if your using images than thats something ive not tryed

Mondi 07-16-2011 02:16 AM

Very helpful - thanks heaps.

You just saved me hours.....

montda 08-04-2011 01:42 AM

OMG I was thinking to add this on my site, suddenly i found this post ! XD love u Vodkaholic <3

--------------- Added [DATE]1312477958[/DATE] at [TIME]1312477958[/TIME] ---------------

It's working fine with me but there some kind of problem in width and height with different screens :/ isn't there code in html to make it auto size?


All times are GMT. The time now is 05:21 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06247 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete