English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

create a document that reminds your users to register for your site. Save the counter in a cookie and display a message reminding users to register every fifth time they visit your site. Create a form in the body of the document that includes text boxes for a user's name and e-mail address along with a Register button. and thank you

2007-12-02 16:02:29 · 5 answers · asked by Anonymous in Computers & Internet Programming & Design

and this is not my homewrok it is for my advance javascript site and for some reason i cannot get it to work

2007-12-02 16:08:32 · update #1

also can you guys liek show me the whole code on answers and it is javascript but in html format

2007-12-02 16:41:54 · update #2

5 answers

I've put hard returns into less than optimal places, and removed formatting whitespace, in order to fit all of the code into the Yahoo! interface. 'Tain't purty, but you should be able to see all of the code. Replace the string "break" with "br" to get the proper display appearance in the registration dialog and page-filler (Yahoo would replace the break tag with breaks, if I used them, even if escaped).










some page content goes here...
some page content goes here...
some page content goes here...
some page content goes here...




2007-12-03 03:22:52 · answer #1 · answered by richarduie 6 · 0 0

I think javascript cannot access user's cookie directly. Correct me if im wrong

What u can do is to have a server side script to retrieve the cookie and check the counter. If the counter match, then just include a simple alert function in body onload.

Eg with php:
onload="alert(please register');" >
Your content...

2007-12-02 16:34:34 · answer #2 · answered by -skangmy- 2 · 0 1

Sites like Dynamic Drive or HotScripts have these scripts in downloadable form. You'd have to customize them a bit for your purposes, but the main part of such scripts are already there.

The one thing to remember is that if the user has javascript turned off on their browser, then all your hard work and scripting will go for naught.

2007-12-02 16:17:59 · answer #3 · answered by BillH 5 · 0 1

Did you start/try? What do you have so far that is not working?

2007-12-02 16:15:13 · answer #4 · answered by ѕσмєgυy 7 · 0 1

Am I going to get paid to do you homework? :P

2007-12-02 16:07:01 · answer #5 · answered by mdigitale 7 · 0 1

fedest.com, questions and answers