Computer Geeks

Computer Geeks

Geek Shop

Geek News

Geek Stuff

Science Geek

Computer Gaming

Linux Chat

Building Websites

Computer Forums

Computer Help Forum

Computer Hardware Forum

Computer Software Programs


Go Back   Computer Forums > Building Websites
FAQ Community Calendar Today's Posts Search

Building Websites This section covers all aspects of publishing, developing and maintaining websites. Topics include: website design, graphic design, website programming, web hosting, website marketing (SEO, link exchange, publicity, advertising), monetization & etc.

Computer Geeks
» Active Discussions
Computer Geeks
No Threads to Display.
» Other Websites
- Software Publishing

- Server Hardening
Reply
 
Thread Tools Display Modes
  #1  
Old 04-08-2010, 09:13 PM
JavaScriptBank JavaScriptBank is offline
Senior Member
GB Guru
 
Join Date: Sep 2009
Posts: 180
Default Good and Nice JavaScripts

Good and Nice JavaScripts

Calculator for Sunday

Use this JavaScript to figure out when Sunday will be in a given point of time.... detail at JavaScriptBank.com - 2.000+ free JavaScript codes


How to setup

Step 1: Use JavaScript code below to setup the script
JavaScript
Code:
<script language="JavaScript">
<!-- Begin
function WeekStart(Month, Year, StartOfWeekDay) {
  _Date = new Date(Year, Month, 1)
  _LastDate = new Date()
  _LastDate = new Date(_Date)
  _LastDate.setMonth(_Date.getMonth() + 1)
  _LastDate.setHours(_LastDate.getHours() - 24)
  _Returns = new Array()
  if (StartOfWeekDay == null) {
    StartOfWeekDay = 0
  }
  var I = 1
  while (I <= _LastDate.getDate()) {
    _Date.setDate(I)
    if (_Date.getDay() == StartOfWeekDay) {
      _Returns[_Returns.length] = new Date(_Date)
      I += 6
    }
    I++
  }
  return(_Returns)
}
//  End -->
</script>
	<!--
    	This script downloaded from www.JavaScriptBank.com
    	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
	-->
Step 2: Place HTML below in your BODY section
HTML
Code:
<form>Month <select name="Month"><option value="0">Jan
</option><option value="1">Feb
</option><option value="2">Mar
</option><option value="3">Apr
</option><option value="4">May
</option><option value="5">Jun
</option><option value="6">Jul
</option><option value="7">Aug
</option><option value="8">Sep
</option><option value="9">Oct
</option><option value="10">Nov
</option><option value="11">Dec

</option></select><br>
Year <input type="text" name="Year" size="4" maxlength="4"><br>
<input type="button" value="Get Days" onclick="alert(WeekStart(document.forms[0].Month.value, document.forms[0].Year.value, 0))">
</form>
	<!--
    	This script downloaded from www.JavaScriptBank.com
    	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
	-->





JavaScript Vertical Marquee - JavaScript DHTML analog clock - JavaScript Backwards Text
Quote:
Originally Posted by Copyright
The Site may provide, or third parties may provide, links to non-JavaScriptBank.com Internet World Wide Web sites or resources. Because JavaScriptBank.com has no control over such sites and resources, you acknowledge and agree that JavaScriptBank.com is not responsible for the availability of such external sites or resources, and does not endorse and is not responsible or liable for any content, advertising, products, or other materials on or available from such sites or resources. You further acknowledge and agree that JavaScriptBank.com shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods or services available on or through any such site or resource.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Good and Nice JavaScripts JavaScriptBank Building Websites 0 03-19-2010 09:30 PM
Good and Nice JavaScripts JavaScriptBank Building Websites 0 01-28-2010 11:00 AM
Good and Nice JavaScripts JavaScriptBank Building Websites 1 01-28-2010 10:53 AM
Good and Nice JavaScripts JavaScriptBank Building Websites 0 01-21-2010 08:52 PM
Good and Nice JavaScripts JavaScriptBank Building Websites 0 12-27-2009 08:04 PM

Powered by vBadvanced CMPS v3.2.3

All times are GMT -5. The time now is 06:26 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HTML Help provided by HTML Help Central.