English 中文(简体)
我愿用同一座椅增加一席以上。
原标题:I would like to add more than one gallery using the same jquery

我对我所知甚少,我很想知道我做什么错了。 我想在一页上放置多个灯塔,但我不知道如何制定这些法规以正确装载。

问题回答

j只“在魔 the上tur”。 减去你在网页上需要的所有html,然后用javascript开始。 了解最容易的方法(虽然不是效率最高)只是要复制你所拥有的法典。

填补空白:

<script language="javascript" type="text/javascript">
   $(document).ready(
   function (){
       $("#pikame1").PikaChoose();
       $("#pikame2").PikaChoose();
       $("#pikame3").PikaChoose();
       ...
   });
</script>

填补空白:

<ul id="pikame1" class ="pikame clearfix">
...
</ul>

<ul id="pikame2" class ="pikame clearfix">
...
</ul>

<ul id="pikame3" class ="pikame clearfix">
...
</ul>

...

确实如此:

.pikame{
 margin-left: 80px;
 }
 .pika_main{
 width:420px;
 margin-top: 100px;
 }

 .pikame li{
    margin:5px;
    margin-top:20px;
    float: left;
    border:1px solid #3e3f41;
    position:relative;
    overflow:hidden;}

/**ADVANCED OPTIONS**/
.pikame li img{position:relative;cursor:pointer;}
.pika_main img{border:2px solid #3e3f41;}
.pika_main{position: relative;margin:0 auto;margin-left:60px; margin-top:32px;}
.pikachoose li{float:left;position:relative;overflow:hidden;list-style:none;}
.pika_play{position:absolute;top:7px;z-index:1;}
.pika_play a{position:relative;margin-left:auto;cursor:pointer;}
.pika_play img{border:none !important;}
.pika_caption{width:100%;height:30px;text-align:center;}
.pika_navigation a{font-size: 12px;color:white;text-decoration: none;}
.pika_navigation a:hover{text-decoration: underline;}
.pika_navigation{padding-top:10px;clear:both;text-align:center;}

Let me know if there are any issues with this, as I have changed the css a bit so as not to be super-redundant, could interfere with existing styles.

您可以通过向每一张彩礼提供独一无二的补贴来人工确定。

  $(document).ready(
  function (){
      $("#pikame1").PikaChoose();
      $("#pikame2").PikaChoose();
      $("#pikame3").PikaChoose();
      ...
  });

或者,你也可以给你们所有爱好者一个共同点名,然后发挥每个功能,一劳永逸地处理。

  $(document).ready(function (){
      $( .pikame ).each(function(){
           $(this).PikaChoose();
      });
  });

the only thing is the css selectors in your css part is pertaining to an element having an specific id. you can also create more css like that with different ul id s or you can also change those selectors to select a class not an id

例如:

 ul#pikame{
   margin-left: 80px;
 }

为此:

 ul.pikame{
   margin-left: 80px;
 }

页: 1 前者对id,后者对 c。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签