![]() |
Random Image Falling On Page Refresh?
Can anyone help me add code to this script so that a random image for the falling snow would be used on each page reload/refresh instead of only one image.
Thanks! https://vborg.vbsupport.ru/showthread.php?p=2133151 |
the script am using doesn't use a image but a . ur site well take from ever to lode...
but here it goes snowsrc is the call of the image so try naming it different. Code:
Code:
but i dont know what to do with that part! Code:
|
Say what?
Yea it uses images or I would not have asked! Here is my site live where it is running with one image. I need it to call random images on page reloads. http://www.globalschoolconnect.com/ It loads fast! |
all i said was that am using a different script from the one ur using...
but ya did you try the code i posted? |
Your code only shows the first image in the list the snowflake. The rest will not work on page reload. :(
|
good now find this
Code:
Code:
|
Nope but I have my snowman stuck up in the right corner of my banner now and only the snowflakes fall. LOL :(
Maybe I messed up an edit? Here is my js file content with your alterations: Code:
/****************************************** |
try this
PHP Code:
|
Nope same thing. Snow falls and the snowman is stuck up there.
Have a peek here: http://www.globalschoolconnect.com/ |
try this...
PHP Code:
|
I tried some variations of a random image array but could not get that to work. Like this page:
http://www.webdevelopersnotes.com/tu...avascript.php3 --------------- Added [DATE]1292237292[/DATE] at [TIME]1292237292[/TIME] --------------- Well now I have two snowmen and only the snowflakes fall. UGGG --------------- Added [DATE]1292238417[/DATE] at [TIME]1292238417[/TIME] --------------- Well any ideas next??? |
am going to have to get back to that....
|
I got this to work now perfectly! Here is the code to allow a list of multiple images to fall on a site on every page reload or refresh:
Code:
/****************************************** To have this on a stand alone HTML file use this code instead: Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
post this in mods there well be a nice use for it when i have time i think i can make it in to a add-on for vb that u can add images from the admincp.. is it cool with you?
|
Quote:
Anyway let me know when you think you can help with the project. I am going to release this under the vb.3.8x section |
All times are GMT. The time now is 02:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|