Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 173476

Embedding Javascript and HTML nto Adobe Muse

$
0
0

I am trying to embed javascript for dynamic text into my Adobe Muse site but I can't seem to get it to work.

 

Here is my code:

 

HTML:

 

<spanid="spanDate"></span>

 

Javascript:

   <scripttype="text/javascript">
  
var months =['January','February','March','April','May','June','July',
'August','September','October','November','December'];  
var tomorrow =newDate();
tomorrow
.setTime(tomorrow.getTime()+(1000*3600*24));  
document
.getElementById("spanDate").innerHTML = months[tomorrow.getMonth()]+" "+ tomorrow.getDate()+", "+ tomorrow.getFullYear();
  
</script>


I am placing the Javascript under metadata in the page properties. I tried on the individual page and on the master page. And I am placing the HTML with the Insert HTML option.


I can't seem to get the code to populate properly though. I tried the same code on a test site and it worked just fine.


Any and all advice is greatly appreciated!


Viewing all articles
Browse latest Browse all 173476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>