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

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){,name,settings);} else { window.opener.location = url;window.opener.focus();}}</script>

-->in body

<script type='text/javascript' language='JavaScript' 
<a href=javascript:popup("");><img 
src='' 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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.