max and other javascript gurus
how would i change the text (in max's game below) that tells u if ur guess was right to a graphic without having the page reload/refresh?
http://atomicpixels.com/files/guessnum.html
Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?
Mark Hensler posted this at 21:11 — 16th November 2000.
He has: 4,048 posts
Joined: Aug 2000
I'm not really a guru... I'm just good at finding answers.
Vincent is the guru.
Here's an idea.. How bout make a layer with the image on it. Start the page with the layer invisible. When they get the correct answer, show the layer with the image on it.
Mark Hensler
If there is no answer on Google, then there is no question.
fairhousing posted this at 00:54 — 17th November 2000.
They have: 1,587 posts
Joined: Mar 1999
um, and how would one do that (layer), hehe?
do u have an example script with layer in it anywhere?
all i really need is to see a script that uses a command then i'll figure it out and hack it to my needs.
Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?
fairhousing posted this at 08:45 — 17th November 2000.
They have: 1,587 posts
Joined: Mar 1999
thx for the tip max, it led me towards the right direction.
thx again
Vincent Puglia posted this at 01:31 — 21st November 2000.
They have: 634 posts
Joined: Dec 1999
Hi fairhousing,
Max has it (thank you, Max; but 'guru' is a word I reserve for one or two people I know
You can put all of the images you need (right, wrong, not a number, etc) in an array and then simply pop the div with the proper image source. Something like:
if (answer == number) picSrc = myPics[0];
if (answer > number) picSrc = myPics[1];
...etc...
If you are still wondering how to do the dHTML, see the dHTML scripts/tutorials at my site, especially the "dHTML: an Introduction" one.
Vinny
Where the world once stood
the blades of grass cut me still
fairhousing posted this at 06:35 — 21st November 2000.
They have: 1,587 posts
Joined: Mar 1999
thx
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.