2016-08-18 3 views
1

私はすでにこのギャラリーを表示するプラグインを使用してフォトギャラリーを作った。ユーザーが自分のホームページボタンをon_clickしたとき。クリックしてポップアップボタンをクリック

これを達成する方法がわかりません。ここで私を助けてください。

これは私のボタンのコードです:

<div class="ow-button-base ow-button-align-center"> 
    <a class="ow-button-hover" target="_blank" id="introduction" onclick="intro_on"> 
     <span>Click me to see gallery</span> 
    </a> 
</div> 

これは私のフォトギャラリーコードです:

$(:あなたはjQueryのショー()関数を使用することができ

<div class="huge_it_slideshow_image_wrap_1" style="max-height: 1800px; overflow: visible;"> 
<div id="huge_it_loading_image_1" class="display" style="display: none;"></div> 

答えて

1
$('#introduction span').click(function(){$('#huge_it_loading_image_1').show();}); 
0

".huge_it_slideshow_image_wrap_1")。show();

あなたのCSSファイルでは、表示をnoneに設定する必要があります。

0

この簡単なタスクでは、jqueryは必要ありません。

ドキュメントの下部にjavascriptコードを入力してscriptタグを入力します。

<script> 
    function intro_on() { 
     document.getElementById("huge_it_loading_image_1").style.display = 'block'; 
    }; 
</script> 

それはjavascript関数として実行することができますので、あなたはまた、「)(intro_on」にあなたのhtmlでのonclickを更新する必要があります。

関連する問題