If u go to this below website you will see a big image middle of the page. Just refresh the page, everytime the image is changing.
How can I do that? Can u give me a clue?http://moodle.blackpool.ac.uk/
If u go to this below website you will see a big image middle of the page. Just refresh the page, everytime the image is changing.
How can I do that? Can u give me a clue?http://moodle.blackpool.ac.uk/
Looking at the source code it appears to be some javascript that randomly displays a different image when the page is refreshed - a quick google took me to here as an example: http://javascript.internet.com/miscellaneous/random-image.html
I have copy pested above mentioned javascrpt code(excliding head and html tag) in the summary of site section in html toggle(code) mode. Everything working fine. Picures are coming in every refreshing of a page.
But the problem is when I am going to edit the code again (after saving from first attempt) then most of the codes are getting vanished. Dont know why. You can check it just by copy pesting above code.
How can I fix that?
Also Is it possible to save the php code in the html mode? Thanks.
I also use picture rotating method but I dont use javascript for this. Instead I use Animation pro and then develop a jpg file with photo rotating back to back. This does require refreshing the page which is a better method. I use the picture as a way to promote news.
what is the url of that soft?is it free?windows version available? can u bit elaborate it?
Google search "Jaisc Animation Pro" I am sure some free versions are also available.
Basicaly u dont need to refresh the page to see the pictures rotating, it will do it by itself with jpg file formats. ALl versions available (Windows, Mac, Linux etc.....)
oh thats only animation of images that I can also use some flash tools...but I want that every rerfresh of a page the image will change not the image will change automatically...does it do that?
But my head is spinning, why the HTML/JAVASCRPIT codes are disappearing while I try to edit it second time? What is the reason? Any solution?
Try going to your profile and click "edit profile" and then change "when editing text" to "use standard webforms"
Hi Yuki, Thanks for the response.
You said when you edit code again, they get vanished. Have you found a solution to this problem?
Coould you send me the jave code exactly as used in your moodle site?
Did you paste this code under ' Add label'?
Did you upoad the pictures using the 'file' link in moodle?
Thanks
Tom