This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > June 2004 > Dynamic Pop-up
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]
|
|
| Aumaz Jang 2004-06-11, 7:15 pm |
| In the caller page, I wrote this following code:
java script:showLoc('Page Title', 'photo');
showLoc() is to prompt this sample.html
http://www.kitterick.com.hk/newface...pup/sample.html
and to change the TITLE (page title) and IMG (photo).
It works fine in IE but it doesn't work in Mozilla.
Any suggestion?
Thanks!!
function showLoc(sn, ft) {
var w, url, winName, winFeatures;
url = "popup/sample.html";
winName = "locWin";
winFeatures =
"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=450,h
eight=420";
w = window.open(url, winName, winFeatures);
imgSrc = "../../images/location/"+ft+".jpg";
with (w.document) {
title = sn; // Popup Title
images[1].src = imgSrc; // Photo Source
images[1].alt = sn; // Photo Text
}
w.focus();
}
| |
| E Michael Brandt 2004-06-11, 11:14 pm |
| My experience with the original version of JustSo PictureWindow was that
some browsers do not like having objects changed in a popup window after
that window is open. It must be done with care and tenderness. You can
compare my code with yours by downloading the free JustSo PictureWindow that
you can find on the Exchange. Altho my code in that Extension works in
Mozilla browsers, it will not work in Safari. The new JustSo PictureWindow
3 handles all this differently and happily does work in all browsers
including Safari. But maybe you can tweak your code to make even Safari
understand it. If so I'd sure like to see how you it's done!
--
E. Michael Brandt
www.valleywebdesigns.com
"Aumaz Jang" <webforumsuser@macromedia.com> wrote in message
news:cadame$t1v$1@forums.macromedia.com...
> In the caller page, I wrote this following code:
> java script:showLoc('Page Title', 'photo');
>
> showLoc() is to prompt this sample.html
> http://www.kitterick.com.hk/newface...pup/sample.html
>
> and to change the TITLE (page title) and IMG (photo).
>
> It works fine in IE but it doesn't work in Mozilla.
>
> Any suggestion?
> Thanks!!
>
> function showLoc(sn, ft) {
> var w, url, winName, winFeatures;
>
> url = "popup/sample.html";
> winName = "locWin";
> winFeatures =
>
"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=4
50,h
> eight=420";
>
> w = window.open(url, winName, winFeatures);
>
> imgSrc = "../../images/location/"+ft+".jpg";
>
> with (w.document) {
> title = sn; // Popup Title
> images[1].src = imgSrc; // Photo Source
> images[1].alt = sn; // Photo Text
> }
> w.focus();
> }
>
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|