Studying the source of this script, he simply writes the binding with document.write() :
document.write("<a href='http://www.ParsTools.com/'>1389/1/31</a>");
You might want to include this script inside a <div> , and then wire the binding in that <div> using CSS:
<div id="calendar"> <script src="http://www.parstools.net/calendar/?type=2"></script> </div>
Then you should also add the following CSS class definition:
div#calendar a { color: red; }
The following is a complete example:
<!DOCTYPE html> <html> <head> <title>Simple Demo</title> <style type="text/css"> div#calendar a { color: red; } </style> </head> <body> <div id="calendar"> <script src="http://www.parstools.net/calendar/?type=2"></script> </div> </body> </html>
source share