trying to write a disjointed rollover... Stuck...

4 posts by 3 authors in: Forums > CMS Builder
Last Post: December 9, 2008   (RSS)

By HDLLC - September 5, 2008

Hi there-

Trying to write a disjointed rollover to have a thumbnail image show in a main window that is the larger, default image. Check included image.
I'm trying to have the a click on a thumb at right, show the image (big version) in the window at left (larger image).

I wrote this using a couple of colored squares - but can't seem to cross it over to the dynamically generated content. (using onmouseover, instead of onclick)

Here's the test:
http://www.southdakotawild.com/swap-test/test.html

Now, I need to have that apply to my image tags, which look like this:
<?php foreach ($farmsRecord['image_1'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<a href="<?php echo $upload['urlPath'] ?>" target="_blank"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="160" height="120" alt="" border="0" /></a><br/>
<?php elseif ($upload['isImage']): ?>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>
<?php else: ?>
<a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>
<?php endif ?>
<?php endforeach ?>


Any ideas...?

Thanks in advance!

--Jeff

Re: [HDLLC] trying to write a disjointed rollover... Stuck...

By Dave - September 5, 2008

Hi Jeff,

Do you have an url with the output generated by CMS Builder?

You may need to preload the images like this: MM_preloadImages('red.gif','blue.gif') but with the actual image names.

Can you post an url with the generated content (the CMS version)? Then I can compare the sources of the working mockup and the CMS generated one.

Thanks!
Dave Edis - Senior Developer
interactivetools.com

Re: [Stensy] trying to write a disjointed rollover... Stuck...

By Dave - December 9, 2008

Thanks for sharing your code. :)
Dave Edis - Senior Developer
interactivetools.com