GetDotted Domains

Viewing Thread:
"Help adding javascript to page"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Tue 14/12/10 at 13:32
Regular
Posts: 3
Hi there.

I stumbled across this code to add a falling snowflake effect to a website using javascript:
Snowflake code

Although I add it to my homepage html code it does not show up.

What can I do to get this working?

Cheers
Steve
Wed 15/12/10 at 10:44
Moderator
"Are you sure?"
Posts: 5,000
I remember now...


I guess it's like anything tech based these days - people just like to see how far they can push things! Whether it's an iPhone or a Website; it's always nice to get a bit more out of it :¬)


[s]Hmmm...[/s] My Freeola InstantPro Site
Wed 15/12/10 at 10:02
Staff Moderator
"Freeola Ltd"
Posts: 3,299
I have about 30 0_o Thought I had even showed you the Family Guy one (with the dodgy uses of images as you suggested :P ?).

They are mainly for testing Instant Pro/my limits.

And InstantPro is simple enough we think Hmmm... but you are talking about "hacking" it to implement features it is not intended to, so it's never going to be perfect/simple.
Wed 15/12/10 at 09:10
Moderator
"Are you sure?"
Posts: 5,000
I use my InstantPro footer for my Twitter display and Adsense code - hopefully things will get a bit simpler on the InstantPro front in the future as it's all a bit creaky.

When editing the HTML directly the editor often treads on your previous work :¬(


I didn't know you had an InstantPro site Warhunt :¬)

[s]Hmmm...[/s] My Freeola InstantPro Site
Wed 15/12/10 at 08:48
Staff Moderator
"Freeola Ltd"
Posts: 3,299
Wondered how long it would be before someone just tried that ;)

Bear in mind we still don't suggest it though, and won't be supporting it fully should it cause issues with the issues (though it hasn't done on any of mine so far (ish))
Tue 14/12/10 at 18:35
Regular
Posts: 3
On further testing I did find a way to make the snow effect by using a separate .js file and linking to it.

looking on the same site as before they do a version that is a downloadable .js file

All you need to do is call it with the following line:
<script type="text/javascript" src="path_to_script/snowstorm.js"></script>

This pasted into the editor as html will work!
Note that putting any other variables will not, but you can open the .js file in notepad and make any changes there. I changed the snow to a blueish colour to better show on my site.

I downloaded the file to some other web space I had and changed the path to point to it. You *could* link straight to their example but thats not very ethical. I don't know how to upload a file of that type to our Instantpro site.

I found the best place to insert the code so it shows for all pages on your site is in the web site design editor and editing the footer text.

Hope this can help other people in getting other javascript things to work.
Tue 14/12/10 at 17:51
Moderator
"Are you sure?"
Posts: 5,000
Let us know how you get on.

You can use JavaScript in some places on an InstantPro site.
In a 'Skyscraper' for example. I had a play but the snow only shows in the Skyscraper which isn't much good! But I guess could still be used to some effect. Perhaps with a Christmas message in the Skyscraper...

Some of the other areas are 'hackable' so it would be good to see what you find.

You can insert/embed FLASH *snow* but I didn't find anything that was worth repeating :¬)

[s]Hmmm...[/s] My Freeola InstantPro Site
Tue 14/12/10 at 17:32
Regular
Posts: 3
Yes sorry, I should have mentioned it's for an InstantPro site.

I hope work can progress on the plugin soon, off now to see what, if any workarounds exist.
Tue 14/12/10 at 15:35
Moderator
"Are you sure?"
Posts: 5,000
It's always worth mentioning when posting if your query relates to an InstantPro one!

Unfortunately the use of JavaScript is limited with InstantPro - but Freeola are working on an InstantPro JavaScript Plugin which will hopefully help in the OP's (Original Poster's) situation :¬)




[s]Hmmm...[/s] My Freeola InstantPro Site
Tue 14/12/10 at 14:41
Staff Moderator
"Freeola Ltd"
Posts: 3,299
It's an InstantPro site Hmmm....

The Java and InstantPro subject has been covered many times on these forums (struggling to find the links), but a quick search should answer the question/ show you a few tips pointers.
Tue 14/12/10 at 13:53
Moderator
"Are you sure?"
Posts: 5,000
Hi PicPod and welcome to the Freeola forums!

I've just tested that JavaScript code and it works fine.
I've added it to my recent snow photo page.

Have you checked you've cut/pasted the code correctly?
Are you able to link to the page where you are using it?

NB. I'm assuming that you have a normally hosted Freeola site and not InstantPro?

[s]Hmmm...[/s]

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Thanks!
Thank you for dealing with this so promptly it's nice having a service provider that offers a good service, rare to find nowadays.
Second to none...
So far the services you provide are second to none. Keep up the good work.
Andy

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.