Go Back   Dynamic Drive Forums > DD Scripts > Dynamic Drive scripts help
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 07-12-2008, 11:31 AM
Sof Sof is offline
Junior Coders
 
Join Date: Feb 2008
Posts: 17
Thanks: 4
Thanked 0 Times in 0 Posts
Default Cmotion image gallery help

Hi,

I am trying to install this picture gallery in my site but I cannot get it to work. Can anyone help me with this. I have done what it says in the instructions.

Here's the url for the page. I want the image gallery to display in the bottom div but no luck..

Please....
Reply With Quote
  #2  
Old 07-12-2008, 04:38 PM
Marco Marco is offline
Junior Coders
 
Join Date: Jul 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

1.) The body onload is causing trouble (delite)
2.) Make sure that you downloaded the motiongallery.js file to your html folder?
3.) With this code inside the body the slider will work:
<div id="motioncontainer" style="position:relative;overflow:hidden;">
<div id="motiongallery" style="position:absolute;left:0;top:23px;white-space: nowrap;">
<nobr id="trueContainer">
<a href="#"><img src="../imggallery/g1.jpg"></a><a href="#"><img src="../imggallery/g2.jpg"></a><a href="#"><img src="../imggallery/g3.jpg"></a><a href="#"><img src="../imggallery/g4.jpg"></a><a href="#"><img src="../imggallery/g5.jpg"></a><a href="#"><img src="../imggallery/g6.jpg"></a></nobr></div></div>

Saludos de Hamburgo
Reply With Quote
  #3  
Old 07-12-2008, 05:21 PM
Sof Sof is offline
Junior Coders
 
Join Date: Feb 2008
Posts: 17
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Marco View Post
1.) The body onload is causing trouble (delite)
2.) Make sure that you downloaded the motiongallery.js file to your html folder?
3.) With this code inside the body the slider will work:
<div id="motioncontainer" style="position:relative;overflow:hidden;">
<div id="motiongallery" style="position:absolute;left:0;top:23px;white-space: nowrap;">
<nobr id="trueContainer">
<a href="#"><img src="../imggallery/g1.jpg"></a><a href="#"><img src="../imggallery/g2.jpg"></a><a href="#"><img src="../imggallery/g3.jpg"></a><a href="#"><img src="../imggallery/g4.jpg"></a><a href="#"><img src="../imggallery/g5.jpg"></a><a href="#"><img src="../imggallery/g6.jpg"></a></nobr></div></div>

Saludos de Hamburgo
Hi Marco,

I have done what you said there. Deleted the body on load and put your code into the div where I want the gallery to show. But it is still not working. I have put the motiongallery.js in both my scripts folder and my html folder.

Code:
<!-- Do not edit IE conditional style below -->
<!--[if gte IE 5.5]>
<style type="text/css">
#motioncontainer {
width:expression(Math.min(this.offsetWidth, maxwidth)+'px');
}
</style>
<![endif]-->
<!-- End Conditional Style -->
<script type="text/javascript" src="../scripts/motiongallery.js">

/***********************************************
* CMotion Image Gallery- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
* Modified by Jscheuer1 for autowidth and optional starting positions
***********************************************/

</script>
<link href="../css/gallerystyle.css" rel="stylesheet" type="text/css" />
Code:
<div class="leftwrapper">
  <div class="second2"><div id="motioncontainer" style="position:relative;overflow:hidden;">
<div id="motiongallery" style="position:absolute;left:0;top:23px;white-space: nowrap;">
<nobr id="trueContainer">
<a href="#"><img src="../imggallery/g1.jpg"></a><a href="#"><img src="../imggallery/g2.jpg"></a><a href="#"><img src="../imggallery/g3.jpg"></a><a href="#"><img src="../imggallery/g4.jpg"></a><a href="#"><img src="../imggallery/g5.jpg"></a><a href="#"><img src="../imggallery/g6.jpg"></a></nobr></div></div>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
  </div>


</div>
Reply With Quote
  #4  
Old 07-12-2008, 05:44 PM
jscheuer1's Avatar
jscheuer1 jscheuer1 is offline
No Kidding?
 
Join Date: Mar 2005
Location: SE PA USA
Posts: 19,005
Thanks: 19
Thanked 1,135 Times in 1,121 Posts
Blog Entries: 3
Default

You've made progress, now in you stylesheets make these changes:

Code:
.leftwrapper {
	width:auto;
	height:210px;
	float:left;
	padding-top: 10px;

}
Code:
.second2 {
	float:left;
	width:816px;
	height:210px;
	border: thin none #FFFFCC;
	margin-left: 20px;
	margin-right: 10px;
	background-color: #FFFFCC;
}
Code:
#motioncontainer {
	height: 210px;
	width: auto;
}
__________________
WWWWWWWWWWWW
- John
________________________

Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Reply With Quote
The Following User Says Thank You to jscheuer1 For This Useful Post:
Sof (07-12-2008)
  #5  
Old 07-12-2008, 05:50 PM
Marco Marco is offline
Junior Coders
 
Join Date: Jul 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

Sent a ZIP-File to your website E-mail address.
Hope this will help

Marco
Reply With Quote
  #6  
Old 07-12-2008, 05:53 PM
Sof Sof is offline
Junior Coders
 
Join Date: Feb 2008
Posts: 17
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Alrighty!

Now it is working! Thank you very much! And thanks for a good script (youre the one who made it arent you) Why is the hight of so much importance?
Reply With Quote
  #7  
Old 07-12-2008, 08:28 PM
Marco Marco is offline
Junior Coders
 
Join Date: Jul 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

We have to thank John (CMotion Image Gallery by jscheuer1) for this nice script!
John, if you read this - could you please take a look at a new thread which I posted this morning in thr Dynamic Drive script help section, title:
Swiss Army Slideshow and CMotion Gallery in combination.
Maybe you have an idea how this could work.
I´m going to upload a test version with a single swiss-army slideshow on my website and will post the link in addition to my thread.

Thank you!
Reply With Quote
  #8  
Old 07-13-2008, 04:22 AM
jscheuer1's Avatar
jscheuer1 jscheuer1 is offline
No Kidding?
 
Join Date: Mar 2005
Location: SE PA USA
Posts: 19,005
Thanks: 19
Thanked 1,135 Times in 1,121 Posts
Blog Entries: 3
Default

Quote:
Originally Posted by Sof View Post
Alrighty!

Now it is working! Thank you very much! And thanks for a good script (youre the one who made it arent you) Why is the hight of so much importance?
ddadmin originally coded this script. I just updated it for a few improvements as noted on the demo page.

To answer your question about the height you need to understand that there is no height unless one is specified for a container that holds absolutely positioned elements. The #motioncontainer division is such a container. Just giving it the height of your images (which are themselves in an absolutely positioned child of the #motioncontainer) allows them to be seen. The other height specifications were merely to make the gallery fit well into the rest of your layout. Had those other heights not been specified, there would have been extra white space and/or extra unfilled background space in the layout that I didn't believe you intended.
__________________
WWWWWWWWWWWW
- John
________________________

Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Reply With Quote
  #9  
Old 07-13-2008, 03:55 PM
Sof Sof is offline
Junior Coders
 
Join Date: Feb 2008
Posts: 17
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Thanks for that reply John, I am constantly learning !

This is probably a HTML question but I want to make popups for the gallery but I want them with at set hight and width. Do you know how to make that happen....

I have managed to make the popup by using
Code:
<a href="javascript:enlargeimage('elpiano.html')">
But the popup remains rezizable, and I don't want that..
Reply With Quote
  #10  
Old 07-13-2008, 04:20 PM
Marco Marco is offline
Junior Coders
 
Join Date: Jul 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello again,
Eric Kings Popup Window Generator on Dynamic Drive will work fine in combination with Cmotion.
http://www.dynamicdrive.com/dynamicindex8/popwin.htm
Description: Use Eric's Popup window Generator to easily add popup windows to your site! The windows are activated by clicking on a link, and can be fine tuned in every aspect, such as dimensions, scrollbars, toolbar etc. Awesome tool.

saludos,
Marco
Reply With Quote
Reply

Bookmarks

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

Forum Jump


All times are GMT. The time now is 05:17 AM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.