Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-18-2013, 01:42 AM   PM User | #1
khaja.jab
New to the CF scene

 
Join Date: Jun 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
khaja.jab is an unknown quantity at this point
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>
khaja.jab is offline   Reply With Quote
Old 01-18-2013, 07:52 PM   PM User | #2
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
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
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:07 AM.


Advertisement
Log in to turn off these ads.