JavaScript-the mouse presses each picture to match the popup content

Source: Internet
Author: User

1. The picture just pressed

2. After the popup content

3. After the popup content

                

{$CATEGORYS [9][catname]}

x

{$CATEGORYS [9][catname]}

  • {pc:content action= "lists" catid= "9" order= "id DESC" num= "4"} {Loop $data $key $val}

    {$val [' title ']}

    {$val [' description ']}

    {/loop} {/PC}
Close

{$CATEGORYS [9][description]}

2. The picture just pressed

                 {pc:content  action="lists" catid="9" order="id DESC" num="4"}                {loop $data $key $val}                                                                                                                

{$val['title']}

{/loop} {/pc}

Master, how to put each picture popup corresponding content? What do you do? By the PHPCMS, this is the syntax.

Reply content:

1. The picture just pressed

2. After the popup content

3. After the popup content

                

{$CATEGORYS [9][catname]}

x

{$CATEGORYS [9][catname]}

  • {pc:content action= "lists" catid= "9" order= "id DESC" num= "4"} {Loop $data $key $val}

    {$val [' title ']}

    {$val [' description ']}

    {/loop} {/PC}
Close

{$CATEGORYS [9][description]}

2. The picture just pressed

                 {pc:content  action="lists" catid="9" order="id DESC" num="4"}                {loop $data $key $val}                                                                                                                

{$val['title']}

{/loop} {/pc}

Master, how to put each picture popup corresponding content? What do you do? By the PHPCMS, this is the syntax.

The first of these methods

Click on the image to use Ajax to get the relevant content inside

The second method of

You can put these pop-up window content first and then click on the image to find the corresponding pop-up window display

The corresponding relationship is less can be used in the second, too many pop-up window with the first kind of bar

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.