Strange behavior running a JS in a widget into the side bar
Dear all,
I'm doing some tests with the theme Catch Evolution before switching to the PRO-Version. In order to test opportunities of this nice theme, I have built a little widget to display the current astrological period as a text, the corresponding "zodiacal stone" again as a text and the image of the zodiacal stone. If I open the home-page, this widget works very fine.
The strange thing happens if I select another page from navigation menù. In the widget appears the name of the astrological period (eg. "Waterman"), the right name of the stone (eg. "Lapislazzuli"), but the image of the stone will be not displayed.
If I come back to the home-page, the image will correctly displayed.
I really don't understand what's happens. If someone has an idea what it could be, thank you very much in advance !!!
If you want take a look on the JS, following the link:
http://pastebin.com/8t1PGxgG
Let me know please if you need more information about.
Many thanks
Regards, Ernesto
Environment:
Windows7 PRO
WordPress 4.4.2
XAMPP 3.2.2
Child theme: Catch Evolution Child
Editor: Dreamweaver 8