Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Help please with implementing Spacegallery
Old 02-24-2010, 08:27 AM Help please with implementing Spacegallery
Average Talker

Posts: 21
Name: Paul
Trades: 0
This is my first jquery implementation, but I can't get it to work, and would appreciate some assistance.

I am trying to implement Spacegallery: www.eyecon.ro/spacegallery/
I have downloaded jquery-1.3.min.js and placed it in subfolder js on my test server. I have also downloaded the Spacegallery files, placing the jquery scrips in the same js folder. The js folder now holds the following scripts:

jquery-1.3.min.js
eye.js
layout.js
spacegallery.js
utils.js

The implementation guide says to "prepare a block level element with some images inside. All you have to do is to select the elements in a jQuery way and call the plugin."

I have created a simple HTML page with the following code that I believe follows this instruction, but something isn't working. I've read the entire jsquery documentation (headache at 11.30pm) but still can't get this code to animate the #myGallery div. Can anyone spot any jquery error in what I have coded below, please, or help me to get it working? (The URL for my test page is http://www.testplace.co.uk/gallery

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="css/gallerycss.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" media="screen" type="text/css" href="css/spacegallery.css" />

<script src="js/jquery-1.3.min.js" type="text/javascript" ></script>
<script type="text/javascript" src="js/eye.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/spacegallery.js"></script>

<script type="text/javascript"><!--
$(document).ready(function(){
$('#myGallery').spacegallery();
});
//--></script>

<script type="text/javascript"><!--
$('#myGallery').spacegallery({loadingClass: 'loading'});
//--></script>

</head>

<body>
<div id="container">
<div id="myGallery">
<img src="http://www.webmaster-talk.com/images/bw1.jpg" alt="Image 1" />
<img src="http://www.webmaster-talk.com/images/bw2.jpg" alt="Image 2"/>
<img src="http://www.webmaster-talk.com/images/bw3.jpg" alt="Image 3"/>
</div>
</div>
</body>
</html>

Last edited by keelbolt; 02-24-2010 at 08:28 AM..
keelbolt is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-13-2010, 01:01 AM Re: Help please with implementing Spacegallery
Junior Talker

Posts: 1
Trades: 0
Try putting the initialization after the "myGallery" div tags and see if that works. It worked for me. (Example below)

Code:
.......
<div id="myGallery">
  <img src="http://www.webmaster-talk.com/images/bw1.jpg" alt="Image  1" />
     <img src="http://www.webmaster-talk.com/images/bw2.jpg"  alt="Image 2"/>
     <img src="http://www.webmaster-talk.com/images/bw3.jpg"  alt="Image 3"/> 
  </div>
</div>

<script type="text/javascript">
     $('#myGallery').spacegallery({loadingClass: 'loading'});
</script>

</body>
zambully is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help please with implementing Spacegallery
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10769 seconds with 12 queries