Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
- <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
- <script src="//ajax.googleapis.com/ajax/libs/jquerymobile/1.4.3/jquery.mobile.min.js"></script>
- <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" />
- <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jquerymobile/1.4.3/jquery.mobile.min.css" />
- // CAPTURE MENU BUTTON CLICK EVENT
- // THIS WORKS FINE, BUT ONLY FOR THIS I NEED THE WHOLE jQueryUi AND jQueryMobile ???
- $( function() {
- $( "#aMenuMobile" ).bind( "tap", tapHandler );
- function tapHandler( event ){
- $("#tdMenuMobile").toggle();
- }
- });
- // CAPTURE MENU BUTTON CLICK EVENT
- // THIS DOESN"T WORK WELL.
- $( function() {
- $( "#tdMenuPc a, #tdMenuMobile a" ).bind( "tap", tapHandler );
- function tapHandler( event ) {
- $(window).location(event.target.href());
- }
- });
- <td id="tdMenuPc">
- <a href="index.php?p=home">ホーム</a>
- <a href="index.php?p=german">ドイツ語</a>
- <a href="index.php?p=english">英会話</a>
- <a href="index.php?p=teacher">先生</a>
- <a href="index.php?p=access">アクセス</a>
- <a href="index.php?p=inquiry">お問い合わせ</a>
- </td>
- </tr>
- <tr>
- <td id="tdMenuMobile">
- <a href="index.php?p=home">ホーム</a>
- <a href="index.php?p=german">ドイツ語</a>
- <a href="index.php?p=english">英会話</a>
- <a href="index.php?p=teacher">先生</a>
- <a href="index.php?p=access">アクセス</a>
- <a href="index.php?p=inquiry">お問い合わせ</a>
- </td>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement