•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 374,048 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,913 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1171 | Replies: 1
![]() |
•
•
Join Date: Jun 2006
Location: austin,tx
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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
-->in body
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><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> Last edited by tgreer : Jun 2nd, 2006 at 3:27 pm. Reason: Added CODE tags.
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.
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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- Forcing a script to load in Safari -- help needed (JavaScript / DHTML / AJAX)
- Recording time stamp (PHP)
- Having roblems using PHP to send info as text file (PHP)
- IE server errors, unable to download (Web Browsers)
- C++ is dying a slow death (C++)
- himem.sys file causing windows not to load (Windows 9x / Me)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Downloading a File from Server using JavaScript
- Next Thread: Need FireFox refrence in javascript



Linear Mode