Open Image in Color Box


<script src=”js/jquery.colorbox.js” type=”text/javascript”></script>
<script type=”text/javascript”>
$(document).ready(function(){
//Examples of how to assign the Colorbox event to elements
$(“.group4”).colorbox({rel:’group4′, slideshow:true});
//Example of preserving a JavaScript event for inline calls.
$(“#click”).click(function(){
$(‘#click’).css({“background-color”:”#f00″, “color”:”#fff”, “cursor”:”inherit”}).text(“Open this window again and this message will still be here.”);
return false;
});
});
</script>

<a class=”group4″  href=”ads_image/<?php echo $imgre[‘img_name’]; ?>” title=”Nice Image”><img src=”ads_image/<?php echo $imgre[‘img_name’]; ?>” width=”100″ height=”70″ /></a>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s