deansaddigh Posted September 3, 2010 Share Posted September 3, 2010 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 https://forums.phpfreaks.com/topic/212430-help-me-i-need-to-do-this/ Share on other sites More sharing options...
dgoosens Posted September 3, 2010 Share Posted September 3, 2010 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 https://forums.phpfreaks.com/topic/212430-help-me-i-need-to-do-this/#findComment-1106825 Share on other sites More sharing options...
deansaddigh Posted September 3, 2010 Author Share Posted September 3, 2010 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 Link to comment https://forums.phpfreaks.com/topic/212430-help-me-i-need-to-do-this/#findComment-1106842 Share on other sites More sharing options...
deansaddigh Posted September 3, 2010 Author Share Posted September 3, 2010 Its ok i have done it Kind regards Dean Link to comment https://forums.phpfreaks.com/topic/212430-help-me-i-need-to-do-this/#findComment-1106919 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.