PDA

View Full Version : need javascript


StickMaker
11-30-2006, 02:00 PM
Hope this is the correct place for this question.

What I want to do is have a webpage which asks a question, e.g.
"What is your name?"
and when the user enters a name, e.g. "Bob" a button pops up with "are you ready?"
The user clicks that button and the page then tells the visitor:
"Good morning, Bob; nice to see you"
(or the button could be there from the beginning; it does not have to pop up)

Just want this to learn how to do this and hope I can carry on from there. I am assuming I need a javascript to do this.

BonRouge
11-30-2006, 02:41 PM
This is half -way to what you want: http://bonrouge.com/demos/jscookie.htm

It takes the users' name and stores it in a cookie. When they return to the site, the script reads the cookie and says hello to the user. I hope it helps.

Seife
11-30-2006, 03:27 PM
lol thats cool bonrouge...think you could do that on myspace?

RysChwith
11-30-2006, 05:28 PM
I'm pretty sure MySpace blocks all JavaScript.

Rys