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
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    popup image link

    Code:
    Hello friends....
    Please help me... This is my popup window script...
    i want to open one window when i click on that image...
    
     
    <script type="text/javascript">
    $(function()
    {
        $(window).bind('load', 
            function(e) 
            {
    		
                $.colorbox({opacity:0.3, href:"css/images/popup.gif"});
    
            });
    });
    </script>

  • #2
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    Code:
    <script type="text/javascript">
    $(function(){
    
                $('.myclass').colorbox({opacity:0.3, href:"css/images/popup.gif"}); for all elements with a class of "myclass"
     $('#myID').colorbox({opacity:0.3, href:"css/images/popup.gif"}); for all elements with an ID of "myID"
    });
    </script>
    see here: http://www.jacklmoore.com/colorbox/guide


  •  

    Posting Permissions

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