Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Other
Author Message
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1123

PostPosted: Mon Jan 14, 2013 8:45 pm Reply with quote

Hi Guys

Today it started to snow a lot for the first time. I expected to happen last year but it wasn't. I decided to make some snowing script and wanna share it with you. Please check if I use the correct syntax in my code. Thanks in advance.

Instructions:

Open FTP
Open folder includes/addons/
Create file head-Storm_Snowing.php

Code

Code:
<?php


if (stristr(htmlentities($_SERVER['PHP_SELF']), 'head-Storm_Snowing.php')) {
   Header('Location: ../../index.php');
   die();
}
addJSToHead('js/snowstorm.js', 'file');

$inlineJS = '<script type="text/javascript">
   $(document).ready(function(){

$(\'#snowStorm\').snowColor : "#99ccff";
$(".nowStorm").flakesMaxActive : "96";
$(".nowStorm").useTwinkleEffect : "true";

          });
         
       });
</script>';
addJSToHead($contact , 'inline');


After doing this I noticed it is working properly but maybe u can correct me if miss something. Wink
 
View user's profile Send private message
jestrella
Moderator



Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic

PostPosted: Tue Jan 15, 2013 6:27 am Reply with quote

I found everything to be fine after a quick look at the code.

_________________
"For those whom have not reach the sky... Every mountain seems high"

Best Regards
Jonathan Estrella
http://about.me/jestrella04 
View user's profile Send private message Visit poster's website
hicuxunicorniobestbuildpc







PostPosted: Tue Jan 15, 2013 5:16 pm Reply with quote

Thanks for your answer jestrella. Gracias y Feliz Año Nuevo para ti y para toda tu familia.
 
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Tue Jan 15, 2013 5:36 pm Reply with quote

Do you have a link to your snowstorm.js file?
 
View user's profile Send private message Visit poster's website
jestrella







PostPosted: Tue Jan 15, 2013 6:04 pm Reply with quote

unicornio wrote:
Thanks for your answer jestrella. Gracias y Feliz Año Nuevo para ti y para toda tu familia.


Muchas gracias, igual Razz
 
hicuxunicorniobestbuildpc







PostPosted: Wed Jan 16, 2013 6:51 am Reply with quote

U can download the addon here

http://goo.gl/U7Edj
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Other

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©