User Profile

Collapse

Profile Sidebar

Collapse
Jen O
Jen O
Last Activity: Nov 9 '10, 06:57 PM
Joined: Nov 8 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How do you recommend I get around this? I have this example from my book(below), and it uses the onload with document.write. I believe this is why I am confused.

    Code:
    <script type="text/javascript">
    	window.onload=initAll;
    
    	function initAll(){
    	var allmonths = new Array ("january","february","march","april","may","june","july","august","september","october","november","december")
    ...
    See more | Go to post
    Last edited by Dormilich; Nov 9 '10, 02:55 PM. Reason: please use [CODE] [/CODE] tags when posting code

    Leave a comment:


  • Jen O
    started a topic Why am I getting undefined error in my array?

    Why am I getting undefined error in my array?

    Code:
    <script>
    		window.onload=myday;
    			
    			function myday(){
    				
    			var day=new Array("sunday","monday","tuesday","wednesday","thursday","friday","saturday");
    			
    			var d=new Date();
    			theDay=d.getDay();
    			
    			for (i=0;i<=day.length;i++)
    			{
    					if (i!=theDay)
    				{
    ...
    See more | Go to post
No activity results to display
Show More
Working...