User Name Password Register
DaniWeb IT Discussion Community
All
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 397,836 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,542 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: 1237 | Replies: 1
Join Date: Jun 2006
Location: austin,tx
Posts: 1
Reputation: andyux is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
andyux andyux is offline Offline
Newbie Poster

Help load a script if its a only if its certain time and day

  #1  
Jun 2nd, 2006
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>
Last edited by tgreer : Jun 2nd, 2006 at 3:27 pm. Reason: Added CODE tags.
AddThis Social Bookmark Button
Reply With Quote  

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 7:33 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC