Jump to content

help me i need to do this ?


deansaddigh

Recommended Posts

I need to invoc the code below but have no idea on how to it.

 

Can anyone help

 

Invocation code

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.

$('#myGallery').spacegallery({loadingClass: 'loading'});
                

Link to comment
Share on other sites

well you need to create a div (or other type of block) with the ID and put an image in it...

 

<div id="myGallery">
   <img src="/path/to/som/image.png" alt="some image">
</div>

 

and you should make a JavaScript call to the function they indicate

 

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

 

or something like that...

(not easy with the little info you supply)

Link to comment
Share on other sites

Hey thanks for the reply, i have done all that, as thats what i thought i was meant to do , it still doesnt work at all.

 

this tells you how to implement it.

 

http://www.eyecon.ro/spacegallery/#implement

 

And i have done exactly that to no avail what so ever heres my sections of code.

 

<link href="/style.css" rel="stylesheet" type="text/css" media="screen" />
<link rel="stylesheet" media="screen" type="text/css" href="/css/spacegallery.css" />
<link rel="stylesheet" media="screen" type="text/css" href="/css/custom.css" />
<script type="text/javascript" src="/js/jquery.js"></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" src="/js/layout.js"></script>

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

 

echo '<div id="myGallery" class="spacegallery">';
			while($copiedrow = mysql_fetch_array($copiedresult))
			{
				 $imagename = $copiedrow ['image_name'];
				 $image = '/admin/'.$copiedrow['path'] . '/' . $copiedrow ['image_name'];
			            
            	//	echo '<a href="'.$image.'" rel="shadowbox"  title="'.$imagename.'" class="floatright"><img src="'.$image.'" width="150" height="150"/></a>';

			    echo '<img src="'.$image.'" alt="" />';        
			 }
	      	echo '</div>';

Any help would be brilliant because i have been trying to implement this since 8 oclock last night

 

Kind regards

Oh also heres the link to my page where its supposed to work.

http://www.languageschoolsuk.com/school_details/Kings_Colleges_Bournemouth

Dean :confused:

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.