The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Jellyfish Invaders
[resolved] Action on click on the Sprite (3 posts)

  1. Beppe Roncari
    Posted 2 years ago #

    I have another question: would it be possible to add a "click on" event on the sprites?

    I would like for the user to click on the Invaders and be sent to a specific URL. How do I manage that?



  2. Beppe Roncari
    Posted 2 years ago #

    OK, I was able to do that myself with the help of my friend Lorenzo Ridi.

    To make the INVADER clickable we added to the jellyfish_invaders.php file:

    $script.="jQuery('#invader$count').on('click',function(){window.location ='[YOUR_URL]'});\n";

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    Thanks anyway!

  3. Strawberry Jellyfish
    Plugin Author

    Posted 2 years ago #

    Great tip :)

    I hadn't considered having an onclick event. Might look into making this a feature in a future version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jellyfish Invaders
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic