![]() |
| ||
| load a script if its a only if its certain time and day 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' |
| ||
| Re: load a script if its a only if its certain time and day 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. |
| All times are GMT -4. The time now is 10:33 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC