Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding HTML signature with Javascript to Notes 7.0.2

Status
Not open for further replies.

Bandenjamin

Programmer
Oct 18, 2005
649
US
Hey all have a somewhat tricky one.

I've got an html file with the following script

Code:
<span><script type="text/javascript">
var d=new Date()
theDay=d.getDay()
switch (theDay)
{
case 1:
  document.write("Before the first year nobody gave it a chance. Now, 36 years later, 

everybody knows Monday Night Football</br><b>Frank Gifford</b>")
  break
case 2:
  document.write("Work is an evil to be avoided.</br><b>Mark Twain</b>")
  break
case 3:
  document.write("Once a Raider, always a Raider.</br<b>Al Davis<b>")
  break
case 4:
  document.write("This must be Thursday. I never could get the hang of 

Thursdays.</br><b>Douglas Adams</b>")
  break
case 5:
  document.write("Finally Friday")
  break
case 6:
  document.write("Super Saturday")
  break
case 0:
  document.write("Sleepy Sunday")
  break
}
</script></span>
</body>

</html>

When I open this in my browser (ie and/or firefox) it seems to work fine but if I try to load this as my html signature it won't attach at all and there are no error messages. If I had some plain text to the body of the html it will show that, it just doesn't appear to be executing the Javascript.

I've checked all the FAQ's and forums I can think of for any old posts and there was one from R5 that said Javascript wasn't supported but I thought it was in R7.

Any ideas/suggestions are greatly appreciated. Does anyone see what I'm doing wrong here?


--Dan
Whenever you find yourself on the side of the majority, it is time to pause and reflect.
Mark Twain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top