Please can someone kindly help where or how I can place this codes with Muse(Is this supported?). I have tried the arbitrary HTML but it is behaving funny!
<div id="loading_layer"><img src="images/loading.gif" alt="preloader" width="64" height="64" border="0" /></div>
You seem to be trying to call a function that does not exist. In order to call that function, you need to write a script for it. Incorporating these kinds of actions in Muse is pretty difficult and tricky. You'll have to edit the code manually outside of Muse, and it might make it hard to go back into Muse to update the site later on...
You need a script that looks like this in your header.
*Please remember that altering the code can cause Muse to act really funny when you try to come back to the site in Muse
Hi Julia and toplovely,
Editing the codes generated by Muse after publishing/exporting is not a supported work flow as the changes made are not reflected in Muse and you will have to edit the codes everytime after you publish.
Better alternative would be to insert the codes in .muse file itself.
For, <body onload="hideLoadingLayer();">
You can use the Object -> Insert HTML menu option.
For the script like the one Julia provided, you can go to Page Properties->Metadata.
Let me know if you need more clarification.
Thanks Julia. I have that script in my head section so it was not a matter of the absence of the script. The issue was that Muse did not execute the <body onload .... stuff when inserted as an arbitrary html. Infact Muse painted it red in the code it generated.
For Maurya, Muse does not support adding <body onload... except their is something else am missing you want to share. Actually the code in the body onload was for a preloader to display before the webpage is displayed but It didn't work correctly within Muse, so I had to to take the site to DW to add the body onload there and it worked like charm. If you want a reference of the site, I can email it to you on request.
Thanks Julia and Maurya.
Europe, Middle East and Africa