Re: What javascripts will not work on an unpublished website?
- From: "Steve Easton" <admin@xxxxxxxxxxxxx>
- Date: Sat, 25 Feb 2006 17:33:33 -0500
Where is CIMG2626.JPG actually located??
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
"Jobquest" <Jobquest@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FF6525EF-A521-4A69-90A6-4A78DA3CFF67@xxxxxxxxxxxxxxxx
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" wrote:
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" <Jobquest@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C5335A55-5B52-4943-AAE7-CE8B08B820DE@xxxxxxxxxxxxxxxx
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" wrote:
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
"Jobquest" <Jobquest@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8E25A275-3AA9-4469-B2FE-B1BEAF09B5D9@xxxxxxxxxxxxxxxx
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.
.
- Follow-Ups:
- References:
- Re: What javascripts will not work on an unpublished website?
- From: Steve Easton
- Re: What javascripts will not work on an unpublished website?
- From: Jobquest
- Re: What javascripts will not work on an unpublished website?
- From: Steve Easton
- Re: What javascripts will not work on an unpublished website?
- From: Jobquest
- Re: What javascripts will not work on an unpublished website?
- Prev by Date: Re: What javascripts will not work on an unpublished website?
- Next by Date: Re: What javascripts will not work on an unpublished website?
- Previous by thread: Re: What javascripts will not work on an unpublished website?
- Next by thread: Re: What javascripts will not work on an unpublished website?
- Index(es):
Relevant Pages
|
Loading