Solved

complicated problem for content display pervent

Posted on 2009-05-14
4
203 Views
Last Modified: 2013-12-12
hi
i have a quiz which loads up once user accept the terms and condition but now i want to display a timer before showing the first question
as soon quiz is ready to load it show like counting 5 4 3 2 1 then load the stuff of the page which include questions and answer and another javascript time
0
Comment
Question by:mattibutt
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:manavsi
ID: 24384903
well, i would recommend you to use a JS pre-loader which can change the text using the settimeout()...
since i see you use php framework, use a JS library like ExtJS, or jQuery etc. with xAjax to perform exactly the task you want.. :)

HTH
Manavsi
0
 
LVL 11

Author Comment

by:mattibutt
ID: 24384999
hi manavsi

i can use jquery but i dont know how i can accomplish this task i am stuck cant think how to begin
0
 
LVL 4

Accepted Solution

by:
manavsi earned 500 total points
ID: 24385054
well, if you might consider using a Progress bar with the text, u may like this... i think..
My first option: JS file is here...
http://www.caktux.ca/files/jquery.loader.js.txt
Demo:: http://www.caktux.ca/staging/poissonblanc/ 
Dont mind the language, see the progress loading of the page.. NO IMAGES PURE CSS...

Other resources:
http://www.developerfox.com/create-web-20-progress-bars-jquery-dhtml-js-css-photoshop/187
The lucid examples of jQuery Progress bar samples... if u dont want progress bar.. but only text.. i think u can thnk again... cant u???... :)

HTH
Manavsi
0
 
LVL 11

Author Closing Comment

by:mattibutt
ID: 31581366
thanks buddy
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question