0

I am using Jquery Countdown module. In this, user can display text message after completing countdown. But I want to display a link after completing countdown.

0

1 Answer 1

2

Have a look at the project page. It says

You can use jQuery Countdown in two different ways, one is using theme('jquery_countdown'), the other is using jquery_countdown_add().

In the following example, we display an alert box saying "You are done!" after counting down from 10...

<?php
  echo '<div class="countdown">10 seconds!</div>';
  jquery_countdown_add(".countdown", array("until" => 10, "onExpiry" => "finished"));
  drupal_add_js("function finished() { alert('You are done!'); }", 'inline');
?>

You can use the above example to achieve your requirement.

2
  • Can you explain?where can i write this code?
    – Dhivya
    Commented Feb 4, 2015 at 7:17
  • Have a look at Readme.txt file under the module folder and follow the instructions. BTW you didn't provide any details to us like where you are using the countdown timer. Commented Feb 4, 2015 at 7:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.