WebSite X5Help Center

 
Karel C.
Karel C.
User

Javascript in body section of webpage  en

Автор: Karel C.
Просмотрено 1346, Подписчики 1, Размещенный 0  

On the site http://www.dynamicdrive.com/dynamicindex3/leaves.htm there is a simple procedure for having autumn leaves animation on a webpage.

I copied the script into a page using the Object html feature in the body section. The script uses 6 GIF files (different pictures of leaves). I do not know how to put these files into some directory from within X5. So I exported my website to disk and added the files manually in the root directory. When I open the browser with that page, the animation does not work: it shows all 6 GIF files on the web page, one on top of the other, and there is no animation. As if the script does not execute.

It would also be nice if I could plugin those GIF files from within X5 so I do not have to do that manually after export.

Any idea ?

Размещено
6 Ответы - 1 Полезно - 1 Корректно
Incomedia
Stefano G.
Incomedia

Hi Karel

The procedure seems correct.

Although depending from the kind of code you got, you should be placing it in Step 4 -> Code -> Expert -> Before closing the head tag.

Also exporting the gifs on the webhosting is right and seemed to have worked.

Unfortunately, the staff won't provide support for the implementation of External code.

You might wait for seasoned users to stop by to help you out or search for information on the matter online.

Also, please link the URL of your website.

Have a nice day

Читать больше
Размещено От Stefano G.
Karel C.
Karel C.
User
Автор

Hi Stefano,

Looks like it has something to do with <!DOCTYPE html> statement . If I drop that statement from the file, it executes (more or less) correctly. So the fact that it is HTML5 prevents my script from executing correctly. 

www.bcdenbruel.be

Regards,

Karel

Читать больше
Размещено От Karel C.
Andre E
Andre E
Moderator

I have another script for similar creation, there are planty on internet as well.

I will test mine to see if it can be adapted. give me a few days...

I tryd the scripd you gave bu it does not work, probably for the reason you say in your post.

Читать больше
Размещено От Andre E
Karel C.
Karel C.
User
Автор

Thanks Andre !

Читать больше
Размещено От Karel C.
Andre E
Andre E
Moderator

Mine works it's an old one from Frank, it works with only 1 file but it works without hasle and creates the same effect, maybe it's even adjustable to more files, I did not look at that.

It's not available on the site from Frank anymore, I will make it downloadable from my site.

http://andreweb.nl/x5_test/snow-leaves-on-website.html

BR André

Читать больше
Размещено От Andre E
Karel C.
Karel C.
User
Автор

thanks André !

Читать больше
Размещено От Karel C.