Jump to content

javascript pr0b


only one

Recommended Posts

im pretty new to javascript, im creating a fishing function, but theres a problem with my second countdown

<table>
<tr>
<td style= align="center" width="250" height="23">
<div id="message_html" class="messagehtml" style="font: Arial; font-weight: normal;   font-size: 13px;   color: black; }">Please enable javascript</div>
</td>
</tr>
</table>			
<script language='Javascript'>
setup=10;
function countdown() 
{
if ((0 <= 100) || (0 > 0))
{
setup--;
if(setup == 0)
{
if (0)
document.getElementById("messagehtml").innerHTML = 'you set up your line';
if (0)
document.getElementById("message_html").innerHTML = 'you set up your line';
document.getElementById("message_html").innerHTML = '<a class="messagehtml"  onclick="cast();">Cast you line</font></a>';
}
if(setup > 0)
{
document.getElementById("message_html").innerHTML = 'seting up line '+setup+'';
setTimeout('countdown()',1000);
}
} 
}
countdown();
function cast()
{	
document.getElementById("message_html").innerHTML = 'casting out line'; 
casting=5;
function countdown2() 
{
if ((0 <= 100) || (0 > 0))
{
casting--;
if(casting == 0)
{
if (0)
document.getElementById("messagehtml").innerHTML = 'you cast out the line';
if (0)
document.getElementById("message_html").innerHTML = 'you cast out your line';
document.getElementById("message_html").innerHTML = '<a class="messagehtml"  onclick="check();">check bait</font></a>';
}
if(casting > 0)
{
document.getElementById("message_html").innerHTML = 'casting out line '+casting+'';
setTimeout('countdown2()',1000);
}
} 
}
countdown();
}


function SetCookie(cookieName,cookieValue,nHours) 
			{
				var today = new Date();
				var expire = new Date();
				if (nHours==null || nHours==0) nHours=1;
				expire.setTime(today.getTime() + 3600000*nHours);
				document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString();
			}
			</script>

 

my countdown2 function isnt countingdown :-\

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.