Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Nov 2005
    Posts
    750
    Thanks
    138
    Thanked 1 Time in 1 Post

    Incorporating a lightbox?

    Hello

    I have a page here:

    http://stevehigham59.7host.com/jQuery//index3.html

    There is a link on it which loads a light-box. the script behind this is:

    Code:
    <body>
            <div id="contact-form">
           <a class="contact" href="#">Demo</a></div>
               </body>
    It is an effect I like and would like to use it on another site here:

    http://stevehigham59.7host.com/proof...nu/index1.html

    For example, I would like the light box to work when the site visitor clicks on the email icon. The script which generates the 'Apple' menu icons is this:

    Code:
    <div class="dock" id="dock">
      <div class="dock-container">
     <a class="dock-item" href="#"><img src="images/email.png" alt="contact" /><span>Contact</span></a> 
    </div>
    </div>
    I am having some difficulty putting them together, not least because the first script above (lightbox) uses

    <a class="contact" href="#">Demo</a>,

    while the menu script uses

    <a class="dock-item" href="#">

    Any suggestions, please?

    Thanks.

    Steve

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    you can use howmany class names you want inside a class attribute like that:
    Code:
    <a class="contact dock-item" href="#">Demo</a>,
    this is the problem? or I misunderstand what you ask?

    best regards


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •