View Full Version : Need help!!
Giotto3
01-17-2009, 04:12 PM
1) Script Title: Combine Image Thumbnail Viewer II & Ultimate Fade-in slideshow
2) Script URL (on DD):
here is the link to the thread http://www.dynamicdrive.com/forums/showthread.php?t=40319
3) Describe problem:
I am very new to the Forum and Java Scripting, but by reading this thread I managed to use these scripts and it is working fine - just what I was looking for! I have one question. Is it possible to take it further and make so that the slide show continues from slide1 to slide2, etc. In other words, not only the images that belong to slide1 row will appear but all of them?
Sorry, if I sound not too clear - I am trying my best.
:oThank you
jscheuer1
01-17-2009, 04:28 PM
Like this:
http://home.comcast.net/~jscheuer1/side/vfs/vac_plain.htm
?
Giotto3
01-17-2009, 04:36 PM
Like this, but with the fade-in slide show still continuing when the mouse is not over the thumbnail.
Something like this: http://varianscuirs.com/cuirs_luxe/cuirs-femmes-pin-up.htm
But I want the slide show moving through all the images, from one "slide row" to another, but with the ability to see the enlarged image when mouseover.
Thanks for quick response!
jscheuer1
01-17-2009, 04:55 PM
The fade in slide show does continue when the mouse moves off of the thumbnails, in fact - that behavior is configurable, but it just so happens that in the demo I linked to, it does continue.
Giotto3
01-17-2009, 05:34 PM
Thank you for your help. Sorry, but, I am afraid, I would need more explanations on coding.
All the coding part is really hard for me - I am more on visual part and I am just learning scripts by copying and adopting from others, reading forums, etc.. I am trying hard. So, if you would be able to help, I will be very thankful.
Here is what I was looking for.
On the link that you sent, I would only need small thumbnail images and the window where I could see the enlarged versions of them and the fade-in slide show going on meanwhile.
The link that you referred almost perfect, except I do not need any texts or buttons. And also, somehow the fade in slide show is not happening when mouse is off the thumbnail.
Also, at this point, I do not think I could be able to write any scripts myself.
Do you think, this is too much to ask?
Oodles of thanks in advance!
jscheuer1
01-17-2009, 07:15 PM
What's happening is that although mousing over the thumbnails only pauses the slide show, mousing over the larger image is stopping it. This config will eliminate the extra buttons that you don't want and change the stop on the larger image to a pause:
<script type="text/javascript">
viewfadeslide.config = { //place comma after each entry except the last
//Use true or false or {Object} containing boolean values for separate primary load areas
enableCaption : false, //Should "title" attribute of link and any paired image's 3rd parameter to be used as caption?
captionTop : false, //Place caption at the top of the image?
makeTitle : true, //Make title attribute for enlarged image from name attribute of trigger link?
hideImgMouseOut : false, //Hide enlarged image when mouse moves out of anchor link? (if enlarged image is hyperlinked, always set to false!)
disableOnClick : true, //Disable default onclick for mouseover triggers?
populateWithFirst : true, //Fire first link in load area group(s) onload?
enableCount : true,
//Use true or false
enableTransition : true, //Enable GradientWipe transition in IE 6+? (if true & not IE or an earlier IE, a fade transition will be attempted)
//Use true or false or {Object} containing boolean values or tag name for separate primary load areas
writeNumberButtons : false, //Also requires element with id of load_area_idNum ex: <div id="loadareaNum"></div>
writeControlButtons : false, //Also requires element with id of load_area_idControl ex: <span id="loadareaControl"></span>
useButtons : true, //Allows choosing individual Control buttons by numbers, ex: useButtons : {loadarea: {4 : true, 5 : true}},
//Works off array: 0 = 'Next', 1 = 'Previous', 2 = 'First', 3 = 'Last', 4 = 'Run', 5 = 'Stop' - otherwise just set to true
enableSlideShow : true, //Enable slide show(s) use - true/false or {load_area : delay}
startSlideShow : true,
swapControlVals : false, //true false or object with boolean values - should running/paused state affect buttons?
//Below three (only valid if slide show running) may use 'pause', 'stop' or 'none', boolean objects or global values
slideHoverBehavior : 'pause', //What happens onmouseover of larger images if slide show is running
slideTriggerBehavior : 'pause', //What happens when triggers are activated if slide show is running
slideNumberButtonsBehavior : 'stop', //What happens when numbered buttons are clicked if slide show is running
//Set to true only if using lightbox 2.04a add on and lightbox groups
enableLightBoxGroups : false //Enable writing out all lightbox group links (lightbox[groupname]) links to a display none div? (true/false only)
}; //No comma After last entry in the above (viewfadeslide.config)
</script>
Since I don't think you will be using the Lightbox 2.04a add on, and I know you don't want the buttons, your markup can look like so (goes in the body section):
<div class="vacthumb"><a class="" href="images/image_01.jpg" name="Caribbean Princess" rel="vfsimage::mouseover" rev="vac"
><img src="images/image_01_tbn.jpg" alt=""></a><a
href="images/image_02.jpg" name="Heidi & Heather" rel="vfsimage::mouseover" rev="vac"
><img src="images/image_02_tbn.jpg" alt=""></a><a
href="images/image_03.jpg" name="Corn Dog (Waldo)" rel="vfsimage::mouseover" rev="vac"
><img src="images/image_03_tbn.jpg" alt=""></a><a
href="images/image_04.jpg" name="Tree House" rel="vfsimage::mouseover" rev="vac"
><img src="images/image_04_tbn.jpg" alt=""></a><a
href="images/image_05.jpg" name="Freedom Pond" rel="vfsimage::mouseover" rev="vac"
><img src="images/image_05_tbn.jpg" alt=""></a><a
href="images/image_06.jpg" name="Pigs" rel="vfsimage::mouseover" rev="vac"
><img src="images/image_06_tbn.jpg" alt=""></a><a
href="images/image_07.jpg" name="Margaret Todd (rigging)" rel="vfsimage::mouseover" rev="vac"
><img src="images/image_07_tbn.jpg" alt=""></a><a
href="images/image_08.jpg" name="Margaret Todd (starboard bow)" rel="vfsimage::mouseover" rev="vac"
><img src="images/image_08_tbn.jpg" alt=""></a><a
href="images/image_09.jpg" name="Figaro" rel="vfsimage::mouseover" rev="vac"
><img src="images/image_09_tbn.jpg" alt=""></a><a
href="images/image_10.jpg" name="Rock Sculpture" rel="vfsimage::mouseover" rev="vac"
><img src="images/image_10_tbn.jpg" alt=""></a>
</div>
<div id="vac"></div>
Be sure to copy the styles (minus those for the buttons you are not using) and put them in the head of your page:
<style type="text/css">
/* All Styles Optional */
body {
color: #ddd;
background-color: #000;
margin: 0;
padding: 0;
}
.content {
margin: 15px 10px;
}
#container {
margin-top: 1em;
}
img {
vertical-align: middle;
border: none;
}
.vacthumb img {
border: 1px solid #000;
height: 56px;
width: 75px;
padding: 1ex;
margin-bottom: 1ex;
}
.vacActive img {
border: 1px solid #ccc;
}
#vac {
margin: 1em;
height: 425px;
width: 400px;
float: left;
position: relative;
background-color:#666;
}
</style>
Put the script call in the head of your page, right after the styles and before the configuration:
<script type="text/javascript" src="vfs_min.js">
/* Omni Image View, Fade, and/or Slide Script ©2008 John Davenport Scheuer
as first seen in http://www.dynamicdrive.com/forums/
username: jscheuer1 - This Notice Must Remain for Legal Use
*/
</script>
Save the minified version of the main script (right click on the below and choose 'Save As'):
http://home.comcast.net/~jscheuer1/side/vfs/vfs_min.js
and place it in the the same folder as your page.
Giotto3
01-18-2009, 05:27 PM
Hello and Thank YOU very much!!! It is working wonderfully. I was not even expected that someone could help me that much. Of course, I better start learning myself, but meanwhile it is a big help.
One minor thing. Sorry for demanding that much.
Since I built the whole site using tables (I know some prefer CSS), when I try to place the DIV inside the table the fade in function is not working.
I need the thumbnails be side by side with image window.
Thank you, again for your patience and for being there for me!
Anastasia
jscheuer1
01-18-2009, 06:07 PM
I'm not sure why that would happen, but the display area for the slide show is actually two tables within a division and the script looks at those tables to help it figure out how to fade. So having it in another table might be messing with that, but I really don't think so, unless you have set some styles that are getting picked up by those tables (like if all tables or td elements are given background). But, who knows? I'd have to see it to be sure:
Please post a link to the page on your site that contains the problematic code so we can check it out.
Giotto3
01-18-2009, 07:08 PM
I think I did something wrong with the styles.
Here is the link to what I did so far:
http://www.knitsandpieces.com/design_gallery.htm
Thank you, again!
jscheuer1
01-18-2009, 08:44 PM
I can't find the problem. It only appear to happen in IE 7 (I don't have IE 8, so it may happen in it too). All other browsers are fading fine, as is IE 6. It has something to do with the table, but I think it is a bug in IE 7, as even the IE 7 developer toolbar shows that the opacity changes are taking place, you just cannot see them happening for some weird reason.
I did test this out enough to know that it is not anything you did. Any table will stop the fading in IE 7.
I'll keep playing with it, but it may just be a bug. We may have to position the vac div outside of the table.
Giotto3
01-18-2009, 08:49 PM
Thank you for helping!
Giotto3
01-18-2009, 08:51 PM
Actually, you must be right about the bug in IE7, as I have just checked in Mozilla and the fade in is working just fine.
Anyway, please let me know, if you would find anything new and again, lots of thanks.
Anastasia
jscheuer1
01-18-2009, 09:21 PM
I still can't figure it out, but here is a workaround. First of all, you need to change the style here and add those shown:
#vac {
margin: 1em;
height: 350px;
width: 263px;
float: left;
position: relative;
background-color:#666;
}
#vac table {
position:absolute;
border-collapse: collapse;
}
#vac table td {
margin: 0;
padding: 0;
}
And in your td with the vac division, make it like so (add highlighted):
<td width="295" valign="top" background="images/bg_yellow.jpg"><div id="vac"><table>
<tr>
<td></td>
</tr>
</table><table style="z-index:1;">
<tr>
<td></td>
</tr>
</table></div></td>
And in an unrelated matter, get rid of the red rule here:
img {
vertical-align: middle;
border: none;
}
It causes a thin bleed through of the target area background in some browsers, including IE 7.
Giotto3
01-19-2009, 03:48 AM
Thank you. Now everything is working everywhere! It is perfect.
Anastasia
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.