• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

jQuery Programming Question

Illusio

Golden Member
I'll preface this with my programming skill are pretty lacking when it comes to javascript. I'm trying to get 2 scripts to place nice together.

I have a slideshow using this script:
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

And am trying to do a popup using this one:
http://colorpowered.com/colorbox/

However, when I add the code for the second one, the first will stop working and neither will work. I have no idea why it's doing that. I've narrowed it down to when I add this bit of code, it stops working:

<script>
$(document).ready(function(){
//Examples of how to assign the ColorBox event to elements
$(".mail").colorbox({width:"45%", height:"45%", iframe:true});
});
</script>

Any help would be greatly appreciated.
 
Last edited:
I'll preface this with my programming skill are pretty lacking when it comes to javascript. I'm trying to get 2 scripts to place nice together.

I have a slideshow using this script:
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

And am trying to do a popup using this one:
http://colorpowered.com/colorbox/

However, when I add the code for the second one, the first will stop working and neither will work. I have no idea why it's doing that. I've narrowed it down to when I add this bit of code, it stops working:

<script>
$(document).ready(function(){
//Examples of how to assign the ColorBox event to elements
$(".mail").colorbox({width:"45%", height:"45%", iframe:true});
});
</script>

Any help would be greatly appreciated.

Looks like you are initialization the colorbox improperly. I don't have experience with that widget, but the code looks proper. The parameters passed into colorbox() however is suspect, so verify that it is valid.
 
Looks like you are initialization the colorbox improperly. I don't have experience with that widget, but the code looks proper. The parameters passed into colorbox() however is suspect, so verify that it is valid.

I have gotten the color box to work locally, as well as on the site (if I take out the slideshow code), so I think that is working properly.
 
Back
Top