Simple, with a little JavaScript! Apply the Protaculous Action to your
page. And if you’re copying this layout, do yourself a huge favor and
make all of your target images inline children of a single HTML box.
Draw an HTML box somewhere on your pasteboard, large enough to hold
all of the images. Then cut each of your linked images in turn to the
clipboard, double-click inside your HTML box so the flashing text
cursor appears, and paste. Click once on the now-inline image, and set
its Float attribute to Left. Repeat until all your images are inside
the HTML box (adjust its size to fit) and move that box back into the
page where you want the effect to appear. While you have that box
selected, check out what name it has in the Inspector’s Title field.
Change it to something memorable like images (which I’ll use below).
Now click on the pasteboard somewhere, and look in your Actions
palette. You should see the Protaculous interface there. Set the
Library picker to prototype-packed, and click on the top Function Body
button.
Paste in the following code:
var images = $('images').select('img').invoke('setOpacity',0.6);
images.invoke('observe','mouseover',function(evt){
images.invoke('setOpacity',0.6);
this.setOpacity(1);
});
Things to fiddle with: the number 0.6 is the initial opacity of the
images, you may want to change that (in both places) to suit your
design; the name ‘images’ HAS to match whatever your outer HTML box
is named, including letter case.
Other than that, it’s a pretty easy and self-contained trick.
Oh, you could do this by using a separate Rollover for each image,
with a version of the image that you’ve darkened down using the Photo
Magic Action as one state of the rollover, and another at full-
strength as the mouseover version, but that’s a lot of work (and extra
images) that nobody needs!
Walter
On Apr 11, 2011, at 12:29 PM, Sebastian Crewe-Turrell wrote:
Hi guys,
I am currently doing a portfolio page similar to the one shown in
the link below but have no idea how to create the ‘highlight’ effect
when your mouse goes over the pictures.
http://www.nickwildphotography.co.uk/galleries/
Any help would be much appreciated,
thanks,
Seb
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options