What javascripts will not work on an unpublished website?

J

Jobquest

Hi - I am in the middle of building a website on my home computer and
identified that pop ups that I have used will not show the contents until
they are published. I recently added more javascript to the popups (which
contain frames) which would have large pictures (1728 x 2304px) open up from
thumbnails on the left side frame and automatically resize to fit the space
provided (400 x 600px) on the right side frame but the photograph does not
appear - is this because I am not yet published? Any help here would be
REALLY appreciated.
 
S

Steve Easton

First off, you need to use an image editor and resize / resample the images
to the actual size ( 400 x 600 ) that you're going to use in the pop ups

Second, what is the script that performs that function.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
J

Jobquest

Hi there - thanks for your reply.
I know I could have resized the pictures but the problem I was having there
was that they were losing their quality and weren't as sharp and detailed as
I need them to be.

When I performed the task with the pictures opening in a separate window and
not in the right hand frame they resized perfectly to fit the screen area,
with a magnifier in the bottom corner to enlarge. This was exactly what I
wanted to happen but to occur in the right hand frame and NOT to have the
magnifying option.

These are the scripts I used which someone tried to help me with yesterday:

Page 1 which is the Gallery and left side of the frame page has:


<a target="main" href="C:\Documents and Settings\BERRYR\My Documents\My
Webs\My Web\Pop-Ups\TEST Target.htm"
src="Absolutely%20Fabulous/CIMG2626.JPG">
<img border="0" src="A/Absolutely%20Fabulous/CIMG2626.JPG" width="74"
height="100"></a>

Page 2 which is the Target and right side of the frame has:

<head>

<Script Language="Javascript">

window.onload = function() {
var src = self.location.search.substr(5);
if (src.length > 0) {
var img = document.images["A/Absolutely%20Fabulous/CIMG2626.JPG"];
img.src = unescape(src);
img.style.width = 400 + "px";
img.style.height = 600 + "px";
}
return true;
}

</script>

Page 3 is my pop-up frames page which a user opens from a catelogue list on
a separate web page and the pop-up is made up of Page 1 and 2. The pop-up
works but is blank as it is not yet published.

I hope this all makes sense - I would really appreciate your help here -
Raymond
 
S

Steve Easton

Ok
1. you need to make the paths ( links to your images ) relative to your web
and not back to the hard drive.
Do this by importing or copying and pasting all images to a location
"inside" your web and then create links to them.

Example:
This
<a target="main" href="C:\Documents and Settings\BERRYR\My Documents\My
Webs\My Web\Pop-Ups\TEST Target.htm"

needs to be:
<a target="main" href="Pop-Ups/TEST Target.htm"


2. Remove all spaces from file names and replcae them with Underscores
This:
src="Absolutely%20Fabulous/CIMG2626.JPG">
needs to be:

src="Absolutely_Fabulous/CIMG2626.JPG">


Always make sure you open FrontPage, then a web by clicking File > Open web
( open site in FP 2003 ) and then open a page to edit.

hth

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer




Jobquest said:
Hi there - thanks for your reply.
I know I could have resized the pictures but the problem I was having
there
was that they were losing their quality and weren't as sharp and detailed
as
I need them to be.

When I performed the task with the pictures opening in a separate window
and
not in the right hand frame they resized perfectly to fit the screen area,
with a magnifier in the bottom corner to enlarge. This was exactly what I
wanted to happen but to occur in the right hand frame and NOT to have the
magnifying option.

These are the scripts I used which someone tried to help me with
yesterday:

Page 1 which is the Gallery and left side of the frame page has:


<a target="main" href="C:\Documents and Settings\BERRYR\My Documents\My
Webs\My Web\Pop-Ups\TEST Target.htm"
src="Absolutely%20Fabulous/CIMG2626.JPG">
<img border="0" src="A/Absolutely%20Fabulous/CIMG2626.JPG" width="74"
height="100"></a>

Page 2 which is the Target and right side of the frame has:

<head>

<Script Language="Javascript">

window.onload = function() {
var src = self.location.search.substr(5);
if (src.length > 0) {
var img = document.images["A/Absolutely%20Fabulous/CIMG2626.JPG"];
img.src = unescape(src);
img.style.width = 400 + "px";
img.style.height = 600 + "px";
}
return true;
}

</script>

Page 3 is my pop-up frames page which a user opens from a catelogue list
on
a separate web page and the pop-up is made up of Page 1 and 2. The pop-up
works but is blank as it is not yet published.

I hope this all makes sense - I would really appreciate your help here -
Raymond


Steve Easton said:
First off, you need to use an image editor and resize / resample the
images
to the actual size ( 400 x 600 ) that you're going to use in the pop ups

Second, what is the script that performs that function.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
J

Jobquest

Hullo Steve - many thanks for getting back to me.

I followed everything you said and have changed to this:

<a target="main" src="CIMG2626.JPG" href="Pop-ups/TEST_Target.htm" >
<img border="0" src="CIMG2626.JPG" width="75" height="100"></a>

- on my Gallery page

and then I changed:

<Script Language="Javascript">

window.onload = function() {
var src = self.location.search.substr(5);
if (src.length > 0) {
var img = document.images["CIMG2626.JPG"];
img.src = unescape(src);
img.style.width = 400 + "px";
img.style.height = 600 + "px";
}
return true;
}

</script>

- on my Target page

The photograph CIMG2626 I copied and put into the same folder Pop-ups which
containes the webpages - Gallery, Target and Test.

When I tested the link the right hand side came up, "Web Page unavailable"
after clicking on the small image (CIMG2626)

All of the above was done in Frontpage too.

I think I'm doomed to failure...but not ready to quit yet - is there
anything obvious I have or haven't done?

Still very appreciative of your help.

Raymond

Steve Easton said:
Ok
1. you need to make the paths ( links to your images ) relative to your web
and not back to the hard drive.
Do this by importing or copying and pasting all images to a location
"inside" your web and then create links to them.

Example:
This
<a target="main" href="C:\Documents and Settings\BERRYR\My Documents\My
Webs\My Web\Pop-Ups\TEST Target.htm"

needs to be:
<a target="main" href="Pop-Ups/TEST Target.htm"


2. Remove all spaces from file names and replcae them with Underscores
This:
src="Absolutely%20Fabulous/CIMG2626.JPG">
needs to be:

src="Absolutely_Fabulous/CIMG2626.JPG">


Always make sure you open FrontPage, then a web by clicking File > Open web
( open site in FP 2003 ) and then open a page to edit.

hth

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer




Jobquest said:
Hi there - thanks for your reply.
I know I could have resized the pictures but the problem I was having
there
was that they were losing their quality and weren't as sharp and detailed
as
I need them to be.

When I performed the task with the pictures opening in a separate window
and
not in the right hand frame they resized perfectly to fit the screen area,
with a magnifier in the bottom corner to enlarge. This was exactly what I
wanted to happen but to occur in the right hand frame and NOT to have the
magnifying option.

These are the scripts I used which someone tried to help me with
yesterday:

Page 1 which is the Gallery and left side of the frame page has:


<a target="main" href="C:\Documents and Settings\BERRYR\My Documents\My
Webs\My Web\Pop-Ups\TEST Target.htm"
src="Absolutely%20Fabulous/CIMG2626.JPG">
<img border="0" src="A/Absolutely%20Fabulous/CIMG2626.JPG" width="74"
height="100"></a>

Page 2 which is the Target and right side of the frame has:

<head>

<Script Language="Javascript">

window.onload = function() {
var src = self.location.search.substr(5);
if (src.length > 0) {
var img = document.images["A/Absolutely%20Fabulous/CIMG2626.JPG"];
img.src = unescape(src);
img.style.width = 400 + "px";
img.style.height = 600 + "px";
}
return true;
}

</script>

Page 3 is my pop-up frames page which a user opens from a catelogue list
on
a separate web page and the pop-up is made up of Page 1 and 2. The pop-up
works but is blank as it is not yet published.

I hope this all makes sense - I would really appreciate your help here -
Raymond


Steve Easton said:
First off, you need to use an image editor and resize / resample the
images
to the actual size ( 400 x 600 ) that you're going to use in the pop ups

Second, what is the script that performs that function.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer




Hi - I am in the middle of building a website on my home computer and
identified that pop ups that I have used will not show the contents
until
they are published. I recently added more javascript to the popups
(which
contain frames) which would have large pictures (1728 x 2304px) open up
from
thumbnails on the left side frame and automatically resize to fit the
space
provided (400 x 600px) on the right side frame but the photograph does
not
appear - is this because I am not yet published? Any help here would be
REALLY appreciated.
 
S

Steve Easton

Where did you find the script??


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer



Jobquest said:
Hullo Steve - many thanks for getting back to me.

I followed everything you said and have changed to this:

<a target="main" src="CIMG2626.JPG" href="Pop-ups/TEST_Target.htm" >
<img border="0" src="CIMG2626.JPG" width="75" height="100"></a>

- on my Gallery page

and then I changed:

<Script Language="Javascript">

window.onload = function() {
var src = self.location.search.substr(5);
if (src.length > 0) {
var img = document.images["CIMG2626.JPG"];
img.src = unescape(src);
img.style.width = 400 + "px";
img.style.height = 600 + "px";
}
return true;
}

</script>

- on my Target page

The photograph CIMG2626 I copied and put into the same folder Pop-ups
which
containes the webpages - Gallery, Target and Test.

When I tested the link the right hand side came up, "Web Page unavailable"
after clicking on the small image (CIMG2626)

All of the above was done in Frontpage too.

I think I'm doomed to failure...but not ready to quit yet - is there
anything obvious I have or haven't done?

Still very appreciative of your help.

Raymond

Steve Easton said:
Ok
1. you need to make the paths ( links to your images ) relative to your
web
and not back to the hard drive.
Do this by importing or copying and pasting all images to a location
"inside" your web and then create links to them.

Example:
This
<a target="main" href="C:\Documents and Settings\BERRYR\My Documents\My
Webs\My Web\Pop-Ups\TEST Target.htm"

needs to be:
<a target="main" href="Pop-Ups/TEST Target.htm"


2. Remove all spaces from file names and replcae them with Underscores
This:
src="Absolutely%20Fabulous/CIMG2626.JPG">
needs to be:

src="Absolutely_Fabulous/CIMG2626.JPG">


Always make sure you open FrontPage, then a web by clicking File > Open
web
( open site in FP 2003 ) and then open a page to edit.

hth

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer




Jobquest said:
Hi there - thanks for your reply.
I know I could have resized the pictures but the problem I was having
there
was that they were losing their quality and weren't as sharp and
detailed
as
I need them to be.

When I performed the task with the pictures opening in a separate
window
and
not in the right hand frame they resized perfectly to fit the screen
area,
with a magnifier in the bottom corner to enlarge. This was exactly what
I
wanted to happen but to occur in the right hand frame and NOT to have
the
magnifying option.

These are the scripts I used which someone tried to help me with
yesterday:

Page 1 which is the Gallery and left side of the frame page has:


<a target="main" href="C:\Documents and Settings\BERRYR\My Documents\My
Webs\My Web\Pop-Ups\TEST Target.htm"
src="Absolutely%20Fabulous/CIMG2626.JPG">
<img border="0" src="A/Absolutely%20Fabulous/CIMG2626.JPG" width="74"
height="100"></a>

Page 2 which is the Target and right side of the frame has:

<head>

<Script Language="Javascript">

window.onload = function() {
var src = self.location.search.substr(5);
if (src.length > 0) {
var img =
document.images["A/Absolutely%20Fabulous/CIMG2626.JPG"];
img.src = unescape(src);
img.style.width = 400 + "px";
img.style.height = 600 + "px";
}
return true;
}

</script>

Page 3 is my pop-up frames page which a user opens from a catelogue
list
on
a separate web page and the pop-up is made up of Page 1 and 2. The
pop-up
works but is blank as it is not yet published.

I hope this all makes sense - I would really appreciate your help
here -
Raymond


:

First off, you need to use an image editor and resize / resample the
images
to the actual size ( 400 x 600 ) that you're going to use in the pop
ups

Second, what is the script that performs that function.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer




Hi - I am in the middle of building a website on my home computer
and
identified that pop ups that I have used will not show the contents
until
they are published. I recently added more javascript to the popups
(which
contain frames) which would have large pictures (1728 x 2304px) open
up
from
thumbnails on the left side frame and automatically resize to fit
the
space
provided (400 x 600px) on the right side frame but the photograph
does
not
appear - is this because I am not yet published? Any help here would
be
REALLY appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top