Jump to content

Hugo

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Hugo

  • Rank
    Newbie
  1. hey guys, read your replies. Thank you! 9 out of 10 times my the error is caused by a tiny mistake, like this undeclared variable. thank you both. I toned down the value of p as you suggested, justsomeguy. Thank you!
  2. I'm sorry to bother you again, but I can't seem to get it to work when I add my own touch to your examples. This is what I got: function fibonacci() {var b=document.getElementById("pairs").valuevar m=document.getElementById("months").valuevar r=document.getElementById("kids").valuevar l=document.getElementById("maxage").valuevar table=document.getElementById('myTable')var p = 1.6180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893911374var z = 1var y = 1var i = 0r = r/2l = l*12for (z=1; z <= l; z++){ p = p*p}for (y=1; y < m; y++){ x = x + r*i -
  3. Very cool man! It works!One tiny question: How do I invert the table order? Right now the highest 'month' is on top, and the lowest is on the bottom. I'd like to invert that, is that possible?
  4. Thank you very much, I will look into it. I'll let you know if it worked.Thanks a bunch
  5. Hi people,I need some help. What this is about: Fibonacci numbers, calculation of a Rabbit's population size after x months.There are mainly 2 variables that matter: the number of months (m), and the predicted population size (x).What I'd like to archieve: A table that is being created after the form with months and starting number of rabbits has been filled in.something like this:Month m Population size x[0]Month m+1 Population size x[1]Month m+2 Population size x[2]Here's some code I already have: function fibonacci() {var b=document.getElementById("rabbitpairs").valuevar m=docume
  6. hey that's funny. I copied it back from my post into my html page, and it works indeed I am 99% sure I just copied and pasted it right from the html into my post when I posted it.anyway, thank you for testing, sorry for wasting your time..-Hugo
  7. so.. nobody knows how to do a rollover on a link and the navigation-slide thingie at the same time?[bump]
  8. Hey all,I'm trying to make a link which has the 'slide-navigation' - javascript snippet, but there should also change an image when moving the mouse over the link. Some background info:The images I want to use in the rollover are 'arrow.gif' and 'arrow1hover.gif', both 10 times 10 pixels in size.This is the code I have right now, starting with the HTML part: <td><img src="arrow.gif" width="10" height="10" name="pic2" /><b> </b><a href="index.htm" id="h2" class="leftlink" target="_top" onMouseover="shiftMe('h2','l',7);lightup('pic2')" onMouseout="shiftMe('h2','r',7)
×
×
  • Create New...