This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > Open Browser behaviour & swap images





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Open Browser behaviour & swap images
LukeyW

2004-08-11, 12:15 pm

I am having a problem with the 'Open Brower' behaviour. I am using this to open
up a larger sized picture in a new, scaled browser window. This seems not to
work in a live environment due to my firewall and ad-aware software restricting
so called pop-ups. The sole reason for my using this behaviour is simple, when
people visit my site they are able to view additional pictures by clicking on
the approriate link which in turn should launch a new browser with the larger
picture. Since this behaviour has stopped working I would like to be able to
include a swap image within the pages to accomodate for this problem. For
example I've a picture of the item in the original picture box when the page
loads, I want to be able to have a link to the next picture which will appear
in the same place as the original picture. Is this called a swap image? Also,
will this restrict me to only two pictures or is it limitless?

Hope this makes sense.

Thanks
Luke.

Murray *TMM*

2004-08-11, 12:15 pm

Luke:

The more images you add to your disjoint rollover (that's what you are
talking about), the heavier your page will become. So, generally speaking,
it's a bad idea to do it this way. However, there are several ways to
overcome this.

1. Investigate the use of PVII's ShowPic extension ->
http://www.projectseven.com/. This is an extremely clever method of using
dynamic javascript to swap an external image onto the page. This method
adds *nothing* to the page's base weight, other than the weight of the code.

2. Investigate the use of the SetTextofLayer extension as an alternative
way of achieving the save effect (a sort of "poor man's" approach.

As an example, consider that you have three links, each of which is to
trigger three corresponding larger images (image1.jpg, image2.jpg,
image3.jpg) in the images folder (e.g., /images/image1.jpg, etc.).

Imagine also that your page had an absolutely positioned division (a
Dreamweaver "layer") named imageLayer, placed on the page where you want the
larger images to appear, but empty of content.

Now - select link1 and apply the SetTextofLayer behavior. Make sure that
imageLayer is the chosen layer, and then enter this code into the text
area -

<img src=/images/image1.jpg width="350" height="480">

and press OK.

Repeat this process for image2.jpg and image3.jpg. Make sure that your
event for each application is onClick. Preview the page. Click a link.
What do you see?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"LukeyW" <webforumsuser@macromedia.com> wrote in message
news:cfd1bh$5m4$1@forums.macromedia.com...
> I am having a problem with the 'Open Brower' behaviour. I am using this to

open
> up a larger sized picture in a new, scaled browser window. This seems not

to
> work in a live environment due to my firewall and ad-aware software

restricting
> so called pop-ups. The sole reason for my using this behaviour is simple,

when
> people visit my site they are able to view additional pictures by clicking

on
> the approriate link which in turn should launch a new browser with the

larger
> picture. Since this behaviour has stopped working I would like to be able

to
> include a swap image within the pages to accomodate for this problem. For
> example I've a picture of the item in the original picture box when the

page
> loads, I want to be able to have a link to the next picture which will

appear
> in the same place as the original picture. Is this called a swap image?

Also,
> will this restrict me to only two pictures or is it limitless?
>
> Hope this makes sense.
>
> Thanks
> Luke.
>



Murray *TMM*

2004-08-13, 7:19 pm

Luke:

The more images you add to your disjoint rollover (that's what you are
talking about), the heavier your page will become. So, generally speaking,
it's a bad idea to do it this way. However, there are several ways to
overcome this.

1. Investigate the use of PVII's ShowPic extension ->
http://www.projectseven.com/. This is an extremely clever method of using
dynamic javascript to swap an external image onto the page. This method
adds *nothing* to the page's base weight, other than the weight of the code.

2. Investigate the use of the SetTextofLayer extension as an alternative
way of achieving the save effect (a sort of "poor man's" approach.

As an example, consider that you have three links, each of which is to
trigger three corresponding larger images (image1.jpg, image2.jpg,
image3.jpg) in the images folder (e.g., /images/image1.jpg, etc.).

Imagine also that your page had an absolutely positioned division (a
Dreamweaver "layer") named imageLayer, placed on the page where you want the
larger images to appear, but empty of content.

Now - select link1 and apply the SetTextofLayer behavior. Make sure that
imageLayer is the chosen layer, and then enter this code into the text
area -

<img src=/images/image1.jpg width="350" height="480">

and press OK.

Repeat this process for image2.jpg and image3.jpg. Make sure that your
event for each application is onClick. Preview the page. Click a link.
What do you see?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"LukeyW" <webforumsuser@macromedia.com> wrote in message
news:cfd1bh$5m4$1@forums.macromedia.com...
> I am having a problem with the 'Open Brower' behaviour. I am using this to

open
> up a larger sized picture in a new, scaled browser window. This seems not

to
> work in a live environment due to my firewall and ad-aware software

restricting
> so called pop-ups. The sole reason for my using this behaviour is simple,

when
> people visit my site they are able to view additional pictures by clicking

on
> the approriate link which in turn should launch a new browser with the

larger
> picture. Since this behaviour has stopped working I would like to be able

to
> include a swap image within the pages to accomodate for this problem. For
> example I've a picture of the item in the original picture box when the

page
> loads, I want to be able to have a link to the next picture which will

appear
> in the same place as the original picture. Is this called a swap image?

Also,
> will this restrict me to only two pictures or is it limitless?
>
> Hope this makes sense.
>
> Thanks
> Luke.
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews