jQuery4PHP Current Release: v1.7.0 - Stable

jQuery version: v1.8.2

jQueryUI version: Stable (1.8.24: jQuery 1.3.2+)

jQuery4php API

Keys

Hide navigator Hide source code

Keystrokes


<?php YsJQuery::usePlugin(YsJQueryConstant::PLUGIN_KEYS); ?>

<span><b>Run the Konami code:</b> To open the dialog.</span>
<h1><b> â â â â â â â â b a</b></h1>

<?php echo YsUIDialog::initWidget('dialogId','style="display:none" title="Basic dialog"') ?>
<p align="justify">
The Konami Code, known in Japan as the Konami Command (ã³ããã³ãã³ã Konami Komando?),
is a cheat code that appears in many Konami video games,[1] although the code 
also appears in some non-Konami games.[2] The code was first used in the 1986 
release of Gradius for the Nintendo Entertainment System[3] but was popularized 
among North American players in the NES version of Contra, for which it was also 
dubbed both the "Contra Code" and "30 Lives Code".
</p>
<?php echo YsUIDialog::endWidget() ?>

<?php
echo
    YsKeys::keystrokes()
      ->_keys('arrow up',
              'arrow up',
              'arrow down',
              'arrow down',
              'arrow left',
              'arrow right',
              'arrow left',
              'arrow right',
              'b','a')
      ->_handler(
        YsUIDialog::build('#dialogId')
          ->_modal(true)
          ->_title("Title")
          ->_width(300)
          ->_height('auto')
          ->_buttons(array(
            'Ok' => new YsJsFunction('alert("Hello world")'),
            'Close' =>  new YsJsFunction(YsUIDialog::close('this')))
          )
      )->execute()
?>

Run the Konami code: To open the dialog.

↑ ↑ ↓ ↓ ← → ← → b a

About

Demos

jQueryUI

Plugins Support - New!

Components - New!

Project Developed by The YepSua Team
SourceForge.net