PDA

View Full Version : behaviors


cable girl
07-01-2010, 08:32 AM
I am using the behavior panel to open a window to show a larger image of a photo, but it doesn't allow me to name the window.
It shows the url and size.

I am working in cs4 and I am getting frustrated.

I have added extensions like
open window fever - it didn't work well

I bought this extension line autocraft resizing pop up - it doesn't work in
safari 5 and loads too slow on the web

What do I do?
I am doing a handbag site and I want the new window to show a larger image of the bag and say for example White leather handbag with spaces so it reads well.

edbr
07-01-2010, 09:15 AM
this will opena sized pop up window, make page that displays the image and yo can call it where i have page.php

javascript

function popup(){


window.open('page.php', 'apply', 'width=600, menubar=no,scrollbars=yes, height=700');

}

html

<p class onclick="popup()" >CLICK HERE</p >

Corrosive
07-01-2010, 09:20 AM
Welcome to the forum cable girl. Why not use a lightbox for this? Looks much more pro in my opinion. I think that; http://www.huddletogether.com/projects/lightbox2/ is probably the easiest to install but my current favourite is; http://colorpowered.com/colorbox/

With both of these you can add titles to the images as well.

cable girl
07-01-2010, 09:27 AM
I do not know what light box is I clicked on it and unsure what to do with it.

Is it a behavior I add in the extensions

cable girl
07-01-2010, 09:33 AM
Light box looks really cool I just do'nt know what to do with it when I down load it.
Can you help please?

Corrosive
07-01-2010, 09:49 AM
Really I can't give you any more instructions than there are on the Lightbox website. Download the files, link the javascript and CSS files in the head tags of your page and then call using rel=lightbox in the linked image.

I'm sure that it comes with an example page...or I might be wrong.

Try it on a blank page first and then try adding it to your website.