5thGarage

Just another WordPress site

October 20, 2011
by admin
0 comments

25 jQuery Zoom Plugins Creating Stunning Image Effects

Featured Image Zoomer

This script lets you view a magnified portion of any image upon moving your mouse over it. A magnifying glass appears alongside the image displaying the magnified area on demand. The user can toggle the zoom level by using the mousewheel.  It’s great to use on product images, photos, or other images with lots of details you want users to be able to get into on command.

Cloud Zoom

Cloud Zoom is a jQuery plugin comparable to commercial image zoom products such as Magic Zoom. Compared to the popular jQZoom plugin, Cloud Zoom is smaller, has more features and more robust compatability across browsers.

Epic Image Zoom

With this jQuery Zoom plugin you can add zoom-in functionality to any image with configurable magnification level and magnifier appearance. It provides built-in image preloading.

DOWNLOAD / DEMO by CodeCanyon (premium plugin)

zoomooz

Zoomooz is an easy-to-use jQuery plugin for making any web page element zoom.

jQuery Image Zoom and Panning Plugin

This is a jQuery plugin that creates a zoom and panning effect on an image. The plugin requires two image versions, one small preview and one larger for zoom and panning. This is a nice way to view details on an image.

DOWNLOAD / DEMO by CodeCanyon (premium plugin)

 

June 21, 2011
by admin
0 comments

Move MovieClip to top

A quick and easy way to move a movieclip to top of everything in Actionsctipt 3.0:

function moveToTop( mc:DisplayObject ):void
{
(mc.parent != null) ? mc.parent.setChildIndex(mc, mc.parent.numChildren-1) : null;
}

June 21, 2011
by admin
0 comments

Javascript redirect page

Simple Redirect Page

<script type="text/javascript">
<!--
window.location = "http://www.google.com/"
//-->
</script>

Time Delayed Redirect

<html>
<head>
<script type="text/javascript">
<!--
function delayer(){
    window.location = "../javascriptredirect.php"
}
//-->
</script>
</head>
<body onLoad="setTimeout('delayer()', 5000)">
<h2>Prepare to be redirected!</h2>
<p>This page is a time delay redirect, Hang on while we redirect to another page.</p>

</body>
</html>

June 21, 2011
by admin
0 comments

Closing a jQuery UI Dialog When clicked outside of the dialog

I was searching for a way to close my modal dialog box when clicked outside of the dialog and i found a very good article by Ryan Jeffords at:

http://www.ryanjeffords.com/blog/entry/closing-a-jquery-ui-dialog-when-the-dialog-loses-focus

Thanx Ryan
<script type="text/javascript">

//Wait for the document to load
$(document).ready(function() {

//Create the dialog and open it
$("#dialog").dialog();

//Bind to the ui-widget-overlay and watch for when it is clicked
$('.ui-widget-overlay').live("click", function() {
//Close the dialog
$("#dialog").dialog("close");
});

});

</script>

June 21, 2011
by admin
0 comments

Fscommand exec problem for mac in flash CS5

For some reason the fscommand(“exec”,”some_app.app”); does not work when you publish a mac projector through flash cs5.

the fscommand(“exec”,”some_exe.exe”); works fin when you publish a windows projector through flash cs5.

the work around for mac which i came to know is:

navigateToURL( new URLRequest("file:///Volumes/Name of Disc/your pdf file.pdf"), "_blank");

this would not open in a browser window but open the pdf in acrobat.

check out this forum on adobe’s website:

http://forums.adobe.com/thread/790499?decorator=print&displayFullThread=true

June 21, 2011
by admin
0 comments

Basics of Graph Api – Facebook Api

I recently started developing a Facebook App, and i thought of sharing my experiences with all the people trying to get them started to build there own first app for facebook. By the way this is my first ever post in the world of blogging, so if i make any mistake or anything is not explained properly please lemme know and i will try to correct it. :)

Here is a link to get u started with Facebook apps.

http://developers.facebook.com/docs/guides/canvas/

You can use these sdks:

http://developers.facebook.com/docs/sdks/

You can download the sdks code from the link above, in this example iam using php-sdk. The following code is a part of the example.php in the code provided in the php-sdk download.

Create our Application instance (replace this with your appId and secret).

$facebook = new Facebook(array(
'appId'  => 'YOUR API ID',
'secret' => 'YOUR API SECRET',
'cookie' => true
));

$session = $facebook->getSession();

$me = null;

Session based API call.

if ($session) {
 try {

 $uid = $facebook->getUser(); // gets user id
 $me = $facebook->api('/me');
 $friends = $facebook->api('/me/friends'); // gets all the friends of the user
 $photos = $facebook->api('/me/photos'); // gets all user photos 

$albums = $facebook->api('/me/albums'); // gets all user albums
 $useralbums = $albums['data']; // store the album array
 foreach ($useralbums as $key => &$album) {
  $albumphotos = $facebook->api('/'.$album['id'].'/photos');
 }

 } catch (FacebookApiException $e) {
 error_log($e);
 }
}