Any help or direction is appreciated - i have a script that can write(text) something, but i dont know how to get it to run another script- sorry, it sounds elemental, just learning- thanks!

intead of when true or false write (text), i need to insert another script-
so if its Mon-Sat, 8a-6p, i will get this other script to run (live help script), otherwise, nothing.

the script that we want only to appear certain hours/days (image with the link) on the page

http://proof.grantham.edu/index-call-me.html

The goal is to have the call me now graphic appear only as follows:

1. 8am to 9pm Central time Monday – Thursday
2. 8am to 6pm Central time Friday

the script is

-->in head

<script type="text/javascript">function popup(url,name){ var settings ="height=440, width=700, top=150, left=150, scrollbars=no, menubar=no, toolbar=no, location=no, status=no, titlebar=no, resizable=no"; if (!window.opener || window.opener.closed){ window.open(url,name,settings);} else { window.opener.location = url;window.opener.focus();}}</script>

-->in body

<script type='text/javascript' language='JavaScript' 
src='http://s1.getabby.com/clients/granthameducation/c2c_grantham.inc'></script><noscript>
<a href=javascript:popup("http://s1.getabby.com/clients/granthameducation/callform.asp");><img 
src='http://www.getabby.com/clients/granthameducation/call_button.gif' alt='Eidoserve Click to Call'></a></noscript>

Your message is very hard to read, because of the writing style. I don't get a clear picture of what you're trying to do. You want a script that will write/run another script based on the date?

The proper way to do that would be to have a single script which defines various functions. You call the function you want to run, based on the date. There is no need to "write" anything dynamically.

This article has been dead for over six months. Start a new discussion instead.